Dark Light
,

5mm RGB LED – Common Cathode (4 Pin)


The 5mm RGB LED is a four-pin, common cathode light-emitting diode that combines red, green and blue LEDs in a single diffused package. It allows independent colour and brightness control, making it ideal for multicolour lighting, electronic indicators, robotics and DIY electronics projects.

Key Features:

  • 5mm diffused LED lens
  • Red, green and blue colour channels
  • Common cathode (CC) configuration
  • 4-pin through-hole design
  • Supports PWM colour and brightness control
  • Suitable for Arduino, ESP32 and custom PCB circuits

External current-limiting resistors are required.

Buy the 5mm RGB LED online from Yagobotix with shipping across India and same-day delivery or pickup available in Surat.

₹10.00 (incl. GST)

5mm RGB LED – Common Cathode (4 Pin)

1. What Is a 5mm RGB LED?

The 5mm RGB LED is a multicolour light-emitting diode that combines three individual LEDs — red, green and blue — inside a single 5mm package.

This four-pin RGB LED features a common cathode configuration and a diffused lens that helps blend the three colour channels.

By independently controlling the brightness of each channel, you can create different colours and lighting effects in electronic circuits.

2. What Can You Build With a 5mm RGB LED?

This RGB LED is suitable for projects such as:

  • Colour-changing LED lights
  • Electronic mood lighting
  • Robotics status indicators
  • Arduino RGB lighting projects
  • ESP32-controlled lighting
  • Sensor-based visual indicators
  • Electronic control panels
  • Decorative lighting circuits
  • Custom PCB projects
  • Educational electronics experiments

3. Who Is It For?

The 5mm RGB LED is suitable for:

  • Beginners learning electronics
  • School and engineering students
  • Arduino and ESP32 enthusiasts
  • Robotics hobbyists
  • PCB designers
  • STEM educators
  • DIY electronics makers

4. How Does a 5mm RGB LED Work?

An RGB LED contains three individual light-emitting elements that produce red, green and blue light.

In a common cathode RGB LED, the negative terminals of all three LED elements share a common connection.

The common cathode is connected to ground, while the individual colour channels receive a positive voltage through suitable current-limiting resistors.

PWM (Pulse Width Modulation) can be used to adjust the brightness of each colour channel.

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

The resulting colour depends on the relative brightness of the three LED channels.

5. Technical Specifications

Specification Details
Product Type RGB Light-Emitting Diode
LED Diameter 5mm
LED Colours Red, Green and Blue
Configuration Common Cathode (CC)
Number of Pins 4
Lens Type Diffused
Lens Colour Milky White
Mounting Type Through-hole
Control Method Independent channel control / PWM
Red Forward Voltage Typically 1.8–2.2V
Green Forward Voltage Typically 3.0–3.4V
Blue Forward Voltage Typically 3.0–3.4V
Addressable LED No
Current Limiting External resistors required

Forward voltage values are typical reference values for similar RGB LEDs. Actual electrical characteristics may vary by manufacturer.

6. 5mm RGB LED Pinout

The common cathode RGB LED has four electrical terminals.

Terminal Function
R Red LED anode (+)
G Green LED anode (+)
B Blue LED anode (+)
COM Common cathode (−)

The longest terminal is typically the common cathode. Verify the physical pin arrangement using a multimeter or suitable current-limited test circuit before connecting the LED.

7. How to Connect a 5mm RGB LED to Arduino

The RGB LED can be connected to three PWM-capable output pins on an Arduino Uno.

Required components:

  • 5mm RGB LED – Common Cathode
  • Arduino Uno
  • 3 × Current-limiting resistors
  • Breadboard
  • Jumper wires

Wiring connections:

RGB LED Terminal Arduino Uno
Red D9 through a resistor
Green D10 through a resistor
Blue D11 through a resistor
Common Cathode GND

For a basic 5V Arduino experiment, three individual 330Ω resistors are a practical starting point, subject to the LED’s electrical ratings.

Do not connect the RGB LED directly to a power supply without suitable current limiting.

8. Arduino Example Code

The following program demonstrates different colours using a common cathode RGB LED.

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);
  delay(1000);

  setColor(0, 255, 0);
  delay(1000);

  setColor(0, 0, 255);
  delay(1000);

  setColor(255, 255, 0);
  delay(1000);

  setColor(255, 0, 255);
  delay(1000);

  setColor(0, 255, 255);
  delay(1000);

  setColor(255, 255, 255);
  delay(1000);

  setColor(0, 0, 0);
  delay(1000);
}

