

The AZDelivery KY-016 RGB LED module is a versatile light-emitting diode (LED) component capable of producing a wide range of colors by mixing red, green, and blue light. This module is ideal for applications requiring dynamic lighting effects, such as displays, decorative lighting, and status indicators. Its compact design and ease of use make it a popular choice for hobbyists, students, and professionals working on Arduino or other microcontroller-based projects.








The following table outlines the key technical details of the KY-016 RGB LED module:
| Parameter | Value |
|---|---|
| Manufacturer | AZDelivery |
| Part ID | KY-016 |
| Operating Voltage | 3.3V - 5V |
| Operating Current | 20mA per channel (typical) |
| LED Colors | Red, Green, Blue (RGB) |
| Control Method | PWM (Pulse Width Modulation) |
| Dimensions | 18mm x 15mm x 3mm |
| Connector Type | 4-pin header |
The KY-016 module has a 4-pin header for easy interfacing. The pin configuration is as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | R | Red LED control pin (connect to PWM pin on MCU) |
| 2 | G | Green LED control pin (connect to PWM pin on MCU) |
| 3 | B | Blue LED control pin (connect to PWM pin on MCU) |
| 4 | GND | Ground connection |
The following example demonstrates how to control the KY-016 RGB LED module using an Arduino UNO:
// Define the PWM pins connected to the RGB module
const int redPin = 9; // Connect to R pin of KY-016
const int greenPin = 10; // Connect to G pin of KY-016
const int bluePin = 11; // Connect to B pin of KY-016
void setup() {
// Set the RGB pins as output
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Example: Cycle through Red, Green, and Blue colors
setColor(255, 0, 0); // Red
delay(1000); // Wait 1 second
setColor(0, 255, 0); // Green
delay(1000); // Wait 1 second
setColor(0, 0, 255); // Blue
delay(1000); // Wait 1 second
}
// Function to set RGB color
void setColor(int redValue, int greenValue, int blueValue) {
analogWrite(redPin, redValue); // Set Red brightness
analogWrite(greenPin, greenValue); // Set Green brightness
analogWrite(bluePin, blueValue); // Set Blue brightness
}
LEDs Not Lighting Up:
Incorrect Colors Displayed:
Flickering or Unstable Output:
Overheating:
Q: Can I use the KY-016 module with a 3.3V microcontroller?
A: Yes, the module is compatible with both 3.3V and 5V systems. Ensure the PWM signals match the operating voltage.
Q: How do I achieve white light with the KY-016 module?
A: To produce white light, set the PWM values of the R, G, and B channels to equal intensities (e.g., setColor(255, 255, 255)).
Q: Can I control the KY-016 module without PWM?
A: While possible, using PWM is recommended for precise brightness and color control. Without PWM, you can only turn the LEDs fully on or off.
Q: Does the module include built-in resistors?
A: Some versions of the KY-016 module include built-in resistors, while others do not. Check the product documentation or measure the resistance to confirm.