QZ004 RGB LED Strip
1.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.
2.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 |
3.Wiring Diagram
RGB LED Strip |
UNO |
---|---|
+5V |
5V |
GND |
GND |
DO |
Digital Pin 6 |
4.Sample Code
1//www.acebott.com
2#include <Adafruit_NeoPixel.h>
3Adafruit_NeoPixel pixels (8,6, NEO_GRB + NEO_KHZ800);
4void setup() {
5 pixels.begin(); // initialize RGB LED Strip
6}
7void loop() {
8 pixels.setBrightness(255);
9//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
10pixels.setPixelColor(0, pixels.Color(255,0,0)); // The first light is set to red
11 pixels.setPixelColor(1, pixels.Color(0,255,0)); // The second light is set to green
12 pixels.setPixelColor(2, pixels.Color(0,0,255)); // The third light is set to blue
13 pixels.setPixelColor(3, pixels.Color(255,255,0)); // The fourth light is set to yellow
14 pixels.setPixelColor(4, pixels.Color(0,255,255)); // The fifth light is set to cyan
15 pixels.setPixelColor(5, pixels.Color(255,0,255)); // The sixth light is set to pink
16 pixels.setPixelColor(6, pixels.Color(255,255,255)); // The seventh light is set to white
17 pixels.setPixelColor(7, pixels.Color(0,0,0)); // The eighth light goes out
18 pixels.show();//Send the set color data to the light strip to display the effect.。
19}
5.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.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com
Individual buyer: shop on aliexpress