Stufin
Home Quick Cart Profile

RGB LED (Common Anode ) (Pack of 10)

Buy Now on Stufin

Component Name

RGB LED (Common Anode) (Pack of 10)

Description

The RGB LED (Common Anode) is a type of light-emitting diode (LED) that combines three primary color LEDs (Red, Green, and Blue) into a single package. This component is specifically designed with a common anode configuration, which means that all three LEDs share a common positive leg. This pack of 10 RGB LEDs provides a convenient and cost-effective solution for various IoT projects, prototyping, and electronic designs that require multiple RGB LEDs.

Functionality

The RGB LED (Common Anode) is designed to produce a wide range of colors by mixing different intensities of red, green, and blue light. The LED can be controlled by adjusting the current flowing through each individual color LED, allowing for a vast spectrum of colors to be generated. The common anode configuration simplifies the control circuitry, making it easier to drive the LEDs.

Key Features

  • Common Anode Configuration: All three LEDs (Red, Green, and Blue) share a common positive leg, making it easier to control and connect to external circuits.
  • Tri-Color LEDs: Each LED package contains three individual LEDs (Red, Green, and Blue) that can be controlled independently to produce a wide range of colors.
  • High Brightness: The RGB LEDs have a high luminous intensity, making them suitable for applications where high visibility is required.
  • Low Power Consumption: The LEDs operate at a low voltage and current, making them energy-efficient and suitable for battery-powered devices.
  • Fast Response Time: The LEDs have a fast response time, allowing for rapid color changes and transitions.
  • Pack of 10: This pack provides a convenient and cost-effective solution for projects that require multiple RGB LEDs.
  • Compact Size: The RGB LEDs have a compact size, making them ideal for use in space-constrained applications.
  • Wide Viewing Angle: The LEDs have a wide viewing angle, ensuring that the color output is consistent and visible from different angles.
  • Durable: The LEDs are built with durable materials, ensuring a long lifespan and resistance to environmental factors such as humidity and temperature.
  • Easy to Use: The RGB LEDs are easy to integrate into electronic designs, making them suitable for both beginner and experienced users.

Voltage

2.0-3.5V (Red), 3.0-4.0V (Green), 3.0-4.0V (Blue)

Current

20mA (Red), 20mA (Green), 20mA (Blue)

Luminous Intensity

1000-2000 mcd (Red), 2000-4000 mcd (Green), 2000-4000 mcd (Blue)

Viewing Angle

120

Operating Temperature

-25C to +85C

Storage Temperature

-40C to +100C

Package Type

PLCC-4 (Plastic Leadless Chip Carrier)

Size

5.0mm x 5.0mm x 2.5mm

Applications

  • IoT Projects
  • Robotics
  • Wearable Electronics
  • Home Automation
  • Lighting Systems
  • Advertising Displays
  • Industrial Control Systems

Precautions

  • Handle the LEDs with care to avoid damaging the internal components.
  • Use appropriate protection circuits to prevent overvoltage and overcurrent.
  • Follow proper soldering and assembly techniques to ensure reliable connections.
  • Operate the LEDs within the recommended temperature and voltage range.

By following the guidelines and technical specifications outlined above, the RGB LED (Common Anode) can be effectively integrated into a wide range of IoT projects and applications, providing a reliable and efficient solution for color-based indications and displays.

