This tutorial is going to teach you some basics on using Sparkfun RGB Led WS2812B with Arduino UNO
Step 1: Introduction
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.
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
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.
Step 2: Pin Definition
Step 3: Hardware Installation
Step 4: Sample Source Code
To get the result, please download the sample source code attached below.
Step 5: Include Adafruit_NeoPixel.h Library
Click skecth then find include library and click manage library. Next, search adafruit neopixel and install the latest version
Step 6: Upload Source Code
Open the source code. Make sure com of arduino UNO and com port is same and please sellect the board is Arduino UNO.