5.0 × 5.8 mm 4 pins top-emitting

WS2812D-F5

F5 · through-hole · WS2812B · WorldSemi

1-wire RGB 3.5–5.3 V active

Also sold as WS2812D, 5mm through-hole NeoPixel

At a glance

Colour
RGB8 bits per channel
Data
1-wiretimed pulses on one line
Supply ≠
3.5–5.3 Vno backup data line
Size
5.0 × 5.8 × 8.7 mm4 pins · top
Max current
—per-channel not recorded
PWM ≠
400 Hzreset 50 µs
Library support
FastLED WLED Adafruit

Datasheets disagree

The sources we hold state different values for the facts below. Rather than pick one quietly, both sides are listed with where each was read. Check the datasheet for the exact part number and revision you are buying. How this is shown.

This part, WS2812D-F5

Colour order

The WS2812D sheets send colour as RGB, where the SMD WS2812B sheets say GRB.

What each source says about colour order
SourceSaysPage
ws2812d-f5-v6-c55629711 data order RGB 5
ws2812b-v5-c114586 data order GRB (WS2812B 5050) 4

What we show. Not changed in the data and not checked on hardware. If your colours look wrong on a through-hole part, swap the order in firmware.

Pinout

The sheet’s end-on leg view does not say whether it is a top or bottom view.

What each source says about pinout
SourceSaysPage
ws2812d-f5-v6-c55629711 legs drawn 4 3 2 1 left to right, view not labelled 2
This catalogue's reading (research/packages.md) bottom view of the flange, flat beside pin 1 —

What we show. Pin names and numbers come from the sheet’s pin table (1 DOUT, 2 VDD, 3 GND, 4 DIN); the drawing here is indicative. Check which leg is VDD before wiring.

Protocol WS2812B

Reset period

The original sheet asks for a reset of more than 50 µs; every later WorldSemi sheet asks for more than 280 µs.

What each source says about reset period
SourceSaysPage
ws2812b RES above 50 µs 3
ws2812b-v5-c114586 RES > 280 µs 3
FastLED led_timing.h (driver-tuned) 280 µs —

What we show. Both are kept: this page is the older silicon, and WS2812B-V5 is its own protocol with the 280 µs figure. A gap of 280 µs or more is safe on either, so use it if you cannot tell which reel you have.

Bit timing

The bit-timing windows were rewritten between the original sheet and V5.

What each source says about bit timing
SourceSaysPage
ws2812b T0H 400 ns, T1H 800 ns, each ±150 ns 3
ws2812b-v5-c114586 T0H 220–380 ns, T1H 580 ns–1 µs 3
FastLED led_timing.h (driver-tuned) T0H 250 ns, T1H 875 ns —

What we show. Both datasheet sets are listed in the timing table, the original first. FastLED’s figures are tuned to drive real parts and clones, not a specification.

PWM frequency

The original sheet gives a minimum scan frequency of 400 Hz; the V5 sheet says 2 kHz.

What each source says about pwm frequency
SourceSaysPage
ws2812b scan frequency not less than 400 Hz 1
ws2812b-v5-c114586 scan frequency 2 kHz 1

What we show. 400 Hz is shown here because this page describes the original sheet; the 2 kHz figure is on the WS2812B-V5 page. The newer silicon flickers less on camera.

Supply voltage

Supply range differs by sheet generation.

What each source says about supply voltage
SourceSaysPage
ws2812b VDD +3.5 to +5.3 V 2
ws2812b-v5-c114586 VDD +3.7 to +5.3 V 2
ws2812b-v6-c52917433 VDD +3.3 to +5.3 V 3

What we show. The original sheet’s range is shown here; later generations are on the WS2812B-V5 page. 5 V is inside every range.

The WS2812 in a traditional 5 mm domed through-hole package with legs. Breadboard-friendly, and the lens shape means it reads as a classic LED rather than a surface-mount square.

