The Bench Mistake: Why Your Rectifier is Frying Your MOSFET

Picture this: you are driving a 12V, 2A solenoid using a 20kHz PWM signal from an ESP32 to achieve precise proportional control. You have wired an IRLZ44N logic-level MOSFET as a low-side switch and, remembering your basic electronics training, you placed a 1N4007 rectifier diode across the solenoid coil as a flyback clamp. You power it up, the solenoid actuates, but within thirty seconds, the MOSFET is too hot to touch. A minute later, it pops and takes your ESP32 GPIO pin with it.

What went wrong? You used a standard rectifier where you needed a high speed switching diode.

The culprit is a parameter called reverse recovery time ($t_{rr}$). When a diode switches from forward conduction (clamping the inductive spike) to reverse blocking (when the MOSFET turns back on), it takes a finite amount of time to sweep out the stored minority charge carriers in the silicon junction. During this $t_{rr}$ window, the diode conducts heavily in the reverse direction. A standard 1N4007 has a $t_{rr}$ of roughly 2µs to 30µs depending on the $di/dt$ and forward current.

The Math of Failure: At a 20kHz PWM frequency, your total cycle period is 50µs. If your diode takes 2µs to recover, it acts as a dead short from your 12V supply, through the coil, through the diode, and straight through your newly-turned-on MOSFET to ground for 4% of every single cycle. This reverse recovery current spike ($I_{RRM}$) causes massive switching losses, thermal runaway, and ultimately, silicon death.

The fix? Swap the 1N4007 for a high speed switching diode like the BAS16, which boasts a $t_{rr}$ of just 4 nanoseconds. The MOSFET stays cool, the PWM signal remains clean, and your microcontroller survives. Let us break down exactly how to select, wire, and test these critical components.

Symbol, Pinout, and the Safe Default Part Numbers

On a schematic, a high speed switching diode uses the standard diode symbol: a triangle (the anode) pointing toward a vertical line (the cathode). There is no special symbol to denote "high speed"—you must rely on the part number and the datasheet's $t_{rr}$ specification to know what you are holding.

Physically, identifying the pins is straightforward but varies by package:

  • Through-Hole (DO-35 Glass): The component has a cylindrical glass body with wire leads. The cathode is marked by a prominent black band painted on one end of the glass. The unbanded end is the anode.
  • SMD Single (SOD-123 / SOD-323): A small rectangular black plastic body. The cathode is indicated by a white band or line printed on the top surface near one of the metal pads.
  • SMD Dual (SOT-23): A three-pin transistor-style package used for dual-series diodes (like the BAV99). Pin 1 is Anode 1, Pin 3 is the common connection (Cathode 1 tied to Anode 2), and Pin 2 is Cathode 2.

When you are prototyping or need a reliable default, stick to these proven part numbers. They are cheap, universally available, and specifically engineered for fast switching.

Safe Default High Speed Switching Diodes (2026 Bench Standards)
Part Number Package Peak Reverse Voltage ($V_{RRM}$) Avg Forward Current ($I_O$) Reverse Recovery ($t_{rr}$) Best Used For
1N4148 DO-35 (TH) 100V 200mA 4 ns Breadboards, through-hole logic, basic clamping
BAS16 / BAS316 SOD-123 (SMD) 100V 250mA 4 ns PCB flyback clamps, high-speed digital isolation
BAV99 SOT-23 (SMD) 75V 215mA 4 ns Dual-series logic gates, ESD protection arrays
1N4148WS SOD-323 (SMD) 75V 150mA 4 ns Tight-space SMD boards, low-current signal routing

Operation Regions and the Critical $t_{rr}$ Metric

To properly bias and select a high speed switching diode, you need to understand its three distinct operating regions and how junction capacitance affects high-frequency signals. Unlike power rectifiers that just need to block 60Hz AC, switching diodes must handle rapid transitions without distorting the signal.

