Rainbow Lights
In this project, you'll learn how to connect and control a ring of RGB LEDs each with a built-in WS2812 controller.
This rainbow lights ring consists of 60 RGB LEDs each one with a built-in WS2812 controller. | ||
The WS2812_RobotsForFun library contains all of the functions for interfacing with the WS2812 controller. | ||
Parts needed:
| ||
1 | Making the connections
The WS2812 controller on the RGB LED ring has four connections: 5V, GND, DI and DO.
| |
2 | Download the WS2812_RobotsForFun library. | |
3 | Install the WS2812_RobotsForFun library by selecting Sketch from the Arduino IDE menu
Click the Open button (Refer to this document for more information on how to install a library if you run into problems.) | |
4 | Create a new program by selecting File from the menu
Also make sure that the #define LED_COUNT number matches the total number of LEDs in your RGB ring(s). | |
5 | Upload and run the program. | |