Comments (4)
The code is fine, it does light one LED on my strip. Since this is just one LED, I would start by wiring it directly to the Pi. Get 5V from the Pi GPIO header, and directly connect clock and data to the 3.3V pins of the Pi: It often does work without a level shifter.
I hope you did enable SPI using raspi-config.
Let me know if this works!
from apa102-pi.
Hi @tinue - Thanks for the quick reply and for validating the code isn't the issue. I have SPI enabled.
I took the level shifter out of the circuit, swapped to a different LED, and it almost works.
The first time I run my code the light now will turn on. The light is not the correct color and when sample.py
completes the light remains on. Subsequent executions of sample.py
have no effect unless I manually unplug both VCC and GND. After resetting VCC and GND manually I can run the script again and the light will turn on (albeit still with the wrong color). I changed the "order" property to "bgr" since that's what the docs for my LED say: http://www.led-color.com/upload/201604/APA102-2020%20SMD%20LED.pdf
I have a feeling maybe my solder points aren't well done which is causing strange behavior. I'm going to try a few more LEDs to ensure that isn't the issue.
from apa102-pi.
Turns out the issue was the soldering. Thank you for your time helping me debug! I guess this is why I mostly stick with software 😅
Feel free to close this issue.
from apa102-pi.
Thanks for your feedback!
from apa102-pi.
Related Issues (20)
- Trying to modify the code as a northern lights show. HOT 7
- Constant lights HOT 7
- Raspberry pi 3 apa102 ambilight HOT 3
- control each led HOT 2
- Software SPI (Bit Bang) informations HOT 2
- [Suggestion] Please package this library on PyPi/pip HOT 4
- A level shifter is not needed HOT 1
- Rainbow corruption? HOT 19
- package installation location HOT 4
- global_brightness range HOT 3
- User hardware SPI HOT 8
- Use hardware SPI in Rasberry Pi 3 model B HOT 4
- python 3.8 vs. 3.5 HOT 1
- Not Fast enough HOT 5
- LED Colour HOT 5
- Bit Banging Not Working HOT 9
- feature or bug print statements HOT 2
- connecting APA102 LED and BSS138 level shifter HOT 1
- LED remaining dark HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apa102-pi.