Product Introduction #
The RGB light strip usually consists of multiple RGB lights arranged at certain spacing and connected to the circuit board.
Each RGB lamp contains red, green, blue three different colors of the small lamp beads each one, when the internal three small lamp beads with different brightness collocation, similar to the three colors in different proportions of mixed, the final external presentation is the mixed light color.
Application reference: This module can be used for home decoration, festivals and celebrations, light and shadow art, etc.
Parameter Specification #
Parameter | Value//Description |
---|---|
Operating voltage | 5V |
Operating temperature | -30°C~+70°C |
Number of lamp beads | 8 |
Color of light | RGB |
Peak wavelength | 625nm;470nm;530nm |
Control signal | digital signal |
Size | 13cm |
Wiring Diagram #
RGB LED Strip | UNO |
---|---|
+5V | 5V |
GND | GND |
DO | Digital Pin 6 |
Sample Code #
//www.acebott.com
#include
Adafruit_NeoPixel pixels (8,6, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // initialize RGB LED Strip
}
void loop() {
pixels.setBrightness(255);
//Set the brightness of the lamp strip. The brightness value ranges from 0 to 255. 255 indicates that the lamp strip is displayed at its maximum brightness
pixels.setPixelColor(0, pixels.Color(255,0,0)); // The first light is set to red
pixels.setPixelColor(1, pixels.Color(0,255,0)); // The second light is set to green
pixels.setPixelColor(2, pixels.Color(0,0,255)); // The third light is set to blue
pixels.setPixelColor(3, pixels.Color(255,255,0)); // The fourth light is set to yellow
pixels.setPixelColor(4, pixels.Color(0,255,255)); // The fifth light is set to cyan
pixels.setPixelColor(5, pixels.Color(255,0,255)); // The sixth light is set to pink
pixels.setPixelColor(6, pixels.Color(255,255,255)); // The seventh light is set to white
pixels.setPixelColor(7, pixels.Color(0,0,0)); // The eighth light goes out
pixels.show();//Send the set color data to the light strip to display the effect.。
}
Test Result #
When you have successfully connected the line according to the wiring diagram and successfully uploaded the correct program, you will see the light strip display different colors of light in the order of red, green, blue, yellow, blue, pink, and white.
Related Resources #
Get One Now #
B2B Business: info@acebott.com