Issue between Pi and Arduino

  • Hey guys,


    I followed the Steve Does Stuff guide down to a science and for what ever reason my lights are not working. I know for a fact that the Arduino can control the light properly because i've tried two Arduino scripts, one from the video and one I found on this forum. When the Pi powers the Arduino It sends a GRB signal to the lights and in another sketch they turn blink white for a second. (strangely in the second sketch at times the entire strip turns on showing different colors.)


    My configs are right (I think) and my Pi is receiving proper signal from my capture card


    Hardware: Pi 0W, Arduino Nano, and WS2812B Lights.


    Software. 2.0.0-alpha.10


    Arduino Setup: https://pastebin.com/XZQj02s3


    I've been trying to do this for a week and I am so close I can basically taste it. Also looking at the log section under warnings im not seeing anything but where would I find the logs to post here?

  • Hey I just solved it but I’ll write my answer here for anyone who wants it.



    I was using more than 255 lights (300 LEDS). I thought my Arduino was bad but I was wrong.

    If you’re using this code for your arduino https://raw.githubusercontent.…perion/master/ArduinoCode


    All you have to do is change this line in your arduino code


    Code
    for (uint8_t i = 0; i < NUM_LEDS; i++) {


    Instead of “uint8_t” change it to “int”.


    (This took me legit like 3 days to figure out lmao)

  • TPmodding

    Hat das Thema geschlossen.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!