Site icon 14core.com

Wiring WS2812 8-Bit RGB LED Strip with Arduino

In this illustration we’re going to wire the 8bit WS2812B 50-50 which Chainable, addressable LED (Light Emitting Diode) A precise on any vivid colorful light mixing animation, these module as the example for this demonstration we going to control each WS2812B LED using Digital and serial communication. There are two types or version of WS2812 the WS2812 and the WS2812B see the diagram below the difference between the two of theme.

The WS2812 is a family of smart LED light source that control circuit and RGB chip are integrated in a package 50-50 component. It is an onboard intelligent digital port latch and signal reshaping implication drive circuit an effectively ensuring that the pixel point light color are HIGH and consistent.

The data transfer protocol uses a single NZR communication mode. When powering the pixel the D-IN port receive data from the microcontroller, the first pixel collect initial a 24bit of data then sent to the internal data latch, the other data which is 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 will reduce to 24bit. The pixel adopt an auto reshaping transmit technology, making the pixel cascade number is not limited the signal transmission only depend on the speed of the signal transmission.

The WS2812B is a new generation of the product based on WS2812. It is not only inherited from the WS2812 but also improve the Integrated Circuit from mechanical arrangement outside & inside to the structure and enhance the stability and efficiency.

Compared to the first version of WS2812 and the new WS2812B they added a reverse protection circuit. The circuit has been reverse the connection of the power supply without any damage to the device and to increase the stability which in effect.

As you can see the mechanical design. You can see the comparison between the two, it is very easy to find the difference between the WS281 and WS2812B the same size but difference is the PIN number they reduced to 4 pin, with the decrease of the spacing between adjacent legs is added.

WS2812 / WS2812B

WS2812 Protocol

Wiring with Arduino

Predefined Colors in FastLED Library

Arduino Sketch Code w/d Fast LED
[crayon-6695d6a7d3ce7347087795/]
[crayon-6695d6a7d3cef587638370/]




Downloads

Download FASTLED Code Library | Zip
Download  Adafruit NeoPixel Code Library | Zip
Driving Thousand of LED Strip? Download OctoWS2811 | Zip

Wiring WS2812 8-Bit RGB LED Strip with Arduino
Exit mobile version