WS2812 LED bar/What it is/02. What is on the board
What it is · 02 of 9

What is on the board

Five XL-5050RGBC-WS2812B LEDs in a column, a four-pin right-angle header printed GND, VCC, NC and DATA, and two LEGO holes down the left side. Nothing else: no capacitor, no resistor, and no pin that carries the data past the fifth LED.

One block, assembled

The TK33 at an angle: a small black board with a gold border, five square white LEDs in a column along its right side, four right-angle header pins sticking out of the left edge beside the labels GND, VCC, NC and DATA, the words lonely binary in gold, and two round LEGO holes on the left, one near each end.
The TK33: five LEDs on the right, the header on the left.

The bar arrives with the right-angle header soldered on. It is the standard TinkerBlock size, 22.4 × 30.4 mm, but its two LEGO holes are both on the left, 24 mm apart, one above the header and one below it.

Five LEDs and four pins

What is on the board
XL-5050RGBC-WS2812B
Part
Part
XL-5050RGBC-WS2812B
Five LEDs. LED1 to LED5 are XINGLIGHT XL-5050RGBC-WS2812Bs, 5 × 5 mm, 5.475 mm apart. Each drives its three colours at up to 12 mA with 256 steps of brightness.

The five squares are XINGLIGHT XL-5050RGBC-WS2812B LEDs, 5 × 5 mm, one every 5.475 mm. Each is a red, a green and a blue LED with a driver chip that holds them at a constant 12 mA per colour at full brightness, in 256 steps.

The TK33 from directly above, pins pointing left: GND, VCC, NC and DATA printed from top to bottom beside four header pins on the left edge, five white LED squares in a column on the right with a small mark at the top left and a plus sign at the bottom right of each, lonely binary in gold at the bottom, and a LEGO hole at the top left and bottom left.
GND at the top, DATA at the bottom. The bottom pin feeds the top LED.
PinConnected toWire it to
GNDEvery LED's groundYour board's GND
VCCEvery LED's supplyYour board's 5V, not 3V3
NCNothingNothing
DATALED1's data inputOne GPIO

The header reads GND, VCC, NC, DATA from the top. DATA is the bottom pin and goes straight into the top LED, with nothing between them. From there each LED's output feeds the next one's input, down to LED5.

The back

The back of the TK33, pins now pointing right: lonely binary in large gold letters, a gold box printed TK33 and WS2812 RGB LED BAR, the four header pads with the square one at the top, and a line of white text up the right edge that claims a second bar can follow this one, which is wrong for this board.
The line up the right edge is wrong: nothing leaves LED5.

The line of text up the back's right edge says the bar can be extended with another. It cannot. LED5's output pin is soldered to a pad that no trace reaches, and no pin or hole on the board carries it anywhere.

What is not on it

A WS2812 design usually adds a 100 nF capacitor beside each LED and a resistor of a few hundred ohms in the data line. The data sheet asks for both, the resistor against spikes when a board is plugged in live. This bar has neither, so make the wires with the USB cable out.

When it does not work

Which LED is pixel 0?

The top one, nearest the top LEGO hole, with the header's pins pointing left. DATA goes straight into its input, and the chain runs downward, so the bottom LED is pixel 4. Turn the bar upside down on a project and the numbers run the other way; the sketch can simply count backwards.

Does the NC pin do anything?

No. It is soldered to a pad that no copper reaches, so a wire in it goes nowhere. It is there so every TinkerBlock header has four pins. The mistake it invites is a jumper in NC instead of DATA, one hole up, which leaves every LED dark.

The back of the board says a second bar can follow this one. Can it?

Not on this board. The fifth LED's output is on a pad that no trace, pin or hole reaches, so there is nothing to connect a second bar to. The print on the back is wrong. To drive two bars, give the second its own GPIO.

Why is there no capacitor next to each LED?

The board was made without them. The LED's data sheet asks for a 100 nF capacitor across each LED's supply and a resistor in the data line. On a short jumper from a USB-powered board the bar runs without them; the practical rule is to connect it with the power off and keep the brightness sensible.

Where this goes next

The supply the LEDs want, and what it does to the data pin.

Five volts on VCC

Edit this page — content/books/ws2812-led-bar/whats-on-the-board.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

WS2812 RGB LED Bar

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum