Skip to content
A project ofgwark.dev

Worldsemi · Integrated circuit

WS2812B Addressable LED

RGB LED with the controller on the die. Four pins, one data wire, and more ways to go wrong than any other four-pin part.

Cheat sheet (SVG)
Logic level
5 V data, 0.7 x VDD threshold
Package
5050 SMD, 4 pad

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-2

WS2812B

Pins 3-4

Pin detail

Hover a pin for its mappings and gotchas. Click to keep it here.

Logic level
5 V data, 0.7 x VDD threshold
Package
5050 SMD, 4 pad

Fig. 1. WS2812B Addressable LED, 5050 SMD, 4 pad. Hover or tap a signal to light up every pin that carries it.

2.Watch out

3.Driving a strip

What has to go around the chip before it will run.

VCCGNDWS2812B1000 uF between VDD (1) and GND1000 uF100 nF between VDD (1) and GND100 nFVDD (1) to VCCVSS (3) to GND300 to 500 Ohm between MCU and DIN (4)300 to 500 OhmVDD 1VDD 1VSS 3DIN 4MCU
Fig. 2. Driving a strip, drawn from Table 1. Dashed parts are optional. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
300 to 500 OhmMCU to DIN (4)
1000 uFVDD (1) to GND
100 nFoptionalVDD (1) to GND

Data must clear 0.7 x VDD. From a 3.3 V controller into a 5 V strip it does not, so level shift, drop the strip supply with a series diode, or sacrifice the first LED as a shifter.

4.Full pin reference

Every pin, alias and mapping. This is the table that prints.

Table 2. Pin assignments.

Complete pin reference for WS2812B Addressable LED
PinNameFunctions

Found a wrong pin? The whole board is one file, data/boards/ws2812b.json.

Edit this file on GitHubReport it instead