Diodes

A diode is a one-way valve for current. Apply voltage in the forward direction and it conducts; reverse it and it blocks. That simple behaviour is useful in a surprising range of applications — rectification, voltage clamping, reverse-polarity protection, regulation, and light emission. Every power supply has at least one. Most circuits have several.

How They Work

A diode is a P-N junction — a piece of semiconductor doped to be P-type (holes, positive charge carriers) on one side and N-type (electrons) on the other. When forward-biased (positive at anode, negative at cathode), the depletion region narrows and current flows. Reverse-biased, the depletion region widens and current is blocked — until the reverse breakdown voltage is reached, at which point it conducts again (destructively, for most diodes).

Diode Circuit Symbol A diode symbol with the positive anode terminal on the left and the negative cathode bar on the right. An arrow indicates that conventional current flows from anode to cathode when the diode is forward-biased. Anode (+) Cathode (−) current flows →
A diode conducts conventional current from its anode to its cathode when forward-biased; the vertical bar marks the cathode, matching the stripe printed on many physical diodes.

The forward voltage drop (Vf) is the voltage across the diode when it's conducting — it's not optional and must be accounted for in calculations. For silicon diodes it's about 0.6–0.7 V. For other types it varies considerably.

Types and Characteristics

TypeVf (forward)Max reverse voltageSpeedPrimary use
Silicon rectifier (1N4001–7)0.6–0.7 V50–1000 V (varies by suffix)SlowAC-to-DC rectification in power supplies
Signal diode (1N4148)0.6–0.7 V75 VFast (4ns)Signal steering, demodulation, clipping, ESD
Schottky0.15–0.45 V20–200 VVery fastSwitching supplies, high-frequency rectification, OR-ing
Zener0.6–0.7 V (forward)Operates in reverse at VzModerateVoltage reference, clamping, simple regulation
LED1.8–3.5 V (colour-dependent)5–7 VFastIndicator lights, backlighting, optocouplers
Transient voltage suppressor (TVS)Clamps at breakdown voltageVery fast (ps)ESD protection, surge clamping
PhotodiodeReverse-biased in operationFastLight sensing, fibre-optic receivers

LED Forward Voltage by Colour

Always use a current-limiting resistor with an LED — they have no internal resistance and will self-destruct without one:

ColourTypical VfWavelength
Infrared1.2–1.8 V850–950 nm
Red1.8–2.2 V620–750 nm
Yellow2.0–2.2 V570–590 nm
Green2.0–3.5 V495–570 nm
Blue2.9–3.5 V450–495 nm
White3.0–3.5 VBroadband (phosphor-converted blue)
UV3.0–4.0 V315–400 nm
LED resistor formula:
R = (V_supply - V_LED) / I_desired

Example: 5V supply, red LED (Vf = 2V), target 20mA
R = (5V - 2V) / 0.02A = 150Ω → use 150Ω or 180Ω

Rectification

Converting AC to DC — the most common diode application in power supplies.

Half-Wave Rectifier

Half-Wave Rectifier Circuit Schematic of a half-wave rectifier showing AC input, a single series diode, a filter capacitor to ground, and a DC output. AC in DC out (+) C GND DC out (−)
A half-wave rectifier uses a single diode to block the negative half of the AC cycle. The filter capacitor smooths the resulting pulses into a relatively stable DC voltage.
V_DC ≈ V_peak − 0.7V   (one diode drop)
V_peak = V_RMS × √2

Example: 12V RMS transformer
V_peak = 12 × 1.414 = 16.97V
V_DC ≈ 16.97 − 0.7 = 16.3V (before load, with cap)

Full-Wave Bridge Rectifier

Full-Wave Bridge Rectifier Four diodes arranged to convert both halves of the AC cycle to positive DC. AC 1 AC 2 DC out (+) DC out (−) Cap
The full-wave bridge rectifier uses four diodes. During the positive half-cycle, D1 and D4 conduct. During the negative half-cycle, D2 and D3 conduct, ensuring the output always receives positive voltage.
V_DC ≈ V_peak − 1.4V   (two diode drops)

Using 12V RMS:
V_DC ≈ 16.97 − 1.4 = 15.6V (with capacitor filtering)

The bridge rectifier uses all four half-cycles — more efficient than half-wave and produces less ripple. The standard approach for almost all linear power supplies.

Common Part Numbers — Rectifiers

PartVrrm (max reverse)If (avg forward current)Notes
1N400150 V1 ALow voltage mains rectification
1N4004400 V1 AMost common for mains (120/240V) supplies
1N40071000 V1 AHigh voltage; drop-in replacement when unsure
1N581940 V1 ASchottky — low Vf (0.3V), fast. Common in DC-DC converters
MBR104545 V10 APower Schottky for high-current supplies

Zener Diodes

Zener diodes are designed to conduct in reverse breakdown at a specific voltage (Vz). That breakdown voltage is stable and predictable, making them useful as voltage references:

Zener Shunt Regulator Schematic of a simple Zener voltage regulator with an input voltage, series resistor, and a reverse-biased Zener diode clamping the output voltage. Vin R_series (e.g. 470Ω) Vout (e.g. 5.1V) Zener GND
A Zener shunt regulator. The series resistor limits the current, while the Zener diode operates in reverse breakdown to clamp the output to its rated Zener voltage.
Resistor must limit current: I_R = (Vin − Vz) / R_series
Power in Zener: P_Z = Vz × I_Z
Common Zener voltagesTypical use
2.4 V, 2.7 VLow-voltage references, ADC protection
3.3 V3.3V rail reference, logic level clamping
5.1 V5V reference, USB bus clamping
12 V12V supply regulation, clamp circuits
15 V, 18 VOp-amp supply clamping

Protection Circuits

Flyback Diode (Freewheeling Diode)

When a transistor switches off an inductive load (relay coil, motor, solenoid), the collapsing magnetic field generates a voltage spike — potentially many times the supply voltage. A diode across the load clamps the spike:

Flyback Diode Circuit An NPN transistor driving an inductive load with a flyback diode connected in parallel with the load to safely dissipate the voltage spike when the transistor turns off. VCC Load Flyback Diode Control GND
The flyback diode provides a safe path for the inductive load's current to circulate when the transistor turns off, preventing a destructive high-voltage spike at the transistor collector.

Use a fast diode (1N4148 for small loads, 1N4007 or Schottky for larger). Without it, the voltage spike can destroy the transistor or microcontroller driving it.

Reverse Polarity Protection

Reverse Polarity Protection Two methods for reverse polarity protection: a simple series diode with a voltage drop, and a P-MOSFET that offers near-zero voltage drop. Series Diode Vin Load Simple, but drops ~0.6V P-MOSFET Vin S G 10kΩ GND D Load Near-zero drop (I × Rds_on)
A series diode is foolproof but wastes power. A P-MOSFET oriented with its source facing the input acts as an ideal diode, turning on fully when voltage is correct and blocking when reversed.

References