

The 5mm Red LED (Light-Emitting Diode) is a widely used electronic component that emits red light when an electric current flows through it. It is compact, energy-efficient, and highly reliable, making it ideal for a variety of applications. This LED is commonly used as an indicator in electronic devices, status displays, and decorative lighting.








| Pin Name | Description | Identification Method |
|---|---|---|
| Anode | Positive terminal (+) | Longer leg of the LED |
| Cathode | Negative terminal (-) | Shorter leg or flat edge on case |
Determine the Resistor Value:
To prevent damage to the LED, always use a current-limiting resistor in series.
Use Ohm's Law to calculate the resistor value:
[
R = \frac{V_{supply} - V_f}{I_f}
]
Example: For a 5V supply, (R = \frac{5V - 2V}{0.02A} = 150\Omega).
Connect the LED:
Power the Circuit:
Apply the appropriate voltage to the circuit. The LED will emit red light when current flows through it.
Below is an example of how to connect a 5mm Red LED to an Arduino UNO and control it using a digital pin.
// Example code to blink a 5mm Red LED connected to pin 13 of Arduino UNO
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output pin
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
LED Does Not Light Up:
LED is Dim:
LED Burned Out:
Q: Can I connect the LED directly to a 3.3V or 5V supply without a resistor?
A: No, doing so will likely damage the LED due to excessive current. Always use a current-limiting resistor.
Q: Can I use the LED with a higher voltage supply (e.g., 12V)?
A: Yes, but you must calculate and use an appropriate resistor to limit the current.
Q: How do I identify the anode and cathode if the legs are trimmed?
A: Look for a flat edge on the LED casing near the cathode or use a multimeter in diode mode to test polarity.
By following this documentation, you can effectively use the 5mm Red LED in your electronic projects with confidence!