If you strip away the semiconductor physics and band-gap theory, the answer to what do diodes do is remarkably simple: they act as one-way valves for electrical current. Just as a check valve in a plumbing system allows water to flow in one direction while blocking reverse flow to prevent a pump from spinning backward, a diode allows electrons to flow from its anode to its cathode while blocking them from going the other way.

But knowing the definition isn't enough when you're staring at a workbench full of components. You need to know which part number to grab, how to wire it so it doesn't explode, and how to verify it with your multimeter when a circuit misbehaves. This guide skips the abstract physics and focuses entirely on bench-ready diode application, selection, and troubleshooting.

The Short Answer: Symbol, Pinout, and Orientation

Every diode has two terminals and a specific schematic symbol. The symbol is a triangle pointing toward a vertical line.

  • Anode (A): The positive side, represented by the flat back of the triangle. Current flows into the anode.
  • Cathode (K): The negative side, represented by the vertical line. Current flows out of the cathode.

On a physical through-hole component like the ubiquitous 1N4007, the cathode is marked by a painted silver or black band near one of the wire leads. If you are looking at a surface-mount device (SMD), the cathode is typically marked by a thick white or black line on the plastic body. Getting this orientation backward is the most common beginner mistake, usually resulting in a dead circuit or a shorted component.

Operation Regions and Safe Default Part Numbers

Diodes don't just turn on and off instantly; their behavior changes based on the voltage applied across them. Here is how they behave in the three primary operation regions, followed by the exact part numbers you should keep in your bench drawer.

Operation Region Bias Condition Typical Voltage Typical Current
Forward Conduction Anode > Cathode by $V_F$ 0.7V (Silicon), 0.3V (Schottky) 10mA up to $I_{F(max)}$
Reverse Blocking Cathode > Anode 0V up to PIV rating < 1µA (Leakage current)
Avalanche Breakdown Cathode >> Anode Exceeds PIV rating Limited only by circuit (Usually destructive)

The Safe Defaults

Don't overthink your component selection for standard hobby and prototyping work. Stock these three part numbers, and you will cover 95% of your bench needs:

  1. 1N4007 (General Purpose Rectifier): Rated for 1A continuous forward current and 1000V Peak Inverse Voltage (PIV). Use this for power supply rectification, reverse polarity protection, and relay flyback snubbers. View the ON Semi 1N400x Datasheet.
  2. 1N4148 (Small Signal Switching): Rated for 300mA and 100V PIV. It has a very fast reverse recovery time ($t_{rr}$), making it ideal for high-speed logic gating, signal clamping, and RF circuits where the 1N4007 would be too slow.
  3. 1N5819 (Schottky Rectifier): Rated for 1A and 40V PIV. It features a low forward voltage drop (~0.3V) and near-zero reverse recovery time. Use this for low-voltage DC-DC converters and solar panel blocking.

How to Bias and Select a Diode for the Job

To make a diode conduct, you must forward-bias it. This means applying a higher voltage to the anode than the cathode. However, silicon diodes require a minimum threshold voltage—typically 0.7V—before they "turn on" and begin conducting heavily. If you apply 0.4V across a 1N4007, it will remain effectively an open circuit.

To block current, you reverse-bias the diode by making the cathode more positive than the anode. The diode will block current up to its Peak Inverse Voltage (PIV) rating. If your circuit sees 50V in reverse, and you use a 1N4148 (100V PIV), you are safe. If you use a diode with a 40V PIV, it will hit avalanche breakdown, overheat, and likely short-circuit.

Bench Tip: Watch Your Voltage Headroom
When choosing between a standard silicon diode (1N4007) and a Schottky (1N5819) for reverse polarity protection on a low-voltage rail, do the math on your voltage drop. If you are protecting a 3.3V ESP32 circuit, a 0.7V silicon drop leaves your microcontroller with only 2.6V—causing brownouts. A Schottky's 0.3V drop leaves you with a much healthier 3.0V.

Real-World Scenario: The Melted Transistor and the Missing Flyback

To understand why diode orientation and selection matter, let's look at a failure scenario I see constantly in maker spaces: driving an inductive load without a snubber diode.

