Stufin
Home Quick Cart Profile

3mm White Red LED (Pack of 10)

Buy Now on Stufin

Voltage

1.8-2.2 V (white), 1.9-2.3 V (red)

Current

10-20 mA (white), 10-20 mA (red)

Luminous intensity

400-600 mcd (white), 200-400 mcd (red)

Viewing angle

120

Physical Characteristics

Package type

Through-hole (THT)

LED diameter

3 mm

Lead length

20 mm

Lead spacing

2.5 mm

Weight

Approximately 0.5 g per LED

Operating Environment

Operating temperature

-20C to 80C

Storage temperature

-30C to 100C

Humidity

40% to 80% RH

Certifications and Compliance

The 3mm White Red LED (Pack of 10) complies with relevant industry standards and regulations, including

RoHS (Restriction of Hazardous Substances) directive

CE (Conformit Europene) marking

FCC (Federal Communications Commission) compliance

Packaging and Handling

The LEDs are shipped in a pack of 10, with each LED individually packaged in an anti-static bag to prevent electrostatic discharge damage. Handle the LEDs with care to avoid damage from excessive heat, moisture, or mechanical stress.

Pin Configuration

  • Component Documentation: 3mm White Red LED (Pack of 10)
  • Overview
  • The 3mm White Red LED is a dual-color light-emitting diode (LED) component, available in a pack of 10. It has three pins and is suited for various IoT applications, including indicator lights, status displays, and decorative lighting.
  • Pinout Description
  • The 3mm White Red LED has three pins, which are described below:
  • Pin 1: Anode (Positive Leg) - Red Wire
  • Function: Positive voltage supply for the red LED
  • Connection: Connect to the positive terminal of the power source or a resistor connected to the positive terminal
  • Polarity: Positive
  • Pin 2: Cathode (Negative Leg) - Black Wire
  • Function: Negative voltage supply for both the red and white LEDs
  • Connection: Connect to the negative terminal of the power source or a resistor connected to the negative terminal
  • Polarity: Negative
  • Pin 3: Anode (Positive Leg) - White Wire
  • Function: Positive voltage supply for the white LED
  • Connection: Connect to the positive terminal of the power source or a resistor connected to the positive terminal
  • Polarity: Positive
  • Connection Structure
  • To connect the 3mm White Red LED, follow these steps:
  • 1. Connect the cathode (black wire) to the negative terminal of the power source or a resistor connected to the negative terminal.
  • 2. Connect the anode (red wire) to the positive terminal of the power source or a resistor connected to the positive terminal to activate the red LED.
  • 3. Connect the anode (white wire) to the positive terminal of the power source or a resistor connected to the positive terminal to activate the white LED.
  • Important Notes
  • When using both LEDs, ensure that the cathode (black wire) is connected to the negative terminal of the power source or a resistor connected to the negative terminal.
  • Use a suitable resistor to limit the current flowing through the LEDs, depending on the voltage and current rating of the power source and the LEDs.
  • Always follow proper soldering and assembly techniques to prevent damage to the component.
  • By following these connection guidelines, you can successfully integrate the 3mm White Red LED into your IoT project, taking advantage of its dual-color capabilities.

Code Examples

3mm White Red LED (Pack of 10) Documentation
Overview
The 3mm White Red LED (Pack of 10) is a versatile and compact light-emitting diode (LED) component suitable for a wide range of Internet of Things (IoT) projects. This LED emits white and red light, making it ideal for indicator lights, signal lights, or decorative lighting applications.
Technical Specifications
LED Type: 3mm White Red LED
 Package: Pack of 10
 Voltage: 2.0-2.4V (typical)
 Current: 20mA (typical)
 Luminous Intensity: 100-150 mcd (white), 50-70 mcd (red)
 Viewing Angle: 60
 Operating Temperature: -20C to 80C
Hardware Connections
The 3mm White Red LED has two pins:
Anode (Positive): Longer leg
 Cathode (Negative): Shorter leg
Code Examples
### Example 1: Simple LED Blinking using Arduino
In this example, we'll demonstrate how to connect the 3mm White Red LED to an Arduino board and make it blink.
Hardware Requirements
Arduino Board (e.g., Arduino Uno)
 3mm White Red LED (Pack of 10)
 220 Resistor
 Breadboard
 Jumper Wires
Software Requirements
Arduino IDE
Code
```c++
const int ledPin = 13;  // Choose any digital pin on your Arduino board
void setup() {
  pinMode(ledPin, OUTPUT);
}
void loop() {
  digitalWrite(ledPin, HIGH);  // Turn the LED on (white light)
  delay(500);
  digitalWrite(ledPin, LOW);   // Turn the LED off
  delay(500);
  digitalWrite(ledPin, HIGH);  // Turn the LED on (red light)
  delay(500);
  digitalWrite(ledPin, LOW);   // Turn the LED off
  delay(500);
}
```
Explanation
In this example, we connect the anode of the LED to digital pin 13 of the Arduino board through a 220 resistor. We then use the `digitalWrite()` function to set the pin high or low to turn the LED on and off, respectively. The LED will blink with a 500ms interval, switching between white and red light.
### Example 2: LED Dimming using Raspberry Pi and Python
In this example, we'll demonstrate how to connect the 3mm White Red LED to a Raspberry Pi and control its brightness using Python.
Hardware Requirements
Raspberry Pi (e.g., Raspberry Pi 3)
 3mm White Red LED (Pack of 10)
 1k Resistor
 Breadboard
 Jumper Wires
Software Requirements
Raspbian OS
 Python 3.x
Code
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)  # Choose any GPIO pin on your Raspberry Pi
pwm = GPIO.PWM(18, 50)  # 50 Hz frequency
pwm.start(0)  # Initial duty cycle: 0%
while True:
    for dc in range(0, 101, 5):  # Dim the LED from 0% to 100% duty cycle
        pwm.ChangeDutyCycle(dc)
        time.sleep(0.1)
for dc in range(100, -1, -5):  # Dim the LED from 100% to 0% duty cycle
        pwm.ChangeDutyCycle(dc)
        time.sleep(0.1)
```
Explanation
In this example, we connect the anode of the LED to GPIO pin 18 of the Raspberry Pi through a 1k resistor. We then use the RPi.GPIO library to create a PWM (Pulse-Width Modulation) signal on the pin, which allows us to control the brightness of the LED. The LED will gradually dim and brighten with a 100ms interval.
Note: These examples are for demonstration purposes only and may require modifications to suit your specific project requirements.