The Core Function: What Diodes Do in Real Circuits

At the workbench, the simplest way to understand what diodes do is to think of them as one-way check valves for electrical current. A diode allows current to flow freely in the forward direction while blocking it in the reverse direction, up to its maximum voltage rating. This unilateral behavior is the foundation for converting AC to DC, protecting sensitive microcontrollers from inductive voltage spikes, and steering logic signals.

On a schematic, the diode symbol is a triangle pointing into a vertical line. The triangle side represents the Anode (A), which is the positive terminal where current enters. The vertical line represents the Cathode (K), where current exits. On physical through-hole components like the ubiquitous 1N400x series, the cathode is always marked by a painted silver, white, or black band near one of the wire leads. If you are looking at surface-mount devices (SMD) like the SMA or SOT-23 packages, the cathode is indicated by a thick silkscreen line or a colored band on the component body.

Operation Regions and Biasing

To use a diode correctly, you must understand how to bias it. Biasing simply refers to the DC voltage applied across the component's terminals. A diode operates in three distinct regions depending on how it is biased relative to its internal PN junction physics.

Diode Operation Regions and Typical Characteristics
Region Bias Condition Silicon (e.g., 1N4007) Schottky (e.g., 1N5819) Circuit Behavior
Forward Conduction Anode > Cathode by > $V_f$ $V_f$ ≈ 0.6V to 1.1V $V_f$ ≈ 0.2V to 0.45V Acts as a closed switch with a small voltage drop. Current flows freely.
Reverse Blocking Cathode > Anode (Below PIV) Leakage < 5 µA Leakage ≈ 10 µA to 1 mA Acts as an open switch. Blocks current up to the Peak Inverse Voltage (PIV).
Avalanche Breakdown Cathode > Anode (Exceeds PIV) 1000V (for 1N4007) 40V (for 1N5819) Junction breaks down. Massive current flows, usually destroying standard diodes.

For a deeper look at the semiconductor physics governing these regions, refer to the All About Circuits semiconductor textbook.

Callout Tip: The Forward Voltage Drop ($V_f$) Tax
Every time current passes through a forward-biased diode, you lose power as heat equal to $V_f \times I$. If you pass 3A through a standard silicon rectifier ($V_f$ = 1.0V), you are burning 3W of heat right at the junction. This is why we use Schottky diodes ($V_f$ ≈ 0.3V) in low-voltage DC power supplies—they drop less voltage and run significantly cooler.

Selecting the Right Diode: Safe Default Part Numbers

When you are prototyping or repairing a board and need a quick replacement, keep these four safe default part numbers in your bench kit. Never use a part number without verifying its current and Peak Inverse Voltage (PIV) ratings against your circuit's demands.

  • 1N4007 (General Purpose Rectifier): Rated for 1A continuous forward current and 1000V PIV. It has a slow reverse recovery time, making it perfect for 50/60Hz mains AC rectification and basic reverse-polarity protection. It is terrible for high-frequency switching power supplies. (See the Vishay 1N400x datasheet for exact thermal derating curves).
  • 1N4148 (Small Signal / Fast Switching): Rated for 300mA continuous (450mA peak) and 100V PIV. It features a very fast reverse recovery time (~4ns). Use this for logic gate steering, RF signal clamping, and low-current snubber networks. Do not use it for power rectification; it will overheat and fail.
  • 1N5819 (Schottky Rectifier): Rated for 1A and 40V PIV. With a low $V_f$ of roughly 0.4V, this is your default choice for reverse polarity protection on 12V and 24V battery systems, and as a freewheeling diode in low-frequency buck converters.
  • 6A10 (High Current Power): Rated for 6A continuous and 1000V PIV. This thick, axial-leaded diode is the go-to for heavy DC motor flyback protection, high-current battery charging circuits, and alternator outputs.

Application Circuit: 12V DC Motor PWM Driver with Flyback Protection

To see exactly what diodes do when protecting a circuit from inductive kickback, let's build a PWM speed controller for a 12V, 3A DC motor using an ESP32 and a logic-level MOSFET. When you turn off power to an inductive load (like a motor coil), the collapsing magnetic field generates a massive reverse voltage spike that will instantly punch through the MOSFET's drain-source junction. The flyback diode provides a safe recirculation path for this energy.