Diode Operation Regions and Typical Electrical Characteristics
Region Bias Condition Typical Voltage / Current Physical Behavior
Forward Conduction Anode > Cathode by > $V_F$ $V_F$ = 0.7V to 1.2V @ 10-100mA Junction barrier collapses; current flows freely. High-speed diodes often have a slightly steeper $V_F$ curve than Schottkys.
Reverse Blocking Cathode > Anode $I_R$ < 25nA @ 20V Depletion region widens. Only minor leakage current flows. Acts as an open circuit.
Avalanche Breakdown Cathode > Anode by > $V_{BR}$ $V_{BR}$ > 75V-100V Junction breaks down. In switching diodes, this is usually destructive unless current is strictly limited.
Pro-Tip: Watch the Junction Capacitance ($C_j$)
In high-frequency RF or fast digital logic (like I2C lines running at 1MHz), the diode's reverse-biased junction acts like a tiny capacitor. A standard rectifier might have a $C_j$ of 15pF, which will filter out your high-speed data edges. A high speed switching diode like the 1N4148 typically has a $C_j$ of just 4pF, preserving signal integrity.

Application Circuit: 20kHz PWM Inductive Clamp

Let us look at a complete, real-world application circuit. This design safely drives a 12V inductive load (like a solenoid or small DC motor) using a high-frequency PWM signal, utilizing a BAS16 high speed switching diode to protect the switching element.

Component List and Values

  • U1: ESP32 or Arduino Microcontroller (3.3V or 5V logic output)
  • Q1: IRLZ44N (Logic-level N-Channel MOSFET, $V_{GS(th)}$ max 2.0V)
  • D1: BAS16 (High speed switching diode, SOD-123)
  • R1: 100Ω (Gate series resistor, limits inrush current to the gate capacitance)
  • R2: 10kΩ (Gate pull-down resistor, ensures Q1 stays off during MCU boot)
  • L1: 12V Solenoid (Nominal DC resistance ~6Ω, max current 2A)

Wiring and Connection Steps

  1. Connect the microcontroller PWM output pin to one end of the 100Ω gate resistor (R1).
  2. Connect the other end of R1 to the Gate pin of the IRLZ44N MOSFET.
  3. Solder the 10kΩ pull-down resistor (R2) between the Gate pin and Ground (GND). This prevents the MOSFET from floating and turning on accidentally while the MCU is initializing.
  4. Connect the Source pin of the MOSFET directly to your system Ground.
  5. Connect one terminal of the 12V Solenoid (L1) to your +12V power supply.
  6. Connect the other terminal of the Solenoid to the Drain pin of the MOSFET.
  7. The Critical Step: Place the BAS16 diode (D1) in parallel with the solenoid. Connect the Cathode (white band) to the +12V side of the solenoid, and the Anode to the MOSFET Drain side.
Why not a Schottky diode?
You might wonder why we do not just use a Schottky diode (like the 1N5819), which has virtually zero $t_{rr}$. Schottkys are excellent for low-voltage, high-current power supplies. However, they suffer from high reverse leakage current ($I_R$) that increases dramatically with temperature. In a 12V or 24V industrial environment, a Schottky can leak enough current when hot to cause phantom actuation or thermal runaway in the coil. The BAS16 offers the best compromise: 4ns switching speed with negligible reverse leakage.

Failure Modes and Multimeter Testing Steps

High speed switching diodes are robust, but they do fail, especially when subjected to voltage spikes that exceed their $V_{RRM}$ rating or when forced to dissipate too much average power. Understanding how they fail is the first step to diagnosing a dead board.

Common Failure Modes

  • Short Circuit (Catastrophic): The most common failure. A transient voltage spike (like an inductive kickback from a disconnected coil) exceeds the breakdown voltage, punching through the silicon junction. The diode becomes a dead short in both directions, usually taking the driving MOSFET down with it.
  • Open Circuit (Thermal): If the diode is forced to clamp a continuous high-current load (exceeding its $I_O$ rating), the internal bond wire melts or the silicon cracks from thermal stress. It will read as an open circuit in both directions.
  • Leaky Junction (Degradation): Repeated operation near the maximum junction temperature ($T_j$) or exposure to moderate over-voltage can degrade the depletion region. The diode will still block some voltage, but will pass significant reverse leakage current, causing signal distortion or logic errors.

