ESP32 KY-029 Dual Color LED Module

KY-029 Dual Color LED Module image

KY-029

Protocol: Digital

Overview

The KY-029 is a dual-color LED module featuring a 3mm LED that emits red and green light. By adjusting the intensity of each color using PWM, various color combinations can be achieved. The module's common cathode design simplifies integration with microcontrollers for visual indicators in projects.

About KY-029 Dual Color LED Module

The KY-029 Dual Color LED Module features a 3mm LED capable of emitting red and green light. By adjusting the intensity of each color using PWM, you can create various color combinations. The module operates with a common cathode configuration, simplifying control with microcontrollers.

Where to Buy

KY-029 Dual Color LED Module

Starting from

1$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 2.0V to 2.5V
Forward Current 20 mA
LED Diameter 3 mm
LED Colors Red and Green
Beam Angle 150°

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin S (Signal): Connects to the anode of the red or green LED.
  • Pin middle (VCC): Connects to the common cathode (GND).
  • Pin - (GND): Not connected.

Wiring with ESP32

  • Pin S: Connect to a PWM-capable GPIO pin on the ESP32 (e.g., GPIO16).
  • Pin middle: Connect to ESP32 GND.
  • Pin -: Not connected.

Troubleshooting Guide

Common Issues

❌ LED Not Lighting Up

🎨 Incorrect Color Display

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-029 Dual Color LED Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.