5.4 × 5.0 mm 6 pins top-emitting

WS2813

5050 · smd · WS2813 · WorldSemi

1-wire RGB 3.5–5.3 V backup data line active

Also sold as WS2813 5050

At a glance

Colour
RGB8 bits per channel
Data
1-wiretimed pulses on one line
Supply ≠
3.5–5.3 Vbackup data line
Size
5.4 × 5.0 × 1.5 mm6 pins · top
Max current ≠
54 mA18 mA per channel
PWM ≠
2 kHzreset 300 µ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, WS2813

Current per channel

The original WS2813 sheet quotes 18 mA (or 5 mA); the 16 mA ‘B’ sheets differ.

What each source says about current per channel
SourceSaysPage
ws2813 RGB channel constant current 18 mA (WS2813A/B), 5 mA (C/D) 5
ws2813b-b-c114592 16 mA 3
ws2813b-v5-c965558 16 mA 3

What we show. 18 mA / 54 mA is shown for the plain part (the original sheet); the later ‘B’, V5 and V6 variants carry 16 mA / 48 mA.

Pinout

Pin 1 is a no-connect on the original sheet and a second data output on later ones.

What each source says about pinout
SourceSaysPage
ws2813 1 NC (hanging; the circuit does not work if it is connected) 3
ws2813b-v5-c965558 1 BO (backup data output) 2

What we show. Shown as NC. Do not connect it unless you have the sheet for the exact revision.

Protocol WS2813

Reset period

The WS2813 sheet quotes two reset times, and later sheets a third.

What each source says about reset period
SourceSaysPage
ws2813 "250 us or more of reset time" (feature text) 2
ws2813 RES 300 µs or more (timing table) 5
ws2813b-v5-c965558 RES 280 µs or more 3
FastLED led_timing.h (driver-tuned) 300 µs —

What we show. 300 µs (the table) is shown for the original sheet, and 280 µs is recorded as a second datasheet set. 300 µs or more satisfies all of them.

Bit timing

FastLED drives the WS2813 below the datasheet’s stated T1H minimum, and later sheets widen the windows.

What each source says about bit timing
SourceSaysPage
ws2813 T0H 300–450 ns, T1H 750–1000 ns 5
ws2813b-v5-c965558 T0H 220–380 ns, T1H 580 ns–1 µs 3
FastLED led_timing.h (driver-tuned) T0H 320 ns, T1H 640 ns —

What we show. The datasheet sets are listed in the timing table, the older first, with FastLED’s values labelled as driver-tuned. 640 ns works in practice but is not a specification.

Supply voltage

Supply range differs by sheet generation.

What each source says about supply voltage
SourceSaysPage
ws2813 VDD +3.5 to +5.3 V 4
ws2813b-v5-c965558 VCC +3.7 to +5.3 V 2
ws2813b-mini-v6-c55629351 VCC +3.3 to +5.3 V 2

What we show. The original sheet’s range is shown (previously the catalogue showed 4.5 to 5.5 V, which is only the test condition in the electrical table, not a supply rating).

The dual-signal WS2812B. Each LED takes data from both its predecessor and the one before that, so one dead LED does not blank everything downstream - which is why it is the sensible choice for anything installed behind a wall.

Pin numbering is now checked against the datasheet (the mirrored 2016 sheet and the LCSC WS2813B-B sheet agree): 1 NC, 2 VDD, 3 DO, 4 DIN, 5 GND, 6 BIN. The earlier VDD/DOUT/BIN/VSS/DIN/NC order recorded here was wrong. Six pads, three down each long side. In the top view pin 1 is bottom-right, 2 and 3 run up the right side, 4 to 6 come back down the left; the chamfered corner marks pin 1. Later WorldSemi sheets (WS2813B-V5 onward) name pin 1 BO (backup data out) instead of NC - see the variants. Stated outline is 5.0 x 5.4 x 1.5 mm.

The current LCSC WS2813 datasheets give a different timing table from the 2016 one the protocol page leads with; see the protocol.

Variants

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

Order codeFaceLensWhite PinsSiliconStatusFirst seenDatasheet
WS2813 white clear — 6 — active 2016-05 PDFPDF
WS2813-B black clear — 6 — active 2016-05 PDFPDF
WS2813B-B — — — 6 — active 2016-05 PDFPDF
The LCSC SKU matching the “-B” housing. Pin 1 is NC. 16 mA per channel per the sheet. Stock 94,805.
WS2813E — — — 6 — active 2016-05 PDFPDFPDF
Pin 1 is NC; the sheet calls the supply pin VDD and states a 16 mA constant current per RGB channel, 3.5-5.3 V, and a 1.6 us upper limit on T1H/T0L. Stock 58,865.
WS2813A-V1 — — — 6 A-V1 active 2016-05 PDFPDFPDF ↗
Pin 1 is NC. LCSC lists the package as 5.4 x 5 mm. The sheet gives no per-channel current. Stock 1,340.
WS2813A-B-V1 — — — 6 A-V1 active 2016-05 PDFPDFPDF ↗
Pin 1 is NC; 16 mA per channel. Stock 1,165.
WS2813B-V5 — — — 6 V5 active 2016-05 PDFPDFPDF
Pin 1 is BO (backup data out), not NC - the one pinout difference from the older sheets. The most-stocked WS2813 SKU (155,940). Datasheet timing is the 220-380 / 580-1000 ns set.
WS2813B-V6 — — — 6 V6 active 2016-05 PDFPDFPDF ↗
Pin 1 BO; 3.3-5.3 V supply, 1 uA quiescent. Stock 4,495.
WS2813B-B-V6 — — — 6 V6 active 2016-05 PDFPDFPDF ↗
Pin 1 BO. Stock 200.
WS2813A-V2 — — — 6 A-V2 active 2016-05 PDFPDFPDF ↗
Pin 1 BO. Stock 115.
WS2813C-V6 — — — 6 V6 active 2016-05 PDFPDFPDF ↗
The “C” version drives 5 mA per channel (the sheet states it) - far dimmer than the B parts. Pin 1 BO. Stock 4,450.

