GithubHelp home page GithubHelp logo

Comments (4)

tinue avatar tinue commented on June 29, 2024

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.

irtemed88 avatar irtemed88 commented on June 29, 2024

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.

irtemed88 avatar irtemed88 commented on June 29, 2024

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.

tinue avatar tinue commented on June 29, 2024

Thanks for your feedback!

from apa102-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.