Stufin
Home Quick Cart Profile

5mm RGB LED Common Cathode Diffuse (Pack of 10)

Buy Now

Component Name

5mm RGB LED Common Cathode Diffuse (Pack of 10)

Description

The 5mm RGB LED Common Cathode Diffuse is a type of light-emitting diode (LED) component that emits a colorful light when an electric current passes through it. This component is specifically designed for use in a variety of applications, including IoT projects, robotics, automotive, and industrial control systems.

Functionality

The 5mm RGB LED Common Cathode Diffuse component serves as a visual indicator or display device, emitting a range of colors depending on the input signals. The LED has three internal light-emitting diodes, each corresponding to the red, green, and blue (RGB) colors, which can be combined to produce a wide spectrum of colors. The LED can be used to indicate device status, provide visual feedback, or create colorful lighting effects in various applications.

Key Features

  • RGB Color Capability: The LED can produce a range of colors by combining the red, green, and blue LEDs, offering a high degree of color customization.
  • Common Cathode Configuration: The LED has a common cathode (negative leg) connection, making it easier to control and interface with microcontrollers or other electronic components.
  • Diffuse Lens: The LED features a diffuse lens, which helps to scatter the light in all directions, providing a softer, more even illumination.
  • 5mm Size: The compact 5mm size of the LED makes it ideal for use in space-constrained applications or projects where a smaller footprint is required.
  • Pack of 10: The component is supplied in a pack of 10, providing a convenient and cost-effective solution for projects that require multiple LEDs.
  • Low Power Consumption: The LED has a low power consumption, making it suitable for battery-powered or energy-efficient applications.
  • Long lifespan: The LED has a long lifespan, typically rated for 50,000 hours or more, reducing the need for frequent replacements.
  • Easy Mounting: The LED features a standard 5mm through-hole design, making it easy to mount and connect to a printed circuit board (PCB) or other electronic components.

Technical Specifications

Forward Voltage (Vf)Red: 1.8-2.2V, Green: 2.8-3.2V, Blue: 3.2-3.8V
Forward Current (If)20mA

Peak Wavelength

Red620-630nm, Green: 520-530nm, Blue: 460-470nm

Luminous Intensity

Red100-150mcd, Green: 150-200mcd, Blue: 100-150mcd

Viewing Angle

120

Operating Temperature

-30C to 85C

Storage Temperature

-40C to 100C

Applications

The 5mm RGB LED Common Cathode Diffuse component is suitable for use in a wide range of applications, including

IoT projects and prototypes

Robotics and automation systems

Automotive lighting and signaling systems

Industrial control systems and indicators

Home automation and smart lighting systems

Wearable electronics and fashion technology

Important Notes

When handling the LED, avoid touching the component with bare hands, as the oils from the skin can damage the LED. Use gloves or anti-static wrist straps to handle the component.

Ensure proper electrical connections and avoid overloading the LED with excessive voltage or current, as this can lead to premature failure.

Follow proper mounting and soldering procedures to ensure reliable operation and longevity of the LED.

Pin Configuration

  • 5mm RGB LED Common Cathode Diffuse (Pack of 10) Pinout and Connection Guide
  • Pinout Description:
  • The 5mm RGB LED Common Cathode Diffuse is a 4-pin LED component, where each pin is designated for a specific function. Here's a detailed explanation of each pin:
  • Pin 1: Cathode (K) - Negative Leg
  • Function: Common Cathode for all three colors (Red, Green, and Blue)
  • Connection: Connect to the negative leg of the power supply or a grounding point
  • Note: This pin acts as a common ground for all three colors, allowing them to be controlled independently
  • Pin 2: Red (R) - Anode
  • Function: Positive leg of the Red LED
  • Connection: Connect to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k)
  • Pin 3: Green (G) - Anode
  • Function: Positive leg of the Green LED
  • Connection: Connect to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k)
  • Pin 4: Blue (B) - Anode
  • Function: Positive leg of the Blue LED
  • Connection: Connect to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k)
  • Connection Structure:
  • To connect the 5mm RGB LED Common Cathode Diffuse, follow this structure:
  • 1. Connect the Cathode (Pin 1) to a grounding point or the negative leg of the power supply.
  • 2. Connect the Red (Pin 2) to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k).
  • 3. Connect the Green (Pin 3) to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k).
  • 4. Connect the Blue (Pin 4) to a positive voltage source (e.g., 3.3V or 5V) through a current-limiting resistor (e.g., 330 or 1k).
  • Important Notes:
  • Use a current-limiting resistor to prevent overheating and damage to the LED.
  • Ensure the voltage supply matches the recommended voltage for the LED (typically 3.3V or 5V).
  • When controlling the LED, use a microcontroller or a dedicated LED driver to provide the necessary voltage and current.
  • By following this pinout and connection guide, you can effectively use the 5mm RGB LED Common Cathode Diffuse in your IoT projects.