Pin Configuration

  • RGB LED (Common Anode) - Pinout Explanation and Connection Guide
  • The RGB LED (Common Anode) component is a pack of 10 LEDs that can produce a wide range of colors by combining different intensities of red, green, and blue light. The common anode configuration means that all three color LEDs share a common positive terminal.
  • Pinout:
  • The RGB LED has 4 pins, labeled 1 to 4. Here's a breakdown of each pin's function:
  • 1. Anode (Positive): This is the common positive terminal for all three color LEDs. It's connected to the power supply's positive voltage (VCC).
  • 2. Red Cathode (Negative): This pin is connected to the negative terminal of the red LED.
  • 3. Green Cathode (Negative): This pin is connected to the negative terminal of the green LED.
  • 4. Blue Cathode (Negative): This pin is connected to the negative terminal of the blue LED.
  • Pin Connection Guide:
  • To connect the RGB LED to a microcontroller or a breadboard, follow these steps:
  • Step 1: Connect the Anode (Pin 1)
  • Connect Pin 1 (Anode) to the positive voltage supply (VCC) of your microcontroller or breadboard. This is usually 5V or 3.3V, depending on your setup.
  • Step 2: Connect the Red Cathode (Pin 2)
  • Connect Pin 2 (Red Cathode) to a digital output pin on your microcontroller or a GPIO pin on your breadboard.
  • Use a current-limiting resistor (typically 220 to 1k) in series with the red LED to prevent overcurrent.
  • Step 3: Connect the Green Cathode (Pin 3)
  • Connect Pin 3 (Green Cathode) to a digital output pin on your microcontroller or a GPIO pin on your breadboard.
  • Use a current-limiting resistor (typically 220 to 1k) in series with the green LED to prevent overcurrent.
  • Step 4: Connect the Blue Cathode (Pin 4)
  • Connect Pin 4 (Blue Cathode) to a digital output pin on your microcontroller or a GPIO pin on your breadboard.
  • Use a current-limiting resistor (typically 220 to 1k) in series with the blue LED to prevent overcurrent.
  • Example Connection Diagram:
  • Here's an example connection diagram for an Arduino Uno board:
  • ```
  • +---------------+
  • | Arduino Uno |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | RGB LED |
  • | (Common Anode) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | 5V (VCC) |
  • | (Anode) |
  • +---------------+
  • +---------------+
  • | Digital Pin 9|
  • | (Red Cathode) |
  • | 220 Resistor |
  • +---------------+
  • +---------------+
  • | Digital Pin 10|
  • | (Green Cathode) |
  • | 220 Resistor |
  • +---------------+
  • +---------------+
  • | Digital Pin 11|
  • | (Blue Cathode) |
  • | 220 Resistor |
  • +---------------+
  • ```
  • Remember to adjust the pin connections according to your specific microcontroller or breadboard setup.

Code Examples

Component Documentation: RGB LED (Common Anode) (Pack of 10)
Overview
The RGB LED (Common Anode) is a type of light-emitting diode that combines three primary colors (Red, Green, and Blue) in a single package. It has a common anode configuration, meaning that all three LEDs share a single anode (positive) terminal, and separate cathode (negative) terminals for each color. This component is commonly used in various IoT projects, such as indicators, decoration lights, and ambient lighting systems.
Technical Specifications
Package: Pack of 10
 Color: Red, Green, and Blue
 Common Anode Configuration
 Operating Voltage: 2.0-3.5V
 Current Rating: 20mA per LED
 Luminous Intensity: 1000-1500 mcd per LED
Pinout
The RGB LED has four pins:
Anode (A): Common positive terminal for all three LEDs
 Red Cathode (R): Negative terminal for the red LED
 Green Cathode (G): Negative terminal for the green LED
 Blue Cathode (B): Negative terminal for the blue LED
Code Examples
### Example 1: Basic Color Control using Arduino
In this example, we will demonstrate how to control the RGB LED using an Arduino board.
```c
const int redPin = 9;   // Pin for the red LED cathode
const int greenPin = 10; // Pin for the green LED cathode
const int bluePin = 11; // Pin for the blue LED cathode
void setup() {
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
}
void loop() {
  // Set the color to red
  digitalWrite(redPin, HIGH);
  digitalWrite(greenPin, LOW);
  digitalWrite(bluePin, LOW);
  delay(1000);
// Set the color to green
  digitalWrite(redPin, LOW);
  digitalWrite(greenPin, HIGH);
  digitalWrite(bluePin, LOW);
  delay(1000);
// Set the color to blue
  digitalWrite(redPin, LOW);
  digitalWrite(greenPin, LOW);
  digitalWrite(bluePin, HIGH);
  delay(1000);
}
```
### Example 2: RGB Color Cycling using Raspberry Pi (Python)
In this example, we will demonstrate how to cycle through different colors using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
# Set up the GPIO pins
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)
def set_color(red, green, blue):
  GPIO.output(redPin, red)
  GPIO.output(greenPin, green)
  GPIO.output(bluePin, blue)
while True:
  # Cycle through different colors
  set_color(GPIO.HIGH, GPIO.LOW, GPIO.LOW)  # Red
  time.sleep(0.5)
  set_color(GPIO.LOW, GPIO.HIGH, GPIO.LOW)  # Green
  time.sleep(0.5)
  set_color(GPIO.LOW, GPIO.LOW, GPIO.HIGH)  # Blue
  time.sleep(0.5)
  set_color(GPIO.HIGH, GPIO.HIGH, GPIO.LOW)  # Yellow
  time.sleep(0.5)
  set_color(GPIO.LOW, GPIO.HIGH, GPIO.HIGH)  # Cyan
  time.sleep(0.5)
  set_color(GPIO.HIGH, GPIO.LOW, GPIO.HIGH)  # Magenta
  time.sleep(0.5)
  set_color(GPIO.HIGH, GPIO.HIGH, GPIO.HIGH)  # White
  time.sleep(0.5)
```
These examples demonstrate how to control the RGB LED using different microcontrollers and programming languages. By modifying the code, you can create various color patterns and effects to suit your IoT project requirements.