LEDA
AI

### Understanding the LED (Light Emitting Diode)
A Light Emitting Diode (LED) is a semiconductor device that emits light when an electric current passes through it. Unlike traditional incandescent bulbs, LEDs do not use a filament and are significantly more energy-efficient.
---
### 1. Physical Structure and Pinout
Most standard LEDs have two terminals (leads). Because LEDs are **polarized**, they must be connected in the correct direction to function.
| Part | Description |
| :--- | :--- |
| **Anode (+)** | The positive terminal. It is usually the **longer lead**. |
| **Cathode (-)** | The negative terminal. It is the **shorter lead** and is marked by a **flat edge** on the plastic casing. |
| **Epoxy Lens** | The plastic body that protects the semiconductor and focuses the light. |
| **Reflective Cavity** | A small cup inside that directs light upwards. |
---
### 2. How it Works (The Physics)
LEDs operate based on a process called **Electroluminescence**.
1. **Semiconductor Layers**: An LED consists of P-type material (positive charge carriers/holes) and N-type material (negative charge carriers/electrons).
2. **The Junction**: When voltage is applied (Forward Bias), electrons move across the P-N junction.
3. **Photon Release**: As electrons fall into holes, they release energy in the form of **photons** (light).
4. **Color**: The color of the light depends on the energy gap of the semiconductor material used (e.g., Gallium Arsenide for infrared, Gallium Nitride for blue).
---
### 3. Key Electrical Characteristics
When designing a circuit with an LED, you must consider these two main specifications:
#### A. Forward Voltage ($V_f$)
This is the amount of voltage required to "turn on" the LED. If the voltage is too low, the LED won't light up.
* **Red:** ~1.8V to 2.2V
* **Blue/White:** ~3.0V to 3.4V
#### B. Forward Current ($I_f$)
Most standard 5mm LEDs require approximately **20mA (0.02A)**. Exceeding this current will burn out the LED.
---
### 4. Basic Circuit Diagram
To prevent the LED from burning out, a **Current Limiting Resistor** is always placed in series.
```text
[ Power Source + ] ---- [ Resistor ] ---- [ Anode LED Cathode ] ---- [ Power Source - ]
```
**Formula to calculate the resistor:**
$R = \frac{V_{source} - V_f}{I_f}$
*Example: If using a 5V battery and a Red LED (2V, 20mA):*
$R = \frac{5V - 2V}{0.02A} = 150 \Omega$
---
- ⤷
How do you calculate the resistor value for an LED in a 12V circuit?
- ⤷ What is the difference between a standard LED and an RGB LED?
- ⤷ Why does an LED act as a diode and block current in one direction?