Table of Contents

lamaPLC Communication: WS2812

WS2812 WS2812 is a intelligent control LED light source that the control circuit and RGB chip are integrated in a package of 4020, 2020, 3535, 5050 components. It internal include intelligent digital port data latch and signal reshaping amplif ication drive circuit. Also include a precision internal oscillator and a 12V voltage programmable constant curre-nt control part, effectively ensuring the pixel point light color height consistent.

The data transfer protocol use single NZR communication mode. After the pixel power-on reset, the DIN port receive data from controller, the first pixel collect initial 24bit data then sent to the internal data latch, the other data which reshaping by the internal signal reshaping amplification circuit sent to the next cascade pixel through the DO port. After transmission for each pixel,the signal to reduce 24bit.

Pixel adopt auto resha-ping transmit technology, making the pixel cascade number is not limited the signal transmission, only depend on the speed of signal transmission. LED with low driving voltage, environmental protection and energy saving, high brightness, scattering angl e is large, good consistency, low power, long life and other advantages. The control chip integrated in LED above becoming more simple circuit, small volume, convenient installation.

WS2812B

WS2812B is the development and new generation of product based on WS2812. It not only inherited all the good qualities of WS2812 but also improved the IC from mechanical arrangement outside to the structure inside, further enhance the stability and efficiency. An extrude advantage of is that the RGB chip on WS2812B has a higher brightness and color uniformity than WS2812. Despite its similar size, the WS2812B strip contains four pins as opposed to six pins on the WS2812.

WS2812 vs. WS2812B

WS2812B Hardware Overview

At first glance, the WS2812B LED may appear to be a standard 5050-sized (5x5mm) SMD RGB LED, but it is much more than that. It actually contains an integrated circuit inside. Below is a zoomed-in image of the WS2812B.

WS2812B LED strip

PIN configuration

WS2812 PIN configuration

PINSymbolFunction description
1DOUTcontrol data signal output
2DINcontrol data signal input
3Vccpower supply control unit
4NC-
5Vddpower supply LED
6VssGround

Technical description

ParameterSymbolRatingsUnit
Power supply voltageVCC+6.0 .. +7.0V
Power supply voltageVDD+6.0 .. +7.0V
Input voltageVI-0.5 .. VDD+0.5V
Operation junction temperatureTopt-25 .. +80
Storage temperature rangeTstg-55 .. +150

LED characteristic parameter

Emitting colorWavelength (nm)Luminous intensity (mcd)Current (mA)Voltage (V)
Red620-630550-700201.8-2.2
Green515-5301100-1400203.0-3.2
Blue465-475200-400203.2-3.4

Data transfer time

TH + TL = 1.25 µs ± 600 ns

T0H0 code, high voltage time0.35us±150ns
T1H1 code, high voltage time0.7us±150ns
T0L0 code, low voltage time0.8us±150ns
T1L1 code, low voltage time0.6us±150ns
RESlow voltage timeAbove 50µs

Sequence chart:
WS2812 sequence chart

Cascade method:
WS2812 cascade method

Data transmission method:
WS2812 data transmission method

Note:The data of D1 is send by MCU, and D2, D3, D4 through pixel internal reshaping amplification to transmit.

Composition of 24 bit data:
WS2812 composition of 24 bit data Note: Follow the order of GRB to sent data and the high bit sent at first.

Typical application circuit:
WS2812 typical application circuit

WS2812 / WS2812B with Arduino

WS2812 FX Library for Arduino and ESP microprocessors.
This library features a variety of blinken effects for WS2811/WS2812/NeoPixel LEDs.

WS2812 / WS2812B with Arduino

Sources

Wikipedia (Adafruit WS2813 pdf)

WS2812 topics on lamaPLC



This page has been accessed for: Today: 2, Until now: 32