RGB LED Strip Driver Shield SKU:DFR0274
Contents
1 Introduction
2 Specification
3 Pin Out
4 Sample Code
4.1 LED Strip driving code
4.2 IR Receiving Code
4.3 IR Remote control Demo
Introduction
The RGB LED Strip Driver Shield allows an Arduino board to drive the RGB LED Strip. Through
control the 3 MOSFEET on the board,you can turn the RGB LED ON/OFF,and show colors
differently.
You can also control the RGB LED Strip Driver Shield by the IR remote controller.
The RGB LED Strip Driver Shield connects to an Arduino board using long wire-wrap headers which
extend through the shield. This keeps the pin layout intact and allows another shield to be stacked
on top.
Arduino uses digital PWM pins 9, 10, 11 to control the MOSFEET on the RGB LED Strip Driver
Shield. and the digital pin 4 is used to receive the IR signal.These pins cannot be used for general
i/o.
The shield have a fuse,it can limit the current.
Specification
Supply voltage: PWM1 (Blue Output control)
D10 -> PWM2 (Red Output control)
D11 -> PWM3 (Green Output control)
IR Recieving Pin:
D4 -> IR data receiving
PS: This feature could be disable by removing the jumper cap on the shield.
Note:
1. Commonly we use the common anode RGB LED Strip. So when connecting the RGB Strip to the
driver shield, it requires a independent 12v power source for the high power LED strip.
2. The maximum powering current from this shield is about 9A totally(3A for each way). So it could
almost directly drive a 10 meter RGB LED strip.
Sample Code
LED Strip driving code
Here's the basic code for controlling the color of the RGB LED strip.
int RedPin = 10;
//Arduino driving pin for Red
int GreenPin = 11;
//Arduino driving pin for Green
int BluePin = 9;
//Arduino driving pin for Blue
void setColor(int red, int green, int blue)
{
analogWrite(RedPin, red);
analogWrite(GreenPin, green);
analogWrite(BluePin, blue);
}
void setup()
{
pinMode(RedPin, OUTPUT);
//Init Arduino driving pins
pinMode(GreenPin, OUTPUT);
pinMode(BluePin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for (int i=0;i10)Red_Bright-=10;
if (Green_flag==true&&Green_Bright>10)Green_Bright-=10;
Serial.println("v");
break;
case 31365: // ^ scroll up tests
if (Blue_flag==true&&Blue_Bright
很抱歉,暂时无法提供与“DFR0274”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+105.104131+12.61951