

Light Emitting Diodes (LEDs) are semiconductor devices that emit light when an electric current passes through them. They are energy-efficient, have a long lifespan, and are available in various colors, shapes, and sizes. LEDs are widely used in applications such as displays, status indicators, decorative lighting, and general-purpose illumination. Their low power consumption and durability make them an essential component in modern electronics.








Below are the general technical specifications for standard LEDs. Note that specific values may vary depending on the type and manufacturer.
Standard LEDs have two pins:
| Pin Name | Description | Identification Method |
|---|---|---|
| Anode | Positive terminal (+) | Longer leg |
| Cathode | Negative terminal (-) | Shorter leg or flat edge on case |
Below is an example of connecting an LED to an Arduino UNO and controlling it with code.
// Simple LED Blink Example
// This code blinks an LED connected to pin 13 of the 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 Burns Out Quickly:
LED Flickers:
Q: Can I connect an LED directly to a battery?
Q: How do I choose the right resistor for my LED?
Q: Can I use LEDs with AC power?
Q: Why does my LED glow faintly even when off?
By following these guidelines and best practices, you can effectively use LEDs in your projects and ensure their longevity and performance.