Hi, I recently bought WS2812 LED strips, but I'm unable to get them to work properly; only some of the lights are lit up, but even then, when i program the code for the working led to change colour, nothing changes.
I'm using Arduino NANO, 5V WS2812 LED Strip, two 3.7V Lipo-ion batteries connected in series, 300-ohm resistor and 1000uF capacitor.
No. Vin will have the 7.2V. You need an external 5V supply capable of supplying the required current. Each pixel (3 LEDs) needs about 60mA so 60 pixels needs 3.6A to light all 60, white.
would it be possible to light the led strip with the lithium batteries, though?
im working on a project-smart water bottle holder project whr the led strip would light up to remind users to drink and i kinda need it to be portable
also, i wouldn't need 1m of led strip, probably ard 15cm would be enough to wrap ard the holder
You may be able to power a short strip from a single 3.7V battery. The blue LEDs might give up before the green, but the red will continue to work until the battery is pretty much flat. Switch out the Nano for a 3.3V Pro Micro/Mini to maximise battery life.
Alternatively use a DC-DC buck converter to make 5V from the 7.2V from both batteries. Buck converters are not the best thing for battery powered circuits, but they sure beat a linear regulator when it comes to the higher currents needed for LEDs.
Something like these converters. They take 6.5V, minimum for 5V out, (5V + 1.5V drop out voltage) and convert to 5V 3A. They need a one time adjustment to set the output voltage. Use the 5V out to power the LED strip and the Arduino (connect to 5V pin). Take the 3A with a grain of salt, though. Keep under 80% to be on the safe side.