The KY-029 Dual Color LED module emits red and green light. You can adjust the intensity of each color using PWM.
Compatible with many electronics platforms like Arduino, Raspberry Pi, ESP32 and others. This module is similar to the KY-011.


KY-029 Specifications
This module consists of a common cathode 5mm red/green LED, a 0Ω resistor and 3 male pin headers. Use this module with limiting resistors to prevent burnout of the LED when working for long periods of time.
Operating Voltage | 2.3-2.6V for green, 1.9-2.2V for red |
Working Current | 20mA |
Diameter | 5mm |
Package Type | Diffusion |
Color | Red + Green |
Wavelength | 571nm + 625nm |
Luminous Intensity | 20~40mcd, 60~80mcd |
Connection Diagram
We’ll use a couple of 330Ω resistors to limit the current from the Arduino and prevent burning the LED.
KY-029 | Breadboard | Arduino |
---|---|---|
– | GND | |
middle | 330Ω resistor | Pin 11 |
S | 330Ω resistor | Pin 10 |

KY-029 Arduino Code
The following Arduino sketch will gradually alternate between red and green color.
int redpin = 11; // pin for the red LED
int greenpin = 10;// pin for the green LED
int val;
void setup()
{
pinMode(redpin, OUTPUT);
pinMode(greenpin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for(val = 255; val > 0; val--)
{
analogWrite(redpin, val);
analogWrite(greenpin, 255 - val);
delay(10);
}
Serial.println("Green");
delay(1000);
for(val = 0; val < 255; val++)
{
analogWrite(redpin, val);
analogWrite(greenpin, 255 - val);
delay(10);
}
Serial.println("Red");
delay(1000);
}
the wired connections are different in comparison to KY_011. This wiring doesn’t work. The ground is the pin on the right.