Home/Analog Electronics/Op-amp applications/Peak detector

Peak detector using Op-Amp (IC 741) – Virtual Lab

A peak detector charges a capacitor to the highest value of the input and holds it. Placing the diode inside the op-amp feedback loop removes the diode drop, so the held voltage equals the true peak.

Aim

To build a precision peak detector using IC 741 and measure the peak value of an input signal.

Circuit components

ComponentValuePurpose
IC 741OA1Voltage follower driving the diode
D11N4148Charging diode
C11 µFHold capacitor
Rd1 MΩDischarge resistor, τ = 1 s

Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.

Theory

Whenever the input rises above the capacitor voltage, the op-amp output goes positive, D1 conducts and the capacitor charges until it equals the input. When the input falls, D1 becomes reverse biased and the capacitor holds the peak.

The 1 MΩ resistor slowly discharges the capacitor (τ = 1 s) so that the circuit can follow a decreasing peak. A larger τ gives less ripple but a slower response to falling amplitude.

VC = Vp (positive peak of the input)
Discharge time constant τ = Rd C = 1 MΩ × 1 µF = 1 s

Procedure

  1. Open the Op-Amp Trainer Kit simulator; it starts with the Peak detector application selected.
  2. In Guided mode follow the highlighted connections to place the components from the parts bank and wire the circuit on the kit, or wire it yourself in Free mode.
  3. Set the dual power supply to ±12 V and switch it on.
  4. Switch on the function generator and set: Sine, 4 Vpp, 1 kHz.
  5. Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 1 V/div, 200 µs/div.
  6. Wait for CH2 to settle and measure its DC value.
  7. Change the amplitude and observe how quickly the held value follows an increase and a decrease.
  8. Note the small ripple caused by discharge through Rd.
  9. Capture the oscilloscope screen and compare it with the expected result below.
Function generatorSine, 4 Vpp, 1 kHzOscilloscopeCH1 1 V/div, CH2 1 V/div, 200 µs/divSupply±12 V, ON

Expected result

CH2 settles to a steady value of about +2.0 V, the positive peak of the 4 Vpp sine, with a very small ripple.

Viva questions

Why is an op-amp used instead of a simple diode and capacitor?
The op-amp removes the diode forward drop, so the held voltage equals the true peak even for small signals.
What is the purpose of the discharge resistor?
It lets the capacitor discharge slowly so that the circuit can follow a decreasing peak.
Where are peak detectors used?
In AM demodulators, peak-reading voltmeters, audio level meters and test equipment.

Other op-amp applications