Introduction
The KY-029 Dual Color LED module is an essential electronic component in the field of DIY electronics and hobbyist projects. This module consists of two LEDs of different colors that can be controlled independently, allowing users to create various color combinations and light effects. It is a versatile and easy-to-use module that is widely used in a range of electronic projects.
This module is compatible with popular electronic platforms like Arduino, ESP32, Raspberry Pi, and other microcontrollers. This module is equivalent to the KY-011 Two-Color LED module.
Hardware Required
You will require the following Hardware Components for interfacing the KY-029 Dual Color LED Module with Arduino.
Components | # | Buy From Amazon |
---|---|---|
Arduino UNO | 1 | Buy Now |
KY-029 Dual Color LED Module | 1 | Buy Now |
Resistor 330Ω | 2 | Buy Now |
Jumper Wires | 3 | Buy Now |
Breadboard | 1 | Buy Now |
What is the Module?
The KY-029 Dual Color LED module is an electronic component that consists of two LEDs of different colors that can be controlled independently. The module is composed of a PCB board, two LEDs (red and green), a resistor, and a few other electronic components. The module can be controlled using a microcontroller or other electronic components to create various color combinations and light effects.
Specifications
The module features a common cathode 5mm red/green LED, a 0Ω resistor, and 3 male pin headers. It is important to use this module with limiting resistors to prevent the LED from burning out during prolonged use.
Operating Voltage | 2.3-2.6V for green, 1.9-2.2V for red |
Current Consumption | 20mA per LED |
LED Colors | Red and Green |
Output Signal | Digital (High/Low) |
Diameter | 5mm |
Package Type | Diffusion |
Wavelength | 571nm + 625nm |
Luminous Intensity | 20~40mcd, 60~80mcd |
Features
- Two LEDs of different colors that can be controlled independently
- Easy to integrate with other electronic components
- Low power consumption
- Versatile and easy to use
- Can create various color combinations and light effects
Pinout
Pin Configuration
Pin Name | Pin Type |
---|---|
S | Signal Pin |
middle | VCC Pin |
– | Ground Pin |
Circuit Diagram
The following circuit shows you the connection of the KY-029 Dual Color LED Module with Arduino Please make the connection carefully
Circuit Connections
Arduino | Module |
---|---|
GND | GND Pin |
Pin 10 | S Pin with R1 |
Pin 11 | middle with R2 |
Installing Arduino IDE Software
First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow
Code
//For more Projects: www.arduinocircuit.com
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);
}
Applications
- DIY electronic projects
- Mood lighting
- Signage and displays
- Home automation
- Entertainment and gaming
Conclusion
The KY-029 Dual Color LED module is an essential electronic component in the field of DIY electronics and hobbyist projects. With its two LEDs of different colors that can be controlled independently, it allows users to create various color combinations and light effects. Whether you’re building a mood lighting system, a digital signage display, or an entertainment or gaming device, the KY-029 Dual Color LED module is a versatile and easy-to-use component that can help bring your projects to life.