Stufin
Home Quick Cart Profile

Led Combo (R-G-Y-B-W) 5mm 10pcs each

Buy Now on Stufin

Component Name

Led Combo (R-G-Y-B-W) 5mm 10pcs each

Overview

The Led Combo (R-G-Y-B-W) 5mm is a package of 50 high-brightness LEDs, comprising 10 pieces each of 5 different colorsRed, Green, Yellow, Blue, and White. These LEDs are suitable for a wide range of applications, including IoT projects, robotics, and prototype development.

Package type

Reel or tray packaging

Lens type

Round with flat top

Dimensions

5mm (diameter) x 2.5mm (height)

Lead configuration

Anode (positive) and Cathode (negative) radial leads

Weight

Approximately 25g per package

Operating Voltage

1.8-2.5V (dependent on color)

Operating Current

20mA (maximum)

Forward Voltage Drop

+ Red1.8-2.0V
+ Green2.0-2.2V
+ Yellow2.0-2.2V
+ Blue2.5-2.7V
+ White2.8-3.0V

Luminous Intensity

+ Red100-150mcd
+ Green150-200mcd
+ Yellow120-150mcd
+ Blue100-120mcd
+ White120-150mcd

Key Features

High-brightness LEDs for optimal visibility

5 different colors available in a single package

Radial lead design for easy installation and handling

Suitable for a wide range of applications, including IoT projects, robotics, and prototype development

Low power consumption for energy-efficient designs

High-reliability and long lifespan (up to 50,000 hours)

Recommended Applications

IoT projects, such as smart home devices, wearables, and sensors

Robotics and automation systems

Prototype development and testing

LED displays and indicators

Backlighting for LCD displays

Precautions and Handling

Handle the LEDs by the edges to prevent electrical shock or damage

Avoid exposing the LEDs to excessive heat, moisture, or mechanical stress

Use a current-limiting resistor to prevent overcurrent and damage

Store the LEDs in a cool, dry place to maintain their optical and electrical characteristics

Package quantity

50 LEDs (10 pieces each of 5 colors)

Pin Configuration

  • Led Combo (R-G-Y-B-W) 5mm 10pcs each Documentation
  • Overview
  • The Led Combo (R-G-Y-B-W) 5mm 10pcs each is a set of 50 high-brightness LEDs, consisting of 10 pieces each of 5 different colors: Red, Green, Yellow, Blue, and White. Each LED has a standard 5mm diameter and typically operates at a voltage range of 1.8-3.5V. This documentation explains the pinout and connection structure for each LED.
  • Pinout
  • Each LED has two pins:
  • Anode (A): Positive leg, marked with a longer lead or a flat edge on the underside of the LED.
  • Cathode (K): Negative leg, marked with a shorter lead or a rounded edge on the underside of the LED.
  • Color-Specific Pinout
  • Here is the pinout for each color LED:
  • Red (R):
  • + Anode (A): Positive leg (longer lead)
  • + Cathode (K): Negative leg (shorter lead)
  • Green (G):
  • + Anode (A): Positive leg (longer lead)
  • + Cathode (K): Negative leg (shorter lead)
  • Yellow (Y):
  • + Anode (A): Positive leg (longer lead)
  • + Cathode (K): Negative leg (shorter lead)
  • Blue (B):
  • + Anode (A): Positive leg (longer lead)
  • + Cathode (K): Negative leg (shorter lead)
  • White (W):
  • + Anode (A): Positive leg (longer lead)
  • + Cathode (K): Negative leg (shorter lead)
  • Connection Structure
  • To connect the LEDs, follow this general structure:
  • 1. Positive Power Source: Connect the positive leg (Anode, A) of the LED to the positive terminal of the power source (e.g., a microcontroller, breadboard, or battery).
  • 2. Resistor (optional): If necessary, add a current-limiting resistor in series with the LED to prevent overcurrent and ensure the desired brightness.
  • 3. Negative Power Source: Connect the negative leg (Cathode, K) of the LED to the negative terminal of the power source (e.g., a microcontroller, breadboard, or battery).
  • Example Connection Diagram:
  • ```
  • +---------------+
  • | Power Source |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Resistor (R) | (optional)
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | LED (Anode) | (A, positive leg)
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | LED (Cathode) | (K, negative leg)
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Power Source |
  • +---------------+
  • ```
  • Important Notes
  • Ensure the correct polarity when connecting the LEDs to prevent damage or failure.
  • Use a current-limiting resistor if the power source voltage is higher than the recommended operating voltage for the LEDs.
  • Always handle the LEDs with care to prevent static electricity damage.
  • By following this documentation, you should be able to properly connect and use the Led Combo (R-G-Y-B-W) 5mm 10pcs each in your IoT projects.