Bill of Materials and Component Values

  • Microcontroller: ESP32 DevKit V1 (providing 3.3V PWM signal on GPIO 25)
  • Switch: IRLZ44N N-Channel Logic-Level MOSFET ($V_{GS(th)}$ < 2.0V)
  • Flyback Diode: 1N5822 (3A, 40V Schottky) — Must handle the motor's stall current.
  • Gate Resistor ($R_g$): 100Ω (limits inrush current into the MOSFET gate capacitance)
  • Pull-down Resistor ($R_{pd}$): 10kΩ (keeps the MOSFET off during ESP32 boot-up)
  • Load: 12V DC Motor (e.g., RS-555, ~2A nominal draw)

Wiring Procedure

  1. Connect the 12V power supply positive terminal to the motor's positive terminal.
  2. Connect the motor's negative terminal to the Drain pin of the IRLZ44N MOSFET.
  3. Connect the MOSFET's Source pin to the system Ground (shared with the 12V supply negative and ESP32 GND).
  4. Install the Flyback Diode: Connect the 1N5822 in parallel with the motor. The diode's Cathode (banded end) must point toward the 12V positive side (motor positive). The Anode connects to the MOSFET Drain side (motor negative). Under normal operation, the diode is reverse-biased and does nothing. When the MOSFET switches off, the motor's voltage spikes, forward-biasing the diode and clamping the spike to ~0.5V above the 12V rail.
  5. Connect the 100Ω gate resistor between ESP32 GPIO 25 and the MOSFET Gate.
  6. Connect the 10kΩ pull-down resistor between the MOSFET Gate and Source (Ground).

For more detailed application notes on calculating flyback diode dissipation, review the Electronics Tutorials diode guide.

Failure Modes and Multimeter Testing

Diodes generally fail in one of two ways: short circuit (most common, usually caused by exceeding the PIV rating or thermal runaway) or open circuit (caused by excessive forward current melting the internal wire bond). Here is how to definitively test a diode on your bench using a digital multimeter (DMM).

  1. Isolate the Component: Remove the diode from the circuit entirely, or lift at least one leg. Testing in-circuit will yield false readings due to parallel resistance paths.
  2. Set the DMM: Turn the multimeter dial to the Diode Test mode (usually indicated by a small diode symbol).
  3. Forward Bias Test: Place the Red probe on the Anode and the Black probe on the Cathode. A healthy silicon diode will display a voltage drop between 0.500V and 0.750V. A healthy Schottky will read between 0.150V and 0.400V.
  4. Reverse Bias Test: Swap the probes (Black on Anode, Red on Cathode). The meter should display "OL" (Over Limit) or a "1" on the left side of the display, indicating infinite resistance.
Diagnostic Matrix:
Reads ~0.00V in both directions: The diode is shorted internally. Throw it away.
Reads "OL" in both directions: The diode is open (internal wire bond snapped). Throw it away.
Reads a voltage drop in reverse bias: The junction is leaky and compromised. Do not use it in high-reliability circuits.

Frequently Asked Questions

What do diodes do to AC voltage in a power supply?

In an AC power supply, diodes are arranged in a bridge rectifier configuration (using four diodes) to perform full-wave rectification. They steer the alternating current so that both the positive and negative half-cycles of the AC sine wave are forced to flow in a single, unidirectional path. This converts the AC into a pulsating DC voltage, which is then smoothed out by bulk electrolytic capacitors to create a steady DC rail.

What do Zener diodes do differently than standard rectifiers?

While standard diodes are designed to block reverse voltage until they catastrophically fail, Zener diodes are specifically engineered to operate safely in the reverse breakdown region. When the reverse voltage reaches the Zener's specific rating (e.g., 5.1V), it begins conducting current in reverse, clamping the voltage at that exact level. This makes them incredibly useful as simple voltage references or low-current shunt regulators, though they are highly inefficient for high-power regulation compared to modern LDOs or switching buck converters.

What happens if I install a diode backwards in a DC circuit?

If you install a standard rectifier backwards in series with a DC load (reverse polarity), it will simply block the current flow, and the circuit will not turn on. However, if the diode is placed in parallel as a flyback or clamping diode and installed backwards, it will act as a dead short across your power supply the moment the circuit is energized. This will typically blow the main fuse, trip the power supply's overcurrent protection, or cause the diode to violently pop and vent hot epoxy across your workbench.