How to Test with a Digital Multimeter (DMM)

You do not need an oscilloscope to verify a suspect diode. A standard DMM with a diode-test function is sufficient for bench troubleshooting.

  1. Isolate the Component: Never test a diode while it is powered. Ideally, remove it from the circuit. If testing in-circuit, ensure the board is discharged and be aware that parallel low-resistance paths (like a solenoid coil) can give false "short" readings.
  2. Set the DMM: Turn the dial to the Diode Test mode (usually indicated by a diode symbol and a soundwave symbol).
  3. Test Forward Bias: Place the red probe on the Anode (unbanded end) and the black probe on the Cathode (banded end). A healthy high speed switching diode will display a forward voltage drop between 0.500V and 0.750V (or 500-750 on a millivolt scale).
  4. Test Reverse Bias: Swap the probes. Red on Cathode, black on Anode. The meter should display 'OL' (Over Limit) or '1', indicating infinite resistance.
  5. Diagnose the Result:
    • If both directions read ~0.00V or beep continuously: The diode is shorted. Replace it and check the driving MOSFET.
    • If both directions read 'OL': The diode is open. Replace it and check for over-current conditions.
    • If reverse bias reads a voltage drop (e.g., 0.300V) instead of 'OL': The diode is leaky. It is degraded and must be replaced.

Selection Checklist: Biasing and Sizing for the Job

Before you order a reel of BAS16 diodes for your next PCB spin, run through this selection checklist to ensure the part is properly biased and rated for your specific application. According to design guidelines from major semiconductor manufacturers like Nexperia and onsemi, matching the diode to the load profile prevents 90% of field failures.

1. Peak Reverse Voltage ($V_{RRM}$)

The diode must withstand the maximum reverse voltage it will see, plus a safety margin. For a 12V system, the inductive kickback can easily ring to 30V or 40V before the diode clamps it. A 75V or 100V rated diode (like the 1N4148 or BAS16) is the standard baseline. Rule of thumb: Select a $V_{RRM}$ at least 2x your nominal supply voltage.

2. Average Forward Current ($I_O$) vs. Peak Surge Current ($I_{FSM}$)

This is where many designers get tripped up. A flyback diode does not conduct continuously; it only conducts for the brief moment the MOSFET turns off and the magnetic field collapses. Therefore, the average current ($I_O$) is very low, often just 10% to 20% of the load's steady-state current. However, the peak surge current ($I_{FSM}$) is equal to the full load current. A BAS16 rated for 250mA average can easily handle a 2A peak surge lasting a few microseconds. If your PWM duty cycle is very low (e.g., 10% on, 90% off), the diode conducts for a long time during the off-cycle, and you must calculate the true RMS current to ensure you do not exceed the $I_O$ rating.

3. Reverse Recovery Time ($t_{rr}$)

Calculate your PWM period ($T = 1 / f$). The diode's $t_{rr}$ should be less than 1% to 5% of your total off-time to prevent shoot-through losses in your switching transistor. For audio-frequency PWM (1kHz), a standard rectifier might barely scrape by. For ultrasonic PWM (20kHz+), a 4ns high speed switching diode is mandatory.

4. Package and Thermal Derating

If you are clamping a high-current relay in a high-ambient-temperature enclosure, remember that SMD packages like SOD-123 rely on the PCB copper pours for heat dissipation. If your average forward current approaches 150mA in a 60°C ambient environment, you must consult the manufacturer's derating curve. In these edge cases, step up to a larger package like a SMA or SMB fast-recovery diode (e.g., US1M), which bridges the gap between small-signal speed and power-rectifier current handling.

By treating the high speed switching diode not just as an afterthought, but as a critical timing and protection component, you eliminate the most common source of high-frequency switching failures on the bench. Keep a strip of BAS16 and a box of 1N4148s in your top drawer—they are the unsung heroes of clean, reliable digital and PWM circuitry.