Clipping and Clamping: Shaping Waveforms with a Diode
Lower the threshold and cut the peaks
The faint curve is the input, the bold curve is the output, and the gold dashed line is the threshold at which the diode turns on. Lower the threshold and the part above that line is cut off, flattening the output's peaks. Use the slider to find how far the threshold must come down before the peaks are cut off completely.
A parallel diode pins the peaks
Pass the signal through a series resistor and connect a diode across the output, with its other end tied to a reference voltage. When the input exceeds the reference voltage plus the diode's threshold, the diode turns on and conducts, the excess voltage falls across the series resistor, and the output is held at that value. Above it, however high the input rises, the output cannot follow and is cut off. This is clipping.
Add a series capacitor and it clamps
In clamping, a capacitor is placed in series with the signal and the diode is connected across the output. When the input reaches its negative peak the diode turns on and the capacitor charges to the size of that peak; once the diode turns off, the capacitor holds that charge and adds a constant DC voltage to the signal. So the shape of the waveform stays the same while the whole thing shifts upward, and reversing the diode shifts it downward instead. Changing only the baseline without cutting anything is clamping.
One valve, two uses
Clipping and clamping are, in the end, the same action: a diode holding a voltage at its threshold. Placed across the output together with a series resistor it cuts off everything above the threshold and sets a limit; used together with a series capacitor it adds the voltage it once caught as DC and shifts the baseline. What gets cut or shifted is decided by the reference voltage and the direction of the diode.
Back to the first screen
The lower you set the threshold, the more the peaks were cut, flattening the top of the output. That flat line is the trace of the diode turning on and holding the output at one value. Switch to a series capacitor and the same grip lifts the whole waveform instead of cutting it. In the end, clipping and clamping are two faces of one fact, that a diode fixes the voltage at its threshold, and this is how the one-way valve of B1 becomes a tool for shaping signals.
What comes next
So far the diode has worked in the forward direction. In the next unit you deliberately push it deep into reverse and meet the Zener diode, which at a certain voltage suddenly gives way and conducts while holding that voltage firmly. If clamping shifted the baseline, the Zener is a constant-voltage tool that fixes the output voltage itself.