Pin order, from the WorldSemi sheet: 1 DOUT, 2 VDD, 3 GND, 4 DIN. The catalogue previously listed DOUT, VSS, VDD, DIN, which put the supply and ground on the wrong legs - a wiring mistake waiting to happen. Pin 2 (VDD) is the longest lead, as on any common-anode RGB LED. Lead spacing is 3.80 mm across the four leads (about 1.27 mm pitch), lead length 25.9 mm, 0.5 mm square leads; the flange has a flat on one side marking the pin 1/DOUT end. The V6 sheet says DIN/DOUT are interchangeable and gives V6 timing with a SHORT T1L (220-380 ns), unlike the SMD WS2812B-V5 family. Viewing angle is left null - it depends on whether the lens is clear or diffused and no verified figure was found.

Current per channel is blank on the plain F5: its sheets state no IC drive current (the IF = 20 mA in the optical table is the test current for the bare LED dice, not the IC’s output). The F5-V6 variant states 12 mA. The clear (30 degree) and diffused (120 degree) viewing angles that were here were conventional figures for 5 mm domes and are blank.

Variants

One row per orderable SKU. Everything not listed is inherited from the part above.

Order codeFaceLensWhite PinsSiliconStatusFirst seenDatasheet
WS2812D-F5 other clear — 4 — active unknown V6
Clear lens: a narrow, bright beam straight out of the dome, with visible individual dies. Angle is the conventional figure for a clear 5 mm dome and has not been verified against a datasheet.
WS2812D-F5-D other diffused — 4 — active unknown V6
Milky lens: dimmer but far more even, and the three dies blend into one colour instead of showing as separate points. Usually what you want for colour mixing.
WS2812D-F5-V6 — — — 4 V6 active unknown V6
V6: 3.3-5.3 V, 280 us reset and a T1L window of 220-380 ns (see the ws2812d-v6 protocol). The sheet states a 12 mA IC output current. Stock 0 when checked.

Pinout

WS2812D-F5WS2812D-F5-DWS2812D-F5-V6
WS2812D-F5 F5 package, top and side viewPin 1 is ringed. pin 1 DOUT (data out), pin 2 VDD (power), pin 3 GND (ground), pin 4 DIN (data in).flat sideØ5.0 mm1DOUT2VDD3GND4DINtop viewleads 25.9 mm, staggered (pin 2 longest)8.7 mmside view
  • Data
  • Power
  • Ground
  • Pin 1
  • Flat on flange

Outline and pin positions checked against the manufacturer datasheet (WS2812D-F5-V6 sheet p2 (C55629711)). Legs read 4 3 2 1 left to right with the flat beside pin 1, as drawn in the sheet; leg-length steps are indicative. What this means.

  1. 1 DOUT data out
  2. 2 VDD power
  3. 3 GND ground
  4. 4 DIN data in

Protocol — WS2812B

Timings shown from datasheet. Other sources disagree; see the protocol page.

WS2812B bit timingWS2812B bit timing: a zero bit is 400 nanoseconds high then 850 low; a one bit is 800 high then 450 low; tolerance plus or minus 150 nanoseconds; reset 50 microseconds low1 · Bit encoding, to scaleDINhighlowbit 0 period 1250 nsbit 1 period 1250 nsT0H 400 ±150 nsT1H 800 ±150 nsT0L 850 ±150 nsT1L 450 ±150 ns"0" bit"1" bit02505007501000125015001750200022502500time, ns± tolerance on each falling edge2 · One frame: 24 bits, most-significant bit firstDIN170110010007100110101700101100bitG · 8 bitsR · 8 bitsB · 8 bitsWire order GRB · 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 ≥ 50 µ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 400 / T0L 850 · T1H 800 / T1L 450 ns · ±150 ns · period 1250 ns · reset 50 µs source: datasheet

Compatibility

Dating evidence

Nobody announces these parts, so this records what we can actually cite rather than a release date. Library support proves only that the part existed by that date.

  • 2013-07-23 first library support FastLED — first commit introducing WS2812B ↗ day
  • 2016-09-11 first library support WLED — first commit introducing WS2812B ↗ day

Where to buy

Stub data — a few rows so purchase links can grow later. Prices are not tracked.

Similar parts

Same protocol or package first, then the same data scheme and colour channels.

Was this page useful?

0 people found this useful