The diode peak detector

Build · 9 min

The generator gives a short pulse, 8 V for 0.2 s every 2 s: CH1 shows it. Suppose a circuit needs to know how high the pulse went, after the pulse has ended.

Build a peak detector: a 1N4148 from the generator (anode in column 3) to column 6, and a 10 µF electrolytic from column 6 (+) to column 8, with a wire from 8 to the − rail. The 1 MΩ already there stands for whatever reads the held voltage. Press Run and watch CH2.

Suppose the reading must stay within 5% of the peak for 1 s after it. The load drains the capacitor as an RC discharge, V=V0e−t/RC, so staying that close for a time t needs RC ≥ t / 0.0513 (that number is minus the natural log of the fraction left). With the 1 MΩ load, what's the least capacitance that will do?

Answer in µF.

Swap the capacitor for the smallest one in the drawer that's at least 19.5 µF: the 47 µF. Then press Run again.

On a real bench the capacitor leaks as well as the load. An electrolytic's own leakage current can drain it faster than the load does, so a peak detector that must hold for seconds uses a film capacitor, often followed by an op-amp buffer, so that almost nothing drains it.

Where would you use a peak detector?

Choose all that apply.

  • An audio level meter, whose needle should show the loudest recent sound
  • Measuring a sine's amplitude with a DC meter
  • Recovering the outline of an AM radio signal
  • Doubling a voltage

A peak detector:

  • a diode charging a capacitor: it holds the highest voltage seen, minus the voltage lost across the diode;
  • the load drains it: for a droop under a fraction x in time t, RC≥t/x (roughly, for small x);
  • a bigger capacitor holds longer but charges more slowly: following fast peaks needs a source that can supply a large current, or an op amp to drive it.