The program changes the colour of the RGB LED every second.

On a standard Arduino Uno, PWM values range from 0 to 255, where 0 represents OFF and 255 represents maximum duty cycle.

9. Beginner Project: Push Button Colour-Changing LED

Build a simple colour-changing light using a 5mm RGB LED and a tactile push button.

Components required:

  • 1 × 5mm RGB LED – Common Cathode
  • 1 × Arduino Uno
  • 1 × Tactile Push Button Switch
  • 3 × Current-limiting resistors
  • Breadboard
  • Jumper wires

Connect the RGB LED to Arduino pins D9, D10 and D11 through individual resistors.

Connect the common cathode to GND and the push button between D2 and GND, using the internal pull-up resistor.

Program the Arduino to change the LED colour each time the button is pressed.

Red → Green → Blue → Yellow → Cyan → Magenta → White → OFF

Use button debouncing to register one colour change per press.

This project teaches digital inputs, PWM output, colour mixing and programming logic.

10. Related Products

Complete your electronics project with:

11. Related Tutorials

Explore these electronics project ideas:

  • How to Connect a 5mm RGB LED to Arduino
  • Common Anode vs Common Cathode RGB LEDs
  • How to Control an RGB LED with ESP32
  • Understanding RGB Colour Mixing
  • How to Build a Colour-Changing LED
  • PWM Brightness Control Using Arduino
  • How to Calculate LED Current-Limiting Resistors
  • How to Use a Push Button to Change LED Colours

12. Frequently Asked Questions

What is a 5mm RGB LED?

It is a light-emitting diode containing red, green and blue LED elements inside a single 5mm package.

What is a common cathode RGB LED?

A common cathode RGB LED shares one negative connection between its three colour channels.

How many pins does this RGB LED have?

It has four pins: three individual colour terminals and one common cathode terminal.

Does a 5mm RGB LED require resistors?

Yes. Use a separate suitable current-limiting resistor for each colour channel.

Can I use this RGB LED with Arduino?

Yes. It can be controlled using Arduino digital and PWM-capable output pins with suitable current-limiting resistors.

Can I use a 5mm RGB LED with ESP32?

Yes, provided the LED forward voltages and current requirements are compatible with the driving circuit. Some LED channels may have limited brightness when powered directly from 3.3V GPIO pins.

What is the difference between a diffused and clear RGB LED?

A diffused LED scatters light to help blend colours, while a clear LED generally produces more directional illumination.

Can an RGB LED produce white light?

Yes. Combining red, green and blue light can produce an approximate white colour.

Does this LED automatically change colours?

No. The three colour channels must be controlled using an external circuit or microcontroller.

What is the difference between an RGB LED and an RGB LED Module?

A standalone RGB LED is a bare electronic component, while an RGB LED Module includes a PCB and connection pins and may contain additional circuitry.

Where can I buy a 5mm RGB LED in Surat?

You can purchase the 5mm RGB LED online from Yagobotix with same-day delivery and pickup available in Surat.

13. What Is Included?

  • 1 × 5mm RGB LED – Common Cathode (4 Pin)

Resistors, microcontroller boards, breadboards and jumper wires are not included.

14. Compatibility

This RGB LED can be used in suitable electronic circuits involving:

  • Arduino Uno
  • Arduino Nano
  • Arduino Mega
  • ESP32
  • ESP8266
  • Raspberry Pi
  • Custom PCB designs
  • Standalone LED control circuits

Use suitable driving circuitry and current-limiting resistors based on the LED and controller specifications.

15. Buy 5mm RGB LED Online in India

Add multicolour lighting effects to your next electronics project with the 5mm RGB LED from Yagobotix.

Its compact size, diffused lens and common cathode configuration make it suitable for electronic indicators, robotics, colour-changing lights and educational electronics projects.

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!

SKU: YGB-LED-RGB-5MM-CC Categories: ,

Based on 0 reviews

0.0 overall
0
0
0
0
0

Only logged in customers who have purchased this product may leave a review.

There are no reviews yet.

SHOPPING CART

close

Select at least 2 products
to compare