Stufin
Home Quick Cart Profile

3mm Green LED (Pack of 10)

Buy Now on Stufin

Component Name

3mm Green LED (Pack of 10)

Description

The 3mm Green LED is a light-emitting diode (LED) component used for indicating purposes in electronic circuits. This pack of 10 LEDs is suitable for a wide range of applications, including IoT projects, robotics, and DIY electronics.

Functionality

The 3mm Green LED emits green light when an electric current passes through it. It is a semiconductor device that converts electrical energy into light energy. The LED is designed to operate in a forward-biased condition, where the anode (positive leg) is connected to a positive voltage source, and the cathode (negative leg) is connected to a negative voltage source or ground.

Key Features

  • Size: 3mm diameter, making it suitable for compact electronic circuits and breadboards.
  • Color: Green, with a wavelength of approximately 520-560 nanometers.
  • Luminous Intensity: Typically ranges from 10-30 millicandela (mcd), depending on the specific product.
  • Forward Voltage: Typically ranges from 1.8-2.2 volts, with a maximum forward current of 20-30 milliamps (mA).
  • Reverse Voltage: Up to 5 volts, ensuring safe operation in reverse-biased conditions.
  • Operating Temperature: Typically ranges from -25C to 85C, making it suitable for most indoor and outdoor applications.
  • Viewing Angle: 30-60 degrees, depending on the specific product.
  • Package: Pack of 10 LEDs, allowing for multiple uses in a single project or sharing among multiple projects.
  • Durability: LEDs are known for their long lifespan, often exceeding 50,000 hours or more, depending on operating conditions.
  • Easy Integration: Compatible with most electronic circuits, including breadboards, PCBs, and perfboards.

Applications

The 3mm Green LED is suitable for a wide range of applications, including

Indicators for electronic circuits and devices

Status lights for IoT projects and robotics

Backlighting for LCD displays and keypads

Decorative lighting for artistic and creative projects

Educational projects and prototyping

Caution

When working with LEDs, it is essential to follow proper handling and usage guidelines to avoid damage or electrical shock. Always use a current-limiting resistor in series with the LED to prevent overcurrent and ensure safe operation.

Recommended Accessories

Breadboard or PCB for prototyping and development

Current-limiting resistors (1 k to 4.7 k) for safe operation

Wire and connectors for connecting the LED to a power source and circuit components

Pin Configuration

  • Component Documentation: 3mm Green LED (Pack of 10)
  • Pin Description:
  • The 3mm Green LED (Pack of 10) has two pins, which are:
  • Pin 1: Anode (+)
  • ------------------------------------
  • Function: The positive leg of the LED, where current flows into the device.
  • Color: Typically, the anode pin is longer than the cathode pin.
  • Connection: Connect to the positive voltage source (VCC) or the positive output of a driver circuit.
  • Pin 2: Cathode (-)
  • ---------------------------
  • Function: The negative leg of the LED, where current flows out of the device.
  • Color: Typically, the cathode pin is shorter than the anode pin.
  • Connection: Connect to the negative voltage source (GND) or the negative output of a driver circuit.
  • Connection Structure:
  • To connect the 3mm Green LED, follow these steps:
  • 1. Determine the polarity: Identify the anode (+) and cathode (-) pins of the LED. The anode pin is usually longer, and the cathode pin is usually shorter.
  • 2. Connect the anode: Connect the anode pin (Pin 1) to the positive voltage source (VCC) or the positive output of a driver circuit.
  • 3. Connect the cathode: Connect the cathode pin (Pin 2) to the negative voltage source (GND) or the negative output of a driver circuit.
  • Example Connection:
  • Suppose you want to connect the LED to a microcontroller's digital output pin. You can follow this example:
  • Connect the anode pin (Pin 1) to the digital output pin of the microcontroller (e.g., Arduino's D13).
  • Connect the cathode pin (Pin 2) to a resistor (e.g., 1 k) and then to the GND pin of the microcontroller.
  • Caution:
  • Always ensure the correct polarity when connecting the LED to avoid damage or destruction.
  • Use a suitable current-limiting resistor to prevent excessive current from flowing through the LED.
  • Observe the recommended operating voltage and current ratings for the LED to ensure reliable operation and longevity.

Code Examples

Component Documentation: 3mm Green LED (Pack of 10)
Overview
The 3mm Green LED is a compact, high-brightness light-emitting diode (LED) designed for a wide range of applications, including indicator lamps, backlighting, and decorative lighting. This component is available in a pack of 10, making it an ideal choice for prototyping, development, and production.
Key Features
Wavelength: 520-530nm (Green)
 Luminous Intensity: 100-150mcd
 Viewing Angle: 20-30
 Operating Voltage: 1.8-2.2V
 Operating Current: 10-20mA
 Package: 3mm T-1 3/4 (Through-Hole)
 Operating Temperature: -20C to +80C
Electrical Characteristics
Forward Voltage (Vf): 1.8-2.2V
 Reverse Voltage (Vr): 5V
 Power Dissipation (Pd): 65mW
 Temperature Coefficient: -0.02mV/C
Code Examples
Here are a few code examples that demonstrate how to use the 3mm Green LED in various contexts:
Example 1: Basic LED Wiring with Arduino
In this example, we will connect the 3mm Green LED to an Arduino board and control its brightness using PWM.
```c
const int ledPin = 9;  // Pin 9 for LED
void setup() {
  pinMode(ledPin, OUTPUT);
}
void loop() {
  // Brightness control using PWM
  for (int i = 0; i <= 255; i++) {
    analogWrite(ledPin, i);
    delay(10);
  }
  for (int i = 255; i >= 0; i--) {
    analogWrite(ledPin, i);
    delay(10);
  }
}
```
Example 2: Raspberry Pi Python Script for Blinking LED
In this example, we will connect the 3mm Green LED to a Raspberry Pi and create a Python script to blink the LED at a interval of 1 second.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define LED pin
led_pin = 17
# Set up LED pin as output
GPIO.setup(led_pin, GPIO.OUT)
try:
    while True:
        # Turn LED on
        GPIO.output(led_pin, GPIO.HIGH)
        time.sleep(1)
        # Turn LED off
        GPIO.output(led_pin, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    # Clean up GPIO on exit
    GPIO.cleanup()
```
Example 3: ESP32 MicroPython Script for Fading LED
In this example, we will connect the 3mm Green LED to an ESP32 board and create a MicroPython script to fade the LED in and out.
```python
import machine
import time
# Define LED pin
led_pin = 2
# Set up LED pin as output
led = machine.Pin(led_pin, machine.Pin.OUT)
while True:
    # Fade in
    for i in range(0, 256):
        led.value(i)
        time.sleep_ms(5)
    # Fade out
    for i in range(255, -1, -1):
        led.value(i)
        time.sleep_ms(5)
```
These code examples demonstrate the basic usage of the 3mm Green LED in various IoT projects. You can modify and adapt these examples to suit your specific requirements.