Peak Detector
CircuitSim
·
Created Oct 3, 2026
·
Updated Oct 3, 2026
Details
Components
5
Schematic
Yes
Simulation
Transient analysis
Copies
Not copied yet
About this circuit
Charge a capacitor to the positive input peak through a feedback-controlled diode.
Circuit notes
Peak Detector
Charge a capacitor to the positive input peak through a feedback-controlled diode.
V1 is a ±5 V, 100 Hz sine wave. A1 drives D1 so that C1 = 1 µF charges toward each positive input peak. Feedback senses the capacitor voltage after the diode. R1 = 100 Ω limits charging current and damps the loop. RL = 100 kΩ discharges the capacitor between peaks.
The held output approaches 5 V, then droops between crests. Unlike an ordinary diode-capacitor detector, feedback largely compensates the charging diode drop. When the diode is off, the amplifier can saturate; recovery limits performance at higher frequency. Leakage, bias current and capacitor absorption are omitted.
Read the results. The saved transient chart uses separate voltage and current panels; the table provides numerical samples. The first voltage probe is green and the second red. The first current probe is blue; a second current probe is purple.
Model limits. The three-terminal op-amp model has implicit ±12 V output limits, 200,000 low-frequency gain and 10 MHz gain-bandwidth product. Supply pins are intentionally absent in this functional model. In Schmitt-trigger and relaxation/integrator oscillator examples, the switching amplifier uses a 100 kHz gain-bandwidth setting to resolve transitions cleanly at the saved time step. It omits detailed slew-rate, input common-mode, output-current and thermal limits.
Try it. Set C1 to 100 nF; the held peak decays faster between input crests. Restore the original values after comparing the results.
Components used
Components used
5 components
Try this circuit yourself
Free to get started. No download — runs in your browser with a full SPICE engine.