RGB LED Module – 4 Pin SMD 5050
1. What Is an RGB LED Module?
The RGB LED Module is an electronic lighting component that combines red, green and blue LEDs into a single compact package.
This module features a 5050 surface-mounted RGB LED on a black PCB marked HW-478, commonly known as the KY-009 RGB LED Module.
By independently controlling the brightness of each colour channel, you can produce different colours and lighting effects for electronic circuits, robotics and interactive projects.
2. What Can You Build With an RGB LED Module?
The RGB LED Module is suitable for applications such as:
- Colour-changing LED lights
- Electronic mood lighting
- Robotics status indicators
- Arduino RGB lighting projects
- ESP32-controlled lighting systems
- Smart home lighting prototypes
- Sensor-based colour indicators
- Interactive electronic devices
- Gaming and decorative lighting projects
- Educational electronics experiments
3. Who Is It For?
This module is suitable for:
- Beginners learning electronics
- School and engineering students
- Arduino and ESP32 enthusiasts
- Robotics hobbyists
- STEM educators
- PCB designers
- DIY electronics makers
4. How Does an RGB LED Module Work?
An RGB LED contains three individual light-emitting elements: red, green and blue.
These three colours can be combined at different brightness levels to produce a wide variety of colours.
The RGB LED Module uses a common cathode configuration, where the negative terminals of the three LED elements share a common ground connection.
Each colour channel can be controlled independently using a suitable voltage and current-limiting resistor.
PWM (Pulse Width Modulation) allows a microcontroller to adjust the brightness of each colour channel.
Examples of RGB colour mixing:
| Red | Green | Blue | Result |
|---|---|---|---|
| ON | OFF | OFF | Red |
| OFF | ON | OFF | Green |
| OFF | OFF | ON | Blue |
| ON | ON | OFF | Yellow |
| ON | OFF | ON | Magenta |
| OFF | ON | ON | Cyan |
| ON | ON | ON | Approximate white |
| OFF | OFF | OFF | No illumination |
5. Technical Specifications
| Specification | Details |
|---|---|
| Product Type | RGB LED Module |
| PCB Model | HW-478 |
| Common Model Name | KY-009 |
| LED Type | 5050 SMD RGB LED |
| LED Colours | Red, Green and Blue |
| Configuration | Common Cathode |
| Number of Pins | 4 |
| Pin Labels | B, R, G, − |
| Control Method | Independent channel control / PWM |
| PCB Colour | Black |
| Mounting Holes | 2 |
| Addressable LED | No |
| Current Limiting | External resistors required |
| Application | Lighting effects and electronic indicators |
Use appropriate current-limiting resistors based on the supply voltage and LED electrical specifications.
6. RGB LED Module Pinout
The RGB LED Module features four connection pins.
| Pin | Function |
|---|---|
| B | Blue LED channel |
| R | Red LED channel |
| G | Green LED channel |
| − | Common cathode / Ground |
Each colour channel requires an individual current-limiting resistor to prevent excessive current.
7. How to Connect an RGB LED Module to Arduino
The RGB LED Module can be connected to Arduino using three PWM-capable digital output pins and a ground connection.
Required components:
- RGB LED Module
- Arduino Uno
- 3 × Current-limiting resistors
- Breadboard
- Jumper wires
Wiring connections:
| RGB LED Module | Arduino Uno |
|---|---|
| R | D9 through a resistor |
| G | D10 through a resistor |
| B | D11 through a resistor |
| − | GND |
For a basic 5V Arduino Uno experiment, separate 330Ω resistors are a conservative starting point, subject to the LED’s actual electrical ratings.
Do not connect the colour channels directly to a power supply without current limiting.
8. Arduino Example Code
The following program demonstrates different colours using the RGB LED Module.
const int redPin = 9;
const int greenPin = 10;
const int bluePin = 11;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void setColor(int red, int green, int blue) {
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);
}
void loop() {
setColor(255, 0, 0); // Red
delay(1000);
setColor(0, 255, 0); // Green
delay(1000);
setColor(0, 0, 255); // Blue
delay(1000);
setColor(255, 255, 0); // Yellow
delay(1000);
setColor(0, 255, 255); // Cyan
delay(1000);
setColor(255, 0, 255); // Magenta
delay(1000);
setColor(255, 255, 255); // White
delay(1000);
setColor(0, 0, 0); // OFF
delay(1000);
}
The program cycles through different colours by adjusting the PWM value of each LED channel.
PWM values range from 0 to 255, where 0 represents OFF and 255 represents maximum duty cycle on a standard Arduino Uno.
9. Beginner Project: Distance-Based RGB Status Indicator
Build a colour-changing distance indicator using an RGB LED Module and an ultrasonic sensor.
Components required:
- RGB LED Module
- Arduino Uno
- HC-SR04 Ultrasonic Sensor
- 3 × Current-limiting resistors
- Breadboard
- Jumper wires
Example working logic:
- Distance greater than 30 cm: Green
- Distance between 10 cm and 30 cm: Yellow
- Distance less than 10 cm: Red
The ultrasonic sensor measures the distance of an object, while the Arduino changes the RGB LED colour according to the measured distance.
This project teaches sensor interfacing, conditional programming, PWM control and visual status indication.
10. Related Products
Complete your electronics project with:
- Arduino Uno R3 Compatible Programmable Board
- ESP32 Development Board
- HC-SR04 Ultrasonic Sensor
- TTP223 Touch Sensor Module
- Sound Sensor Module
- SW-420 Vibration Sensor Module
- Tactile Push Button Switch
- Resistors
- Breadboard
- Jumper Wires
11. Related Tutorials
Explore these electronics project ideas:
- How to Use an RGB LED Module with Arduino
- How to Connect an RGB LED Module to ESP32
- Understanding RGB Colour Mixing
- PWM Brightness Control Using Arduino
- How to Build a Colour-Changing LED Light
- Distance-Based RGB LED Indicator
- Common Anode vs Common Cathode RGB LEDs
- How to Select LED Current-Limiting Resistors
12. Frequently Asked Questions
What is an RGB LED Module?
An RGB LED Module combines red, green and blue LEDs into a compact electronic component that can produce different colours.
What is the difference between an RGB LED and a normal LED?
A standard single-colour LED produces one colour, whereas an RGB LED combines three colour channels to produce different colours.
Is this RGB LED Module common anode or common cathode?
This module features a common cathode configuration.
How many pins does the RGB LED Module have?
It has four pins: B for blue, R for red, G for green and − for common ground.
Can I use this RGB LED Module with Arduino?
Yes. It can be controlled using Arduino digital or PWM-capable output pins with suitable current-limiting resistors.
Can I use an RGB LED Module with ESP32?
Yes. Use suitable PWM outputs, current-limiting resistors and compatible voltage levels.
Does this RGB LED Module require external resistors?
Yes. Use a separate current-limiting resistor for each colour channel.
Can I control its brightness?
Yes. PWM signals allow independent brightness control of the red, green and blue channels.
Can this RGB LED Module produce white light?
Yes. Combining all three colour channels can produce approximate white light. The resulting shade depends on the brightness and characteristics of each LED channel.
Is this an addressable RGB LED Module?
No. This module uses separate electrical connections for each colour channel rather than an addressable digital interface.
Where can I buy an RGB LED Module in Surat?
You can purchase the RGB LED Module online from Yagobotix with same-day delivery and pickup available in Surat.
13. What Is Included?
- 1 × RGB LED Module – HW-478 / KY-009
Development boards, resistors, breadboards, jumper wires and other accessories are not included.
14. Compatibility
The RGB LED Module can be used in suitable electronic circuits involving:
- Arduino Uno
- Arduino Nano
- Arduino Mega
- ESP32
- ESP8266
- Raspberry Pi GPIO
- Other compatible microcontrollers
- Custom PCB circuits
- Standalone LED control circuits
Always use appropriate current-limiting resistors and ensure that the circuit operates within the voltage and current limits of the controller and LED.
15. Buy RGB LED Module Online in India
Add colourful lighting effects and visual indicators to your next electronics project with the RGB LED Module from Yagobotix.
Whether you are building a robot, experimenting with PWM, creating interactive lighting or developing an educational electronics project, this compact RGB LED Module is a practical component for learning and prototyping.
Order online with shipping across India and same-day delivery or pickup available in Surat, subject to stock availability and applicable order cut-off times.
Add to cart and bring colour to your next electronics project with Yagobotix!





There are no reviews yet.