ESP32 KY-009 RGB Full Color LED SMD Module Pinout, Wiring and more

KY-009 RGB Full Color LED SMD Module image

KY-009

Protocol: PWM

Overview

The KY-009 is an RGB LED module that allows for the creation of various colors by adjusting the brightness of its red, green, and blue LEDs using PWM signals. It is suitable for projects requiring colorful visual displays.

About KY-009 RGB Full Color LED SMD Module

The KY-009 RGB Full Color LED SMD Module features a 5050 SMD LED capable of emitting a wide range of colors by mixing red, green, and blue light. Each color’s intensity can be adjusted using Pulse Width Modulation (PWM), allowing for the creation of nearly any color in the visible spectrum. The module operates at a voltage of 5V, with forward voltages of 1.8V for the red LED and 2.8V for the green and blue LEDs. It is compatible with microcontrollers such as Arduino, Raspberry Pi, and ESP32.

Where to Buy KY-009 RGB Full Color LED SMD Module

KY-009 RGB Full Color LED SMD 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.

KY-009 Datasheet and Technical Specifications

Operating Voltage 5V
Forward Voltage (Red) 1.8V
Forward Voltage (Green/Blue) 2.8V
Forward Current 20mA
LED Type 5050 SMD
Dimensions 18.5 mm x 15 mm

KY-009 Pinout Diagram

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 (-): Common cathode (GND).
  • Pin (R): Red LED anode.
  • Pin (G): Green LED anode.
  • Pin (B): Blue LED anode.

KY-009 Wiring with ESP32

  • KY-009 Pin (-): Connect to ESP32 GND.
  • KY-009 Pin (R): Connect to ESP32 PWM-capable GPIO pin (e.g., GPIO18) through a 180Ω resistor.
  • KY-009 Pin (G): Connect to ESP32 PWM-capable GPIO pin (e.g., GPIO19) through a 100Ω resistor.
  • KY-009 Pin (B): Connect to ESP32 PWM-capable GPIO pin (e.g., GPIO21) through a 100Ω resistor.

KY-009 Troubleshooting Guide

Common Issues

❌ LED Not Lighting Up

🎨 Incorrect Color Output

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

KY-009 Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-009 RGB Full Color LED SMD 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.