Tutorial to Interface RGB Led WS2812B With Arduino UNO

by mybotic in Circuits > Electronics

8505 Views, 21 Favorites, 0 Comments

Tutorial to Interface RGB Led WS2812B With Arduino UNO

rgb.png

This tutorial is going to teach you some basics on using Sparkfun RGB Led WS2812B with Arduino UNO

Introduction

Description:

This is a breakout board for the WS2812B RGB LED. The WS2812B (or “NeoPixel”) is actually an RGB LED with a WS2811 built right into the LED! All the necessary pins are broken out to 0.1" spaced headers for easy bread-boarding. Several of these breakouts can even be chained together to form a display or an addressable string.

Specifications:

1. Size : 50mm x 50 mm
2. Colour display : Red, Green, Blue

3. Viewing angle: 120 degrees

4. Red: (620-630nm) @ 550-700mcd

5. Green: (515-530nm) @ 1100-1400mcd

6.Blue: (465-475nm) @ 200-400mcd

7.Description:

VCC - Input voltage 5V

GND – The common, ground, 0V reference supply voltage.

DI – Data from a microcontroller comes into this pin.

DO – Data is shifted out of this pin, to be connected to the input of another pixel or left floating if it is the last link in the chain.

Pin Definition

PIN.PNG

Hardware Installation

HARDWARE.PNG
PI.PNG

Sample Source Code

To get the result, please download the sample source code attached below.

Downloads

Include Adafruit_NeoPixel.h Library

1.PNG
2.PNG

Click skecth then find include library and click manage library. Next, search adafruit neopixel and install the latest version

Upload Source Code

3.PNG
4.PNG

Open the source code. Make sure com of arduino UNO and com port is same and please sellect the board is Arduino UNO.

Click upload.

Downloads

Result