![](/html/60/60b9/60b962ffec85c4a47389a8cb7427feaf645fe7df6ae9f831e1c018aca4bffabd/bg1.png)
IDUINO for Maker’s life
www.openplatform.cc
RGB LED Module
1. Introduction
RGB LED module consists of a full-color LED made by R, G, B three pin PWM voltage
input can be adjusted. Primary colors (red / blue / green) strength in order to achieve
full color mixing effect. Control of the module with the Arduino can be achieved Cool
lighting effects. And three resistor has been soldered on this board, so needn’t worry
to burn out the LED light under the long time work.
Specification
Red Vf: 1.8 to 2.1V
Green Vf: 3.0 to 3.2V
Blue Vf: 3.0 to 3.2V
Red color: 620-625 nm
Green color: 520-525 nm
Blue color: 465-470 nm
Red brightness @ ~20mA: 600-800 mcd
Blue brightness @ ~20mA: 800-1000 mcd
Green brightness @ ~20mA: 1500-2000mcd
2. Pinout
![](/html/60/60b9/60b962ffec85c4a47389a8cb7427feaf645fe7df6ae9f831e1c018aca4bffabd/bg2.png)
IDUINO for Maker’s life
www.openplatform.cc
In this example, we blink an LED and using an RGB LED we can generate any color we
want.
Here is the physical connection:
********Code begin********
//RGB LED pins
int ledDigitalOne[] = {10, 11, 9}; //the three digital pins of the digital
LED
//10 = redPin, 11 = greenPin, 9 =
bluePin
const boolean ON = HIGH; //Define on as LOW (this is because we use
a common
//Anode RGB LED (common pin is connected to
+5 volts)
const boolean OFF = LOW; //Define off as HIGH
//Predefined Colors
const boolean RED[] = {ON, OFF, OFF};
const boolean GREEN[] = {OFF, ON, OFF};
const boolean BLUE[] = {OFF, OFF, ON};
const boolean YELLOW[] = {ON, ON, OFF};
const boolean CYAN[] = {OFF, ON, ON};
const boolean MAGENTA[] = {ON, OFF, ON};
const boolean WHITE[] = {ON, ON, ON};
const boolean BLACK[] = {OFF, OFF, OFF};