The Setup: A hobbyist wanted to control a 12V automotive relay using an ESP32 microcontroller. Because the ESP32 GPIO pins can only source about 40mA, they used a 2N2222 NPN bipolar junction transistor (BJT) as a low-side switch. The relay coil drew about 400mA when energized. The circuit worked perfectly on the first test. The relay clicked on.

The Numbers: The 2N2222 is rated for a maximum collector current ($I_C$) of 600mA, so the 400mA relay coil was well within limits. The ESP32 GPIO output was 3.3V, feeding the BJT base through a 1kΩ resistor.

The Outcome: When the ESP32 GPIO pin went LOW to turn the relay off, the transistor instantly failed short, and the ESP32 GPIO pin burned out, killing that specific I/O bank on the microcontroller.

What Went Wrong: Inductive kickback. A relay coil is an inductor. When the transistor switched off, the magnetic field in the relay coil collapsed. According to Faraday's law of induction, this collapsing field generated a massive reverse voltage spike to keep current flowing. Without a path to dissipate this energy, the spike reached >100V reverse spike across the transistor's collector-emitter junction. This exceeded the 2N2222's $V_{CEO}$ rating of 30V, punching through the silicon and destroying both the transistor and the microcontroller.

Complete Application Circuit: 12V Relay Snubber

The fix for the scenario above is a flyback (or snubber) diode. Here is the corrected, bench-proven circuit to safely drive a 12V relay with an ESP32.

Component List

  • U1: ESP32 DevKit v1 (Microcontroller)
  • Q1: 2N2222 NPN Transistor (Low-side switch)
  • K1: 12V SPDT Relay (Coil resistance ~30Ω, 400mA draw)
  • D1: 1N4007 Diode (Flyback protection)
  • R1: 1kΩ Resistor (Base current limiter)

Wiring and Biasing

  1. Connect the ESP32 GPIO pin to one leg of the 1kΩ resistor (R1).
  2. Connect the other leg of R1 to the Base of the 2N2222 (Q1).
  3. Connect the Emitter of Q1 to system Ground.
  4. Connect one side of the relay coil (K1) to the +12V power supply.
  5. Connect the other side of the relay coil to the Collector of Q1.
  6. The Critical Step: Place the 1N4007 diode (D1) in parallel with the relay coil. The Cathode (band) must point toward the +12V supply. The Anode must point toward the Collector of Q1.

When Q1 turns off, the relay coil's reverse voltage spike forward-biases D1. The diode clamps the voltage to a safe 0.7V above the 12V rail, allowing the inductive energy to circulate harmlessly through the coil and the diode until it dissipates as heat.

How Diodes Fail and How to Test Them With a Multimeter

Diodes generally fail in two ways: shorted (most common, usually due to exceeding the PIV rating or forward current limit) or open (less common, usually caused by a massive transient surge that physically melts the internal wire bond).

You never need to guess if a diode is healthy. Every modern digital multimeter (DMM) has a dedicated diode test mode, usually indicated by a diode symbol on the dial. This mode outputs a small, constant current (usually 1-2mA) and measures the resulting voltage drop. Fluke's guide to diode testing confirms this is the most reliable field method.

  1. De-energize and Discharge: Remove power from the circuit. If testing in-circuit, ensure all large capacitors are safely discharged. (For absolute certainty, desolder one leg of the diode to lift it from the PCB, as parallel components can skew readings).
  2. Set the DMM: Turn the dial to the Diode Test mode.
  3. Test Forward Bias: Place the red probe on the Anode (no band) and the black probe on the Cathode (band). A healthy silicon diode will read between 0.500V and 0.800V. A Schottky will read 0.200V to 0.400V.
  4. Test Reverse Bias: Swap the probes (red on Cathode, black on Anode). A healthy diode will display "OL" (Over Limit) or "1" on the left side of the screen, indicating infinite resistance.
  5. Diagnose the Result:
    • If you read ~0.000V or a very low number in both directions, the diode is shorted. Throw it away.
    • If you read "OL" in both directions, the diode is open. Throw it away.
    • If the forward voltage reads unusually high (e.g., >1.0V for standard silicon), the internal junction is degraded. Replace it.

Understanding what diodes do is the first step; knowing how to apply, protect, and verify them is what separates a theoretical student from a competent builder. Keep your 1N4007s and 1N5819s stocked, always respect the cathode band, and never leave an inductive load without a flyback path.