Stufin
Home Quick Cart Profile

RGB LED (Common Cathode - Clear) (Pack of 10)

Buy Now

Component Name

RGB LED (Common Cathode - Clear) (Pack of 10)

Description

The RGB LED (Common Cathode - Clear) is a type of light-emitting diode (LED) that emits a combination of red, green, and blue light to produce a wide range of colors. This component is commonly used in various Internet of Things (IoT) projects, robotics, and electronic devices that require colorful visual indicators or displays.

Functionality

The RGB LED (Common Cathode - Clear) is a multi-color LED that can produce up to 16,777,216 different colors by varying the intensity of the red, green, and blue light. The LED has four pinsone common cathode (negative leg) and three anodes (positive legs) for the red, green, and blue light sources. By applying different voltage levels to the anodes, the LED can produce a wide range of colors, from pure red, green, and blue to various shades of yellow, orange, purple, and white.

Key Features

  • Common Cathode (CC) Configuration: The RGB LED has a common cathode configuration, which means all three color LEDs (red, green, and blue) share a common negative leg (cathode). This configuration is convenient for microcontrollers and other digital systems, as it allows for easier control of the LEDs.
  • Clear Lens: The clear lens of the RGB LED provides a transparent and unobstructed view of the light, making it suitable for applications where high visibility is required.
  • High-Brightness LED: The RGB LED is designed to provide high-brightness output, making it suitable for applications where bright lighting is necessary.
  • Low Power Consumption: The RGB LED has a low power consumption rating, making it suitable for battery-powered devices and energy-efficient systems.
  • Multi-Color Capability: The RGB LED can produce up to 16,777,216 different colors, making it suitable for applications that require complex color displays or indicators.
  • Pack of 10: The component is sold in packs of 10, making it a cost-effective option for projects that require multiple RGB LEDs.
  • Wide Viewing Angle: The RGB LED has a wide viewing angle, ensuring that the light is visible from various angles.
  • Long Lifespan: The RGB LED has a long lifespan of up to 50,000 hours or more, making it a reliable choice for long-term applications.

Voltage

1.8-2.2V (typical) for each color

Current

20mA (maximum) for each color

Luminous Intensity

200-300mcd (typical) for each color

Peak Wavelengths

620-630nm (red), 520-530nm (green), 460-470nm (blue)

viewing Angle

120 (typical)

Operating Temperature

-25C to +85C

Storage Temperature

-40C to +100C

Applications

The RGB LED (Common Cathode - Clear) is suitable for a wide range of applications, including

IoT projects requiring colorful visual indicators or displays

Robotics and robotic vision systems

Electronic signage and lighting

Gaming consoles and peripherals

Automotive and aerospace applications

Medical devices and equipment

Pin Configuration

  • Component Documentation: RGB LED (Common Cathode - Clear) (Pack of 10)
  • Pin Description:
  • The RGB LED (Common Cathode - Clear) has 4 pins, each serving a specific purpose. Below is a detailed explanation of each pin:
  • 1. Cathode (K)
  • Function: Common Cathode (Negative Leg)
  • Description: This pin is connected to the negative power supply or ground.
  • Connection: Connect to the negative terminal of the power source or a digital ground (GND) on your microcontroller board.
  • 2. Red Anode (R)
  • Function: Red LED Anode (Positive Leg)
  • Description: This pin is connected to the positive power supply through a current-limiting resistor to control the red LED.
  • Connection: Connect to the positive terminal of the power source through a current-limiting resistor (typically 220 to 1k) and then to a digital output pin on your microcontroller board.
  • 3. Green Anode (G)
  • Function: Green LED Anode (Positive Leg)
  • Description: This pin is connected to the positive power supply through a current-limiting resistor to control the green LED.
  • Connection: Connect to the positive terminal of the power source through a current-limiting resistor (typically 220 to 1k) and then to a digital output pin on your microcontroller board.
  • 4. Blue Anode (B)
  • Function: Blue LED Anode (Positive Leg)
  • Description: This pin is connected to the positive power supply through a current-limiting resistor to control the blue LED.
  • Connection: Connect to the positive terminal of the power source through a current-limiting resistor (typically 220 to 1k) and then to a digital output pin on your microcontroller board.
  • Connection Structure:
  • To connect the RGB LED (Common Cathode - Clear) to your microcontroller board, follow this structure:
  • Connect the Cathode (K) pin to the digital ground (GND) on your microcontroller board.
  • Connect the Red Anode (R) pin to a digital output pin on your microcontroller board through a current-limiting resistor (e.g., 220).
  • Connect the Green Anode (G) pin to a digital output pin on your microcontroller board through a current-limiting resistor (e.g., 220).
  • Connect the Blue Anode (B) pin to a digital output pin on your microcontroller board through a current-limiting resistor (e.g., 220).
  • Example Connection Diagram:
  • (Remember to replace the resistor values with the ones suitable for your specific application)
  • ```markdown
  • +---------------+
  • | Power Source |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Current-Limiting |
  • | Resistors (220) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Microcontroller |
  • | Board (Digital |
  • | Output Pins) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | RGB LED (Common |
  • | Cathode - Clear) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Pin Connections |
  • +---------------+
  • |
  • |
  • v
  • Cathode (K) ------> GND
  • Red Anode (R) ------> Digital Output Pin 1
  • Green Anode (G) ------> Digital Output Pin 2
  • Blue Anode (B) ------> Digital Output Pin 3
  • ```
  • Important Notes:
  • Ensure you use the correct current-limiting resistor values for your specific application to avoid overheating and damage to the LED.
  • Make sure to handle the LED with care, as it is a sensitive component prone to damage from static electricity or excessive voltage.
  • When connecting the LED, ensure the Cathode (K) pin is connected to the negative power supply or ground to prevent damage to the component.

