Tutorial to Interface RGB Led WS2812B With Arduino UNO
by mybotic in Circuits > Electronics
8620 Views, 21 Favorites, 0 Comments
Tutorial to Interface RGB Led WS2812B With Arduino UNO
![rgb.png](/proxy/?url=https://content.instructables.com/FJD/9SZN/JDUKJQDY/FJD9SZNJDUKJQDY.png&filename=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](/proxy/?url=https://content.instructables.com/FX0/0B54/JCAUGLKJ/FX00B54JCAUGLKJ.png&filename=PIN.PNG)
Hardware Installation
![HARDWARE.PNG](/proxy/?url=https://content.instructables.com/FBJ/HUD2/JCAUGTLM/FBJHUD2JCAUGTLM.png&filename=HARDWARE.PNG)
![PI.PNG](/proxy/?url=https://content.instructables.com/FF3/VEHY/JCAUGTYV/FF3VEHYJCAUGTYV.png&filename=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](/proxy/?url=https://content.instructables.com/FSK/EGSF/JCAUW1UQ/FSKEGSFJCAUW1UQ.png&filename=1.PNG)
![2.PNG](/proxy/?url=https://content.instructables.com/F0L/RAVE/JCAUW1UR/F0LRAVEJCAUW1UR.png&filename=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](/proxy/?url=https://content.instructables.com/FRB/L5JB/JCAUW2FN/FRBL5JBJCAUW2FN.png&filename=3.PNG)
![4.PNG](/proxy/?url=https://content.instructables.com/F8S/3YU1/JCAUW2J6/F8S3YU1JCAUW2J6.png&filename=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.