LED / Strip
WS2812B Addressable RGB LED Strip
Individually addressable RGB LEDs — each pixel controllable via a single data line.
A single-wire addressable RGB LED strip — each pixel individually controllable — used in everything from ambient lighting to LED matrix art.
Specifications
| LED type | WS2812B — driver chip integrated into each individual LED |
| Operating voltage | 5V DC |
| Interface | Single-wire, timing-critical protocol (~800kHz NRZ) — not I2C/SPI |
| Current draw | ~60mA per LED at full white — a 1m/60-LED strip can draw ~3.6A at full brightness |
| Cascading | DOUT of one strip feeds DIN of the next for longer runs |
Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | 5V | Power — use an external supply sized for the full strip length, not the MCU board's 5V pin |
| 2 | GND | Ground — must be common with the MCU's ground |
| 3 | DIN | Data in — connect to a digital GPIO on the first segment of the strip |
| 4 | DOUT | Data out — feeds the next strip's DIN when chaining multiple segments (present on some strip variants, not all) |
A 330Ω resistor in series on the DIN line and a large (~1000µF) capacitor across 5V/GND at the strip's input are cheap insurance against corrupted first pixels and power-on glitches.