

The RGB Light (Common Cathode) is a type of LED that integrates red, green, and blue light-emitting diodes into a single package. It features a shared cathode pin, which serves as the ground connection for all three colors. By varying the intensity of each color, users can create a wide spectrum of colors, making it a versatile component for lighting, displays, and decorative applications.








Below are the key technical details and pin configuration for the RGB Light (Common Cathode):
| Parameter | Value |
|---|---|
| Forward Voltage (Red) | 1.8V - 2.2V |
| Forward Voltage (Green) | 3.0V - 3.4V |
| Forward Voltage (Blue) | 3.0V - 3.4V |
| Forward Current (Each) | 20mA (typical) |
| Maximum Current (Each) | 30mA |
| Common Cathode Pin | Shared ground for all colors |
| Package Type | 4-pin LED (through-hole or SMD) |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Red Anode | Positive terminal for the red LED |
| 2 | Common Cathode | Shared ground for all three LEDs |
| 3 | Green Anode | Positive terminal for the green LED |
| 4 | Blue Anode | Positive terminal for the blue LED |
Below is an example of how to connect and control an RGB Light (Common Cathode) using an Arduino UNO:
// Define the pins for the RGB LED
const int redPin = 9; // Red anode connected to pin 9
const int greenPin = 10; // Green anode connected to pin 10
const int bluePin = 11; // Blue anode connected to pin 11
void setup() {
// Set the RGB pins as output
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Example: Cycle through red, green, blue, and white 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
setColor(255, 255, 255); // White (all colors on)
delay(1000); // Wait 1 second
}
// Function to set the color of the RGB LED
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
}
LED Not Lighting Up
Incorrect Colors
Dim or Flickering Light
Overheating
Q: Can I use the RGB Light (Common Cathode) with a 12V power supply?
A: Yes, but you must use appropriate resistors to limit the current to 20mA for each LED. Alternatively, use a constant current driver.
Q: How do I create custom colors?
A: Use PWM signals to adjust the brightness of each color channel. By mixing different intensities of red, green, and blue, you can create a wide range of colors.
Q: Can I control the RGB Light with a transistor?
A: Yes, you can use NPN transistors or MOSFETs to control the anodes if the microcontroller cannot supply enough current directly.
Q: What happens if I connect the LED without resistors?
A: The LEDs may draw excessive current, leading to overheating and permanent damage. Always use current-limiting resistors.