The Modulo Led 2 Colores 5mm (KY-011), manufactured by Keys, is a dual-color LED module designed for use in a variety of electronic projects. This module features a 5mm LED capable of emitting two distinct colors, typically red and green, depending on the applied voltage and polarity. It is commonly used as a visual indicator in circuits, providing status updates, alerts, or other signals.
The following table outlines the key technical details of the KY-011 module:
Parameter | Value |
---|---|
LED Type | 5mm Dual-Color (Red/Green) |
Operating Voltage | 2.0V (Red), 3.0V (Green) |
Forward Current | 20mA (typical) |
Module Dimensions | 18mm x 10mm x 8mm |
Connector Type | 3-pin header |
Manufacturer Part ID | KY-011 |
The KY-011 module has a 3-pin header for easy connection. The pinout is as follows:
Pin | Name | Description |
---|---|---|
1 | Signal 1 | Controls the red LED (active HIGH) |
2 | GND | Ground connection (common cathode) |
3 | Signal 2 | Controls the green LED (active HIGH) |
Connect the Pins:
Power Requirements:
Control Logic:
Below is an example of how to use the KY-011 module with an Arduino UNO:
// Define the pins connected to the KY-011 module
const int redPin = 8; // Pin controlling the red LED
const int greenPin = 9; // Pin controlling the green LED
void setup() {
// Set the LED pins as outputs
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
}
void loop() {
// Turn on the red LED
digitalWrite(redPin, HIGH);
digitalWrite(greenPin, LOW);
delay(1000); // Keep red LED on for 1 second
// Turn on the green LED
digitalWrite(redPin, LOW);
digitalWrite(greenPin, HIGH);
delay(1000); // Keep green LED on for 1 second
// Turn on both LEDs to produce yellow
digitalWrite(redPin, HIGH);
digitalWrite(greenPin, HIGH);
delay(1000); // Keep both LEDs on for 1 second
// Turn off both LEDs
digitalWrite(redPin, LOW);
digitalWrite(greenPin, LOW);
delay(1000); // Keep LEDs off for 1 second
}
LEDs Do Not Light Up:
Only One Color Lights Up:
LEDs Are Dim:
Mixed Colors Are Not Achieved:
Q: Can I use the KY-011 module without a microcontroller?
A: Yes, you can connect the signal pins to a power source (with resistors) to manually control the LEDs.
Q: What happens if I reverse the polarity?
A: The LEDs will not light up, but no damage will occur as long as the voltage is within safe limits.
Q: Can I use PWM to control brightness?
A: Yes, you can use PWM (Pulse Width Modulation) on the signal pins to adjust the brightness of the LEDs.
This concludes the documentation for the Modulo Led 2 Colores 5mm (KY-011).