WS2812B-2020 Details

Overview

The REV3 lighting boards have 6 WS2812B-2020 LEDS on them. A data sheet has been uploaded on the WARG confluence page for reference.

Data Composition

A WS2812B-2020 (or neopixel) has 3 primary colour components, each of which can be used at varying brightness levels. Those colours are green, red, and blue. To get an LED to light up, you must send it a 24-bit frame. Each frame is composed of a green, red, and blue “color-bytes” (they’re in quotes for a reason). The value of each “colour-byte” in the frame determines how brightly that color shines on the LED. The following is a screenshot of the 24-bit data composition from the data sheet.

24-bit data composition from the WS2812B-2020 data sheet

The minimum value of 0 means that a particular color doesn’t shine at all, and a value of 255 means that a colour shines a max brightness.

Data Transmission

Data is sent as an 800 KHz clock signal, where pulses are read as bits by the LEDs. This is why the term “colour-byte” was/is in quotes. For each pulse a certain amount of “high” time and “low” time will be read as a “0” bit or “1” bit by the LED. The following are the data sheet specifications.

Daisy-Chaining

If you have multiple LEDs daisy-chained together, then you will have to send multiple data frames.

Each LED will accept a data frame and pass the remaining frames onto the next LED in series with it.

 

WS2812B-2020 data sheet

WS2812B data sheet