Pinout

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

WS2813WS2813-BWS2813B-BWS2813EWS2813A-V1WS2813A-B-V1
WS2813 5050 package, top and side viewPin 1 is ringed. pin 1 NC (no connect), pin 2 VDD (power), pin 3 DO (data out), pin 4 DIN (data in), pin 5 GND (ground), pin 6 BIN (backup in).11 NCno connect22 VDDpower33 DOdata out44 DINdata in55 GNDground66 BINbackup in5.4 mm overall5.0 mmtop view1.5 mmside view
  • No connect
  • Power
  • Data
  • Ground
  • Backup data
  • Pin 1
  • Cut corner

Outline and pin positions checked against the manufacturer datasheet (WS2813 sheet (mirrored, ws2813.pdf p3)). What this means.

  1. 1 NC nc
  2. 2 VDD power
  3. 3 DO data out
  4. 4 DIN data in
  5. 5 GND ground
  6. 6 BIN backup data in
WS2813B-V5WS2813B-V6WS2813B-B-V6WS2813A-V2WS2813C-V6
WS2813 5050 package, top and side viewPin 1 is ringed. pin 1 BO (backup out), pin 2 VCC (power), pin 3 DO (data out), pin 4 DIN (data in), pin 5 GND (ground), pin 6 BIN (backup in).11 BObackup out22 VCCpower33 DOdata out44 DINdata in55 GNDground66 BINbackup in5.4 mm overall5.0 mmtop view1.5 mmside view
  • Backup data
  • Power
  • Data
  • Ground
  • Pin 1
  • Cut corner

Outline and pin positions checked against the manufacturer datasheet (WS2813 sheet (mirrored, ws2813.pdf p3)). What this means.

  1. 1 BO backup data out
  2. 2 VCC power
  3. 3 DO data out
  4. 4 DIN data in
  5. 5 GND ground
  6. 6 BIN backup data in

Protocol — WS2813

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

WS2813 bit timingWS2813 bit timing: a zero bit is 375 nanoseconds high then 875 low; a one bit is 875 high then 375 low; tolerance plus or minus 300 nanoseconds; reset 300 microseconds low1 · Bit encoding, to scaleDINhighlowbit 0 period 1250 nsbit 1 period 1250 nsT0H 375 ±300 nsT1H 875 ±300 nsT0L 875 ±300 nsT1L 375 ±300 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 ≥ 300 µ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.BIN (backup): tied to the previous pixel's DIN
T0H 375 / T0L 875 · T1H 875 / T1L 375 ns · ±300 ns · period 1250 ns · reset 300 µs source: datasheet

Compatibility

  • near clone WS2812B

    Close enough that libraries drive it with WS2812 timings, but it needs a longer reset (300 us) and has a second data input, so it is a 5-pin part on strip. Not pin-compatible.

  • electrically similar of this Amicc SC5050A-B01 (backup input)

    Inferred from the sheet's own features and numbers; Amicc never names WorldSemi or WS2813. It has a backup signal input (BIN, "备份信号输入脚") and a breakpoint-resume feature, the pads sit in the same positions as the catalogue's WS2813 5050 (DIN, GND, BIN down the left column; DO, VDD, NC down the right, NC at the cut corner), and its normal-mode figures (T0H 300 ns, reset 280 us, T1H and T0L in a 580 ns to 1 us window) match WorldSemi's newer WS2813 table. T1L, however, is 300 +/-100 ns where the WorldSemi table has 580 ns to 1 us, and colour order is GRB. Supply is 3.7-5.3 V. Not tested.

  • protocol compatible of this WS2814

    Same timing family and backup line, but four channels rather than three.

  • near clone of this WS2815

    Same backup-data-line concept, but 12 V and a different bit period. Do not assume WS2813 timings will drive it.

  • electrically similar of this WS2816

    Both have a backup (breakpoint-resume) data line in the 6-pin and 6-pad packages, but the WS2816 frame is 48 bits per pixel against 24, so the data stream is not interchangeable. The 4-pin and 5-pin WS2816 variants have no backup input at all.

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.

  • 2016-05 datasheet revision WS2813 datasheet published by Normand Electronic; the month is taken from the publisher's own upload path (/upload/201605/) ↗ month
  • 2016-07-18 first library support FastLED — first commit introducing WS2813 ↗ day
  • 2018-01-10 first library support WLED — first commit introducing WS2813 ↗ 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