A Light-Emitting Diode (LED) produces light through a process called **electroluminescence**, which is the emission of light when an electric current passes through a material. Here's how it works in detail:
1. **Basic Structure**:
- An LED is made from a **semiconductor material**, typically a combination of elements such as gallium, arsenic, and phosphorus, which forms a **p-n junction**.
- The **p-side (positive)** is rich in holes (places where electrons are missing), while the **n-side (negative)** is rich in electrons.
2. **Applying a Voltage**:
- When a voltage is applied to the LED (forward bias), electrons from the **n-side** are pushed toward the **p-side**, and holes from the **p-side** are pushed toward the **n-side**.
3. **Electron-Hole Recombination**:
- At the junction between the p and n sides, electrons recombine with holes. When an electron recombines with a hole, it moves from a higher energy state (in the conduction band) to a lower energy state (in the valence band).
4. **Emission of Light**:
- As electrons drop to the lower energy state, they release energy in the form of a **photon** (a particle of light). The energy of the photon determines the color of the emitted light, which depends on the semiconductor material used.
- For example, different materials produce different colors: gallium arsenide (GaAs) for infrared, gallium phosphide (GaP) for green, etc.
5. **Efficiency**:
- LEDs are highly efficient because most of the electrical energy is directly converted into light, unlike incandescent bulbs, which produce a lot of heat.
In summary, the LED emits light when an electric current passes through it, causing electrons and holes to recombine, releasing energy as light.