I am working with the W2812s, a strip of 5M. I am writing my scripts on my raspberry pi and uploading them from there. When I test my scripts while the arduino is being supplied by the pi, all works perfect and as expected.
When I attempt to run the same script but supplying the arduino with a 9V batter, sometimes maybe for just one iteration of the loop function it runs as normal but after that it goes crazy. Changing colours blinking on and off when it is not supposed to etc…
The project I am working on is for a friend and the strip is going to be incorporated in clothing for a fashion show so there is no other option but to use a battery.
So my question is has anyone else encountered a similar problem and found a solution?
My set up:
The three inputs from the arduino go into my bread board, I have a 300 ohm resistor from the data input between the arduino and the strip. I also have a 100uF capacitor across live and ground between the arduino and the strip. I am applying the 9V through the external power supply port.
I have read in other posts that battery voltage can be less reliable being DC, but from what I read I assumed that the capacitor would solve any issues with that. Which leads me to believe it might be something else.
I would greatly appreciate any helpful advice.? I am worried that the project could be in trouble if I cannot solve this… Thanks for taking the time to read my post.