Hi, I am new to Arduino and first strip of ws2812b arrived the other day. Iv watched several video where they mentioned to put a resistor and capacitor between the ardunio and ws2812b strip. But nobidy mentioned how did they determine the size. Iv heard 220 ohm, 330 ohm, and 400 ohm (or 400 and something) I have 150 ws2812b leds that I will be using. What size resistor should I use? And how do I figure that out for future reference? And should I use 100 uf capacitor as well?
You don't need a resitor to control a ws2812. Resistor is for arduino protection in case of LED strip failure. 220 ohm is enough to keep current within aceptable limit (aroun 20 mA) Higher resistance is more safe for arduino but may cause unstable signal transmission to LEDs. In most case resitanse below 500 Ohm is OK.
alesam:
You don't need a resistor to control a ws2812. Resistor is for Arduino protection in case of LED strip failure.
Actually, it isn't at all!
The resistor serves two purposes, both of which are primarily to protect the delicate WS2812s, not the rugged Arduino. There might be some slight concern that if the LED strip was not powered, the Arduino would be driving into the protection diodes in the first WS2812 and that might over-stretch the Arduino but in actual fact, it is the WS2812 that would suffer. The experiences of people who come here with WS2812 strip failure seems to corroborate this.
Along the same lines, if there is a long and unruly transmission line between Arduino and WS2812, the transients generated on the line due to impedance mismatch may again, over-stress the poor WS2812 and the resistor is there to control those transients.