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
| Component | Value | Purpose |
|---|---|---|
| IC 741 | OA1 | Voltage follower driving the diode |
| D1 | 1N4148 | Charging diode |
| C1 | 1 µF | Hold capacitor |
| Rd | 1 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.
Procedure
- Open the Op-Amp Trainer Kit simulator; it starts with the Peak detector application selected.
- 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.
- Set the dual power supply to ±12 V and switch it on.
- Switch on the function generator and set: Sine, 4 Vpp, 1 kHz.
- Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 1 V/div, 200 µs/div.
- Wait for CH2 to settle and measure its DC value.
- Change the amplitude and observe how quickly the held value follows an increase and a decrease.
- Note the small ripple caused by discharge through Rd.
- Capture the oscilloscope screen and compare it with the expected result below.
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
Linear amplifiers
Integrator and differentiator
Comparators and waveform generators
Active filters
Non-linear circuits
All applications run on the Op-Amp Trainer Kit 3D virtual lab.