This product contains 144 LEDs per one-meter section, so the 5-meter model contains 720 LEDs.
We can individually control the LEDs of the WS2812b LED strip. These strips are composed of “RGB” LEDs (Red, Green, Blue) with an integrated microcontroller that allows them to be individually controlled in terms of both color and brightness.
To ensure control of the intensity, brightness, and color of the LEDs, the strip's DIN cable (usually green) will be connected to a PWM pin ~ (3, 5, 6, 9, 10, or 11) on the Arduino UNO board.
Let's choose pin 6, for example. As the LED strip can be very power-hungry, the GND (ground -) and VCC (5 V +) cables will be connected to an external power supply and not to the terminals of the ARDUINO card.
Recommendations for optimal operation
- Add a 1000 µF capacitor between the + and – terminals of the LED strip.
- Reduce the wiring length between the microcontroller board and the first LED.
- The data input of the LED strip must be protected by a 300 to 500 ohm resistor.
- Avoid connecting the LED strip to a live circuit. If possible, ALWAYS connect the ground (GND -) first, then the VCC + cable, and then the data (DIN) cable.