Code Examples

Component Documentation: 5mm RGB LED Common Cathode Diffuse (Pack of 10)
Overview
The 5mm RGB LED Common Cathode Diffuse is a through-hole LED component that combines three individual LEDs (red, green, and blue) into a single package. The common cathode configuration allows for easy connection to a microcontroller or other digital circuitry. This component is suitable for various IoT applications, such as status indicators, lighting effects, and decorative displays.
Pinout
The 5mm RGB LED Common Cathode Diffuse has four pins:
Pin 1: Red LED Anode
 Pin 2: Green LED Anode
 Pin 3: Blue LED Anode
 Pin 4: Common Cathode
Technical Specifications
Operating Voltage: 2.0-3.8V
 Operating Current: 20mA per LED
 Luminous Intensity: 100-150mcd per LED
 Viewing Angle: 30
 Operating Temperature: -25C to 85C
Example 1: Basic RGB LED Control using Arduino
In this example, we will demonstrate how to control the 5mm RGB LED Common Cathode Diffuse using an Arduino Uno board.
```c
const int redPin = 9;     // Pin for red LED
const int greenPin = 10;  // Pin for green LED
const int bluePin = 11;   // Pin for blue LED
void setup() {
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
}
void loop() {
  // Set the LED to display different colors
  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);
}
void setColor(int redValue, int greenValue, int blueValue) {
  analogWrite(redPin, redValue);
  analogWrite(greenPin, greenValue);
  analogWrite(bluePin, blueValue);
}
```
Example 2: RGB LED Fade Effect using ESP32
In this example, we will demonstrate how to create a fade effect using the 5mm RGB LED Common Cathode Diffuse and an ESP32 development board.
```c
#include <WiFi.h>
const int redPin = 18;     // Pin for red LED
const int greenPin = 19;  // Pin for green LED
const int bluePin = 21;   // Pin for blue LED
void setup() {
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
}
void loop() {
  for (int i = 0; i < 256; i++) {
    analogWrite(redPin, i);
    analogWrite(greenPin, 255 - i);
    analogWrite(bluePin, i);
    delay(10);
  }
  for (int i = 255; i >= 0; i--) {
    analogWrite(redPin, i);
    analogWrite(greenPin, 255 - i);
    analogWrite(bluePin, i);
    delay(10);
  }
}
```
Example 3: Simple LED Animation using Raspberry Pi (Python)
In this example, we will demonstrate how to create a simple LED animation using the 5mm RGB LED Common Cathode Diffuse and a Raspberry Pi.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
redPin = 17
greenPin = 23
bluePin = 24
GPIO.setup(redPin, GPIO.OUT)
GPIO.setup(greenPin, GPIO.OUT)
GPIO.setup(bluePin, GPIO.OUT)
while True:
    GPIO.output(redPin, GPIO.HIGH)
    time.sleep(0.5)
    GPIO.output(redPin, GPIO.LOW)
    GPIO.output(greenPin, GPIO.HIGH)
    time.sleep(0.5)
    GPIO.output(greenPin, GPIO.LOW)
    GPIO.output(bluePin, GPIO.HIGH)
    time.sleep(0.5)
    GPIO.output(bluePin, GPIO.LOW)
```
Precautions and Handling
When handling the 5mm RGB LED Common Cathode Diffuse, avoid touching the pins or the LED body to prevent damage from static electricity.
 Ensure proper voltage and current ratings are maintained to prevent overheating or damage to the component.
 Use a breadboard or PCB with adequate spacing to prevent short circuits between pins.