Full Colour RGB LED Module Arduino Compatible
ARD2-2216
$3.95
QTY | Price |
---|---|
1 | $3.95 |
Description
This full-color RGB LED Module Arduino compatible produces a variety of colors by mixing red, green, and blue light. It features a full color LED powered by RGB three-pin PWM voltage inputs. The brightness of each color can be adjusted using PWM to produce any color on the RGB spectrum.
Test Code
int redpin = 11; // select the pin for the red LED
int bluepin = 10; // select the pin for the blue LED
int greenpin = 9; // select the pin for the green LED
int val;
void setup() {
pinMode(redpin, OUTPUT);
pinMode(bluepin, OUTPUT);
pinMode(greenpin, OUTPUT);
Serial.begin(9600);
}
void loop() {
for (val = 255; val > 0; val--) {
analogWrite(11, val);
analogWrite(10, 255-val);
analogWrite(9, 128-val);
delay (1);
}
for (val = 0; val < 255; val++) {
analogWrite(11, val);
analogWrite(10, 255-val);
analogWrite(9, 128-val);
delay(1);
}
Serial.println(val, DEC);
}
Features
- LED can display any RGB colour
- RGB trichromatic limiting resistor to prevent burnout
Specifications
Operating Voltage
5.0V
LED Drive Mode
Common Cathode Driver
Colour
Black
Material
PCB
Resources
All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.