My problem is that the when I code for white I get red and I haven’t been able to get any other color. When I try to light up led[0] I get the 2nd led in the chain.
Here is my set up. A string of WS2812B. I’ve got a 330 Ohm resistor protecting the data line and 2 470 uF Caps in parallel in between 5v and ground as recommend by Adafruit. Since I’m not trying to push any brightness levels right now the string of 30 is power from the 5v from the Arduino uno board.
Any suggestions on how I should change the setup or a recommendation of code to test if the led string is working properly?
Can you post your code so we can double check that also? Pastebin or gist is good.
Is anything better if you make your NUM_LEDS just a few pixels, like 3 instead of 30?
Running 30 pixels directly off the Arduino is not a good idea since 30 pixels @ 60mA = 1.8A, which is definitely more then the Arduino pins are rated for. Even if being really conservative and only using 20mA gives .6A which is still above Arduino pin ratings.
It sounds like the strip is most likely broken. I’m going to send to back to amazon and hope I can find another supplier. Do you know a place where I could get a m of 30 LED without spending an arm and a leg?
I just wanted to check that you have your data line connected to DI (data In) and not DO (data Out). I don’t believe anything will light up if it’s incorrect, but I’m just trying to think of what else this might be (if the strip isn’t bad).
Also, just for kicks maybe might try specifying your strip type as WS2812 (non-B version) and WS2811. Who knows, maybe the vendor mislabeled it.
@marmil the wire protocol is the same for both variations, and ws2811 is the chip that is used in both LED setups. It shouldn’t make a difference.
@Keyth_Rodgers try keeping the DI line unconnected, and while your code is running try touching the DI line to the DI pad on your strip, starting at pixel 1 and then skipping it to pixel 2, and so-on. This can help you eliminate a single malfunctioning pixel, although I have before had to actually cut the first pixel off before the rest of the strip would work.
@marmil , I’ll consider that supplier when I need more but right now I only need 2 1m 30leds. Any other suggestions for reliable suppliers that could get it to me in less than 5 days? And as far as the wiring this was the first thing I checked as I have made this mistake before.
@Gabriel_Schine , I hear what your saying about the malfunctioning pixel but in my mind I paid for 30 working ones. It hard for me to accept 1 that isn’t working. How often have you found this to be the issue? Also which code do you recommend doing this with?
Any code that lights up enough LEDs. It really doesn’t matter.
I know it’s annoying. I have bought ~32m of strips and 3 of them have needed pixels replaced. The one I diagnosed as above I damaged myself, probably through static electricity discharge. It’s possible you did this, too :).
Hmm, I hope not the cause of the problem. I tried to take every precaution. I’m going to try this again tonight before I return it to Amazon. Any suggestions on us based suppliers for just a meter or 2?