Bench note
Zener clamps when the input surprises you
The problem arrives faster than the schematic
You breadboard a sensor interface. The ADC expects 0–3.3 V. The sensor datasheet promises 0–5 V maximum. Then someone plugs in the wrong supply, a back-EMF spike appears, or a fault condition pushes 12 V into your analog front-end. The microcontroller input is now a fuse.
A series resistor and zener diode clamp costs two components and prevents most of these failures. It won't save you from sustained abuse, but it buys time and keeps the magic smoke inside.
How the clamp works
Place a series resistor between the incoming signal and your ADC input. Connect a zener diode from the ADC side to ground, cathode toward the signal. When the input voltage exceeds the zener breakdown voltage plus one diode drop (~0.7 V), the zener conducts and clamps the node.
Pick a zener voltage just above your maximum valid signal. For a 3.3 V ADC with 5 V inputs, a 3.6 V or 3.9 V zener works. The series resistor limits current through the zener during an overvoltage event; 1 kΩ to 10 kΩ is typical. Higher resistance protects the zener but adds input impedance and noise.
The zener's power dissipation during a fault is approximately (V_fault - V_zener) × (V_fault - V_zener) / R_series. A 500 mW zener survives most desk-scale faults.
Component selection that doesn't assume perfection
Choose a zener with low dynamic impedance if your signal swings near the clamp threshold. BZX84 or 1N47xx families are common in SOT-23 or DO-35 packages. Check the datasheet's test current; many zeners specify breakdown voltage at 5 mA.
The series resistor forms a low-pass filter with the ADC's input capacitance and any board parasitic capacitance. If you need bandwidth above a few kilohertz, keep the resistor under 2.2 kΩ and add a small capacitor (10–100 pF) across the zener for high-frequency transient absorption.
If your ADC has an internal clamp diode to its supply rail, the zener still helps. Internal clamps aren't rated for sustained current, and a fault that injects milliamps into the supply can glitch other circuits. The external zener absorbs the energy before it reaches the chip.
When not to rely on this alone
A zener clamp is a secondary defense. It won't replace reverse polarity protection on the main supply, and it can't handle continuous overvoltage from a miswired power rail. For those cases, add a series Schottky diode to a known good rail or a TVS diode at the board input.
If the signal source has significant output impedance, the series resistor and source resistance together determine clamp current. Measure or estimate the worst-case source impedance and verify the zener won't exceed its power rating during a fault.
Testing without wishful thinking
Build the clamp on a breadboard. Apply your maximum valid signal and confirm the ADC reads correctly. Then slowly increase the input voltage with a bench supply while monitoring the clamped node with a multimeter. The voltage should plateau near the zener breakdown voltage.
Short the input to your highest available voltage (within reason—don't exceed the zener's absolute maximum ratings). The series resistor should get warm but not smoke. If it does, increase the resistance or choose a higher-power zener.
Document the clamp in your schematic and BOM. Note the zener voltage and power rating. Future you will thank past you when troubleshooting a field failure.
The edit you'll make later
After the first prototype, revisit the series resistance. If your ADC samples slowly or the signal bandwidth is low, you can increase the resistor and improve fault protection. If you need faster response, verify the RC time constant with an oscilloscope before finalizing the design.
A zener clamp won't appear in polished product documentation—it's invisible protection. But it's the difference between a recoverable fault and ordering new microcontrollers.