APA106

1-wire RGB · APA Electronic · ws281x · clone of WS2812B

Channels
RGB
Bits / channel
8
Supply
4–5.5 V
PWM
—
Backup data
no
Packages
1

The through-hole 5 mm addressable LED: a WS2812B-compatible die in a traditional domed package with legs. Popular for breadboard work and for building things you can actually see the LED in.

Timing

APA106 bit timingAPA106 bit timing: a zero bit is 250 nanoseconds high then 1000 low; a one bit is 875 high then 375 low; reset 280 microseconds low1 · Bit encoding, to scaleDINhighlowbit 0 period 1250 nsbit 1 period 1250 nsT0H 250 nsT1H 875 nsT0L 1000 nsT1L 375 ns"0" bit"1" bit02505007501000125015001750200022502500time, ns2 · One frame: 24 bits, most-significant bit firstDIN170110010007100110101700101100bitR · 8 bitsG · 8 bitsB · 8 bitsWire order RGB · frame = 24 × ~1250 ns ≈ 30 µs · example data, first bits 1 0 1 …3 · RESET / latchlast bits of frame 1first bits of frame 2LEDs latch the data they receivedRESET: DIN low ≥ 280 µs (not to scale)4 · Cascade: each DOUT feeds the next DINMCULED 1DINDOUTLED 2DINDOUTLED NDINDOUTLED 1 keeps the first 24 bits, re-shapes the signal and sends the rest out on DOUT;LED 2 keeps the next 24, and so on. The last LED's DOUT is left unconnected.
T0H 250 / T0L 1000 · T1H 875 / T1L 375 ns · period 1250 ns · reset 280 µs source: fastled (driver-tuned, not the datasheet)
SourceT0HT0LT1HT1LPeriodRateReset±
fastled ↗ 250 ns 1000 ns 875 ns 375 ns 1250 ns 800 kHz 280 µs —

Clones & compatibility

“Compatible” is never stated bare here — each relationship carries how strong the claim is, and what bites if you assume too much.

  • near clone WS2812B

    Electrically a WS2812B workalike in a 5 mm through-hole dome rather than an SMD package. Colour order is commonly RGB rather than GRB, which is the usual thing people get wrong.

Library support

FastLED
WS2812 ↗
Adafruit_NeoPixel
NEO_RGB + NEO_KHZ800
WLED
WS281x

Note the RGB rather than GRB colour order.

Parts using this protocol