

A Light Emitting Diode (LED) is a semiconductor device that emits light when an electric current flows through it. The two-pin white LED is a versatile and energy-efficient component that emits bright white light. It is commonly used for indicating power or status in electronic devices, as well as in decorative and general-purpose lighting applications.








Below are the key technical details for a standard two-pin white LED:
| Parameter | Value |
|---|---|
| Forward Voltage (Vf) | 2.8V to 3.6V |
| Forward Current (If) | 20mA (typical), 30mA (maximum) |
| Luminous Intensity | 4,000 to 10,000 mcd (typical) |
| Viewing Angle | 20° to 30° |
| Wavelength (Color) | 4000K to 6500K (Cool White) |
| Power Dissipation | 100mW (maximum) |
| Reverse Voltage (Vr) | 5V (maximum) |
| Operating Temperature | -40°C to +85°C |
The two-pin white LED has a simple pinout:
| Pin | Name | Description |
|---|---|---|
| 1 | Anode (+) | Connect to the positive terminal of the power source |
| 2 | Cathode (-) | Connect to the negative terminal or ground |
Note: The longer leg of the LED is the anode (+), and the shorter leg is the cathode (-). If the legs are trimmed, the flat edge on the LED casing indicates the cathode.
Determine the Resistor Value: To prevent damage to the LED, always use a current-limiting resistor in series with it. The resistor value can be calculated using Ohm's Law: [ R = \frac{V_{supply} - V_f}{I_f} ]
For example, if (V_{supply} = 5V) and (V_f = 3.2V), the resistor value is: [ R = \frac{5V - 3.2V}{0.02A} = 90\Omega ] Use the nearest standard resistor value (e.g., 100Ω).
Connect the LED:
Test the Circuit: Power the circuit and observe the LED emitting bright white light.
The white LED can be easily controlled using an Arduino UNO. Below is an example of how to blink the LED:
// LED Blink Example for Arduino UNO
// This code blinks a white LED connected to pin 13 at 1-second intervals.
const int ledPin = 13; // Define the pin connected to the LED
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
LED Does Not Light Up:
Cause: Incorrect polarity.
Solution: Ensure the anode (+) is connected to the positive terminal and the cathode (-) to ground.
Cause: No current-limiting resistor or incorrect resistor value.
Solution: Verify the resistor value and connections.
LED is Dim:
LED Burns Out Quickly:
Flickering LED:
Q: Can I connect the LED directly to a 3.3V or 5V power source?
A: No, always use a current-limiting resistor to prevent overcurrent and damage to the LED.
Q: How do I know the polarity of the LED if the legs are trimmed?
A: Look for the flat edge on the LED casing, which indicates the cathode (-).
Q: Can I use the LED with a higher current for more brightness?
A: While it is possible, exceeding the maximum forward current (30mA) can reduce the lifespan of the LED or cause it to fail.
Q: Can I use the LED for AC power?
A: LEDs are designed for DC power. To use them with AC, you need a rectifier circuit to convert AC to DC.