4.0 × 2.0 mm 4 pins side-emitting

WS2812C-4020

4020 · smd · WS2812C · WorldSemi

1-wire RGB 3.7–5.3 V active

Also sold as WS2812C 4020

At a glance

Colour
RGB8 bits per channel
Data
1-wiretimed pulses on one line
Supply ≠
3.7–5.3 Vno backup data line
Size
4.0 × 2.0 × 1.7 mm4 pins · side
Max current
15 mA5 mA per channel
PWM
2 kHzreset 280 µ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.

Protocol WS2812C

Supply voltage

V6 sheets state a lower minimum supply than the earlier WS2812C sheets.

What each source says about supply voltage
SourceSaysPage
ws2812c-c114587 VDD +3.7 to +5.3 V 2
ws2812c-v6-c55109521 VDD +3.3 to +5.3 V 2

What we show. 3.7 V is shown, the safer minimum.

The WS2812C in the side-view 4020 package. The V6 sheet gives pins 1 DIN, 2 VDD, 3 DOUT, 4 VSS and says DIN/DOUT can be swapped.

Variants

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

Order codeFaceLensWhite PinsSiliconStatusFirst seenDatasheet
WS2812C-4020-V6 — — — 4 V6 active unknown V6
Stock 27,265 when checked.
WS2812C-4020-H2 — — — 4 H2 active unknown V6PDF ↗
LCSC lists the package as “SMD4020”. Pin table 1 DIN, 2 VDD, 3 DOUT, 4 GND; 5 mA per channel. Stock 3,795.

Pinout

These variants do not share a pinout. Check which one you are buying before laying out a board.

WS2812C-4020-V6
WS2812C-4020 4020 package, top and side viewPin 1 is ringed. pin 1 DIN (data in), pin 2 VDD (power), pin 3 DOUT (data out), pin 4 VSS (ground).11 DIN22 VDD33 DOUT44 VSS4.0 mm2.0 mmfront view (lens face)1.7 mm deepside view (end-on, light leaves the right face)
  • Data
  • Power
  • Ground
  • Pin 1

Outline and pin positions checked against the manufacturer datasheet (WS2812C-4020 sheet p2). Light leaves the lens face; pads sit in one row on the mounting edge. What this means.

  1. 1 DIN data in
  2. 2 VDD power
  3. 3 DOUT data out
  4. 4 VSS ground
WS2812C-4020-H2
WS2812C-4020 4020 package, top and side viewPin 1 is ringed. pin 1 DIN (data in), pin 2 VDD (power), pin 3 DOUT (data out), pin 4 GND (ground).11 DIN22 VDD33 DOUT44 GND4.0 mm2.0 mmfront view (lens face)1.7 mm deepside view (end-on, light leaves the right face)
  • Data
  • Power
  • Ground
  • Pin 1

Outline and pin positions checked against the manufacturer datasheet (WS2812C-4020 sheet p2). Light leaves the lens face; pads sit in one row on the mounting edge. What this means.

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

Protocol — WS2812C

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

WS2812C bit timingWS2812C bit timing: a zero bit is 300 nanoseconds high then 790 low; a one bit is 790 high then 790 low; reset 280 microseconds low1 · Bit encoding, to scaleDINhighlowbit 0 period 1090 nsbit 1 period 1580 nsT0H 300 nsT1H 790 nsT0L 790 nsT1L 790 ns"0" bit"1" bit02505007501000125015001750200022502500time, nsDatasheet lists unequal bit periods (1090 vs 1580 ns); each bit is drawn with its own.2 · One frame: 24 bits, most-significant bit firstDIN170110010007100110101700101100bitG · 8 bitsR · 8 bitsB · 8 bitsWire order GRB · frame = 24 × ~1580 ns ≈ 37.9 µ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 300 / T0L 790 · T1H 790 / T1L 790 ns · reset 280 µs source: datasheet

Compatibility

  • drop in WS2812B

    Sold as fully compatible with the WS2812B and driven identically by every library; the difference is packaging and cost, not signalling.

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.

  • 2017-05-23 datasheet revision WorldSemi WS2812C datasheet (LCSC C114587) Modify Record: 'V1.0 N New 20170523' ↗ 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