Code Examples

Component Documentation: RGB LED (Common Cathode - Clear) (Pack of 10)
Overview
The RGB LED (Common Cathode - Clear) is a high-intensity, three-color LED that combines red, green, and blue light sources in a single package. This LED has a common cathode connection, meaning all three color channels share a common negative leg. The clear lens allows for a wider viewing angle and higher light output. This pack includes 10 pieces of RGB LEDs.
Technical Specifications
Color: Red, Green, and Blue
 Wavelength:
	+ Red: 620-630 nm
	+ Green: 520-530 nm
	+ Blue: 460-470 nm
 Luminous Intensity: 1000-2000 mcd (millicandela)
 Forward Voltage: 2.0-2.5 V (Red), 3.0-3.5 V (Green), 3.0-3.5 V (Blue)
 Reverse Voltage: 5 V
 Current: 20 mA (maximum)
 Package: 5-pin, Common Cathode
 Operating Temperature: -25C to +85C
Pinout
Pin 1: Red Anode
 Pin 2: Green Anode
 Pin 3: Blue Anode
 Pin 4: No Connection
 Pin 5: Common Cathode
Code Examples
### Example 1: Basic RGB LED Control with Arduino
This example demonstrates how to control the RGB LED using an Arduino board. It sets the LED to display a bright red color.
```arduino
const int redPin = 9;    // Pin 1 of the RGB LED
const int greenPin = 10;  // Pin 2 of the RGB LED
const int bluePin = 11;   // Pin 3 of the RGB LED
void setup() {
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
}
void loop() {
  // Set the LED to bright red
  digitalWrite(redPin, HIGH);
  digitalWrite(greenPin, LOW);
  digitalWrite(bluePin, LOW);
  delay(1000); // Wait for 1 second
}
```
### Example 2: Fading RGB LED with Raspberry Pi (Python)
This example demonstrates how to fade the RGB LED using a Raspberry Pi and Python. It gradually changes the LED's color from blue to red.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
red_pin = 17
green_pin = 23
blue_pin = 24
GPIO.setup(red_pin, GPIO.OUT)
GPIO.setup(green_pin, GPIO.OUT)
GPIO.setup(blue_pin, GPIO.OUT)
# Define a function to set the LED color
def set_color(red, green, blue):
    GPIO.output(red_pin, GPIO.HIGH if red else GPIO.LOW)
    GPIO.output(green_pin, GPIO.HIGH if green else GPIO.LOW)
    GPIO.output(blue_pin, GPIO.HIGH if blue else GPIO.LOW)
try:
    while True:
        # Fade from blue to red
        for i in range(100):
            set_color(i % 2, 0, (100 - i) % 2)
            time.sleep(0.01)
except KeyboardInterrupt:
    GPIO.cleanup()
```
### Example 3: RGB LED Color Cycling with ESP32 (MicroPython)
This example demonstrates how to cycle through different colors using an ESP32 board and MicroPython.
```python
import machine
import utime
# Set up GPIO pins
red_pin = machine.Pin(18, machine.Pin.OUT)
green_pin = machine.Pin(19, machine.Pin.OUT)
blue_pin = machine.Pin(20, machine.Pin.OUT)
# Define a function to set the LED color
def set_color(red, green, blue):
    red_pin.value(red)
    green_pin.value(green)
    blue_pin.value(blue)
while True:
    # Cycle through colors
    set_color(1, 0, 0)  # Red
    utime.sleep(0.5)
    set_color(0, 1, 0)  # Green
    utime.sleep(0.5)
    set_color(0, 0, 1)  # Blue
    utime.sleep(0.5)
    set_color(1, 1, 0)  # Yellow
    utime.sleep(0.5)
    set_color(1, 0, 1)  # Magenta
    utime.sleep(0.5)
    set_color(0, 1, 1)  # Cyan
    utime.sleep(0.5)
```
Remember to adjust the pin connections and voltage levels according to your specific board and setup.