Code Examples

Led Combo (R-G-Y-B-W) 5mm 10pcs each
Overview
The Led Combo (R-G-Y-B-W) 5mm 10pcs each is a versatile LED component that consists of five different colored LEDs (Red, Green, Yellow, Blue, and White) in a single package. Each color has 10 pieces of 5mm LEDs, making it a total of 50 LEDs in the package. This component is suitable for various IoT projects, such as indication, illumination, and decoration.
Pinout and Connection
The Led Combo has five legs, each corresponding to a different color LED:
Red LED: Anode (Long Leg) and Cathode (Short Leg)
 Green LED: Anode (Long Leg) and Cathode (Short Leg)
 Yellow LED: Anode (Long Leg) and Cathode (Short Leg)
 Blue LED: Anode (Long Leg) and Cathode (Short Leg)
 White LED: Anode (Long Leg) and Cathode (Short Leg)
Code Examples
### Example 1: Simple LED Control using Arduino
In this example, we will control each LED color individually using an Arduino board.
```cpp
const int redPin = 2;  // Assign pin 2 for Red LED
const int greenPin = 3;  // Assign pin 3 for Green LED
const int yellowPin = 4;  // Assign pin 4 for Yellow LED
const int bluePin = 5;  // Assign pin 5 for Blue LED
const int whitePin = 6;  // Assign pin 6 for White LED
void setup() {
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(yellowPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
  pinMode(whitePin, OUTPUT);
}
void loop() {
  digitalWrite(redPin, HIGH);  // Turn on Red LED
  delay(1000);
  digitalWrite(redPin, LOW);  // Turn off Red LED
  delay(1000);
digitalWrite(greenPin, HIGH);  // Turn on Green LED
  delay(1000);
  digitalWrite(greenPin, LOW);  // Turn off Green LED
  delay(1000);
// Repeat for Yellow, Blue, and White LEDs
}
```
### Example 2: LED Color Mixing using Raspberry Pi (Python)
In this example, we will mix different colors to create new colors using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins for LEDs
redPin = 17
greenPin = 23
bluePin = 24
GPIO.setmode(GPIO.BCM)
GPIO.setup(redPin, GPIO.OUT)
GPIO.setup(greenPin, GPIO.OUT)
GPIO.setup(bluePin, GPIO.OUT)
try:
    while True:
        # Red
        GPIO.output(redPin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(redPin, GPIO.LOW)
        time.sleep(1)
# Green
        GPIO.output(greenPin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(greenPin, GPIO.LOW)
        time.sleep(1)
# Blue
        GPIO.output(bluePin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(bluePin, GPIO.LOW)
        time.sleep(1)
# Yellow (Red + Green)
        GPIO.output(redPin, GPIO.HIGH)
        GPIO.output(greenPin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(redPin, GPIO.LOW)
        GPIO.output(greenPin, GPIO.LOW)
        time.sleep(1)
# Cyan (Green + Blue)
        GPIO.output(greenPin, GPIO.HIGH)
        GPIO.output(bluePin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(greenPin, GPIO.LOW)
        GPIO.output(bluePin, GPIO.LOW)
        time.sleep(1)
# White (Red + Green + Blue)
        GPIO.output(redPin, GPIO.HIGH)
        GPIO.output(greenPin, GPIO.HIGH)
        GPIO.output(bluePin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(redPin, GPIO.LOW)
        GPIO.output(greenPin, GPIO.LOW)
        GPIO.output(bluePin, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    GPIO.cleanup()
```
Note: In the above examples, make sure to connect the anode (long leg) of each LED to the specified GPIO pin and the cathode (short leg) to a ground pin on the board. Also, ensure that the GPIO pins are configured as output and set to HIGH or LOW accordingly to control the LEDs.