How to Build a Peak Detector Circuit Step-by-Step Guide

peak detector circuit diagram

For high-accuracy transient voltage capture, combine an operational amplifier (LM358 or TL072) with a fast recovery diode (1N4148 or BAT43) and a low-leakage capacitor (1–10 µF, tantalum or film type). Configure the op-amp in non-inverting mode with a closed-loop gain of 1.1–1.5 to ensure rapid charging without overshoot. Ground the reference input for single-supply operation, or add a voltage divider to set a precise baseline when dual supplies are available.

Discharge time constants are critical–use a high-value resistor (1–10 MΩ) across the storage capacitor to control decay rate while minimizing signal droop. For signals below 10 kHz, a single-stage design suffices; above this, add a secondary buffer (another op-amp) to prevent loading effects. Test with a 1 kHz sine wave: output should mirror the input’s crest value within ±2% accuracy if components are properly matched.

Noise suppression demands shielding–place the diode and capacitor in a Faraday cage (copper foil or PCB ground pour) if working near switching regulators or digital circuits. For pulsed inputs, add a small-value resistor (50–100 Ω) in series with the diode to dampen ringing. Verify performance with an oscilloscope set to infinite persistence: captured peaks should hold steady for at least 100 ms without drift.

For microcontroller interfacing, insert a unity-gain buffer between the capacitor and ADC to avoid load-induced errors. If thermal stability is required, replace the standard diode with a Schottky type (BAT54) and use a polypropylene capacitor to reduce leakage current by up to 80%. Calibration involves applying a known DC reference–adjust the op-amp’s bias resistor until the output matches within 1 mV of the input’s highest excursion.

Designing a Signal Capture Schematic for Maximum Voltage Tracking

Begin with a precision operational amplifier (op-amp) configured as a non-inverting follower–choose a model with ultra-low input bias current, such as the OPA376 or LTC1050, to minimize signal drift. Connect the input signal directly to the op-amp’s non-inverting terminal, ensuring the inverting input mirrors the output via a low-leakage diode (preferably a Schottky like the BAT54, with forward voltage under 300mV). The diode’s cathode should feed into a high-quality hold capacitor, typically a 0.1µF to 1µF polyester or polypropylene film type, selected for dielectric absorption below 0.01%.

For accurate tracking, the op-amp’s output stage must drive the diode without saturation–calculate the required slew rate using SR ≥ 2π × Vpeak × finput, where finput is the highest frequency of interest. Install a small resistor (100Ω–1kΩ) between the op-amp output and diode to limit current spikes, reducing thermal noise from recovery transients. Ground the hold capacitor’s free terminal through a low-offsets amplifier (e.g., OP07) to buffer the stored voltage, preventing droop from parasitic loads.

  • Select capacitors with leakage currents below 1nA (e.g., WIMA FKP series) to preserve voltage integrity during hold periods exceeding 100ms.
  • Avoid electrolytic capacitors; their polarization introduces nonlinearities at sub-volt signal levels.
  • Decouple the op-amp’s power supply with 0.1µF ceramics placed within 5mm of the IC pins to suppress high-frequency noise pickup.

To reset the stored voltage, add a low-leakage analog switch (e.g., MAX4644) across the hold capacitor, controlled by a logic gate with rise times under 10ns. Implement a discharge time constant τ = R × C, where R (typically 1kΩ–10kΩ) ensures full reset within 5–10τ. For pulsed inputs, insert a 1MΩ resistor from the switch node to ground to bleed residual charge, preventing false triggers during rapid signal transitions.

  1. For signals with DC offsets, AC-couple the input via a 1µF film capacitor, discharging it through a 100kΩ resistor to avoid baseline wander.
  2. When tracking high-frequency signals (>10kHz), reduce the hold capacitor to 100pF–1nF to minimize acquisition latency while accepting higher droop rates.
  3. Test stability by injecting a 1kHz, 1Vpp sine wave; the output should follow the envelope without overshoot or oscillation.

In noisy environments, shield the hold capacitor and op-amp input traces using a grounded copper pour, limiting trace lengths to

Core Elements of a Voltage Envelope Tracker and Their Functions

Select a Schottky diode for minimal forward voltage drop–typically 0.2V to 0.3V. Its low barrier potential reduces signal distortion when capturing transient amplitudes, especially in high-frequency applications above 10 MHz. Pair it with a low-leakage capacitor; ceramic types (X7R or C0G) are preferred for stability across temperature variations, while tantalum options suit lower-frequency setups needing higher capacitance (1µF to 10µF). The diode’s recovery time must align with input rise times–fast-switching variants (e.g., 1N5711) prevent signal smearing during rapid transitions.

Choose an operational amplifier with high input impedance and low bias current–FET-input types (e.g., TL071, OPA2134) prevent loading the holding stage. Slew rate should exceed the maximum input signal’s rate of change; for a 1V/µs slope, aim for at least 5V/µs (LM318 or AD823). Rail-to-rail output capability ensures accurate retention of the captured amplitude, particularly in single-supply configurations where the op-amp’s output swing approaches the supply rails. Offset voltage drift must stay below 5µV/°C to avoid thermal errors in precision measurement tasks.

The discharge path demands a resistor with tight tolerance–0.1% metal film resistors reduce error in decay time calculations. For a 10µF holding capacitor, a 1MΩ resistor yields a 10-second discharge time constant; adjust values proportionally for faster or slower decay. In noise-sensitive environments, shield the resistor-capacitor path with a guard ring on the PCB to minimize parasitic coupling. Active discharge circuits (e.g., a MOSFET switch) enable rapid reset, essential for repetitive sampling at intervals under 100ms.

Input coupling capacitors must tolerate the signal’s DC offset without saturating–non-polarized film capacitors (polypropylene or polyester) handle AC signals without bias restrictions. Place a small-value (100Ω to 1kΩ) series resistor at the input to dampen parasitic oscillations from diode capacitance interacting with source impedance. For AC waveforms centered around zero, a DC-blocking capacitor sized to pass the lowest frequency component (e.g., 1µF for 10Hz) prevents baseline wander while allowing the transient capture mechanism to function unattenuated.

Building a Signal Tracker with Diodes: Practical Steps

Select a fast-recovery diode such as the 1N4148 for input frequencies up to 1 MHz. Its 4 ns reverse recovery time prevents signal distortion during rapid voltage transitions. For higher frequencies, use a Schottky diode like the BAT54 with near-zero recovery time.

Assemble the components on a breadboard following this layout:

Component Value/Part No. Connection Points
Diode 1N4148 or BAT54 Anode to input, Cathode to storage node
Capacitor 100 nF ceramic Storage node to ground
Resistor 1 MΩ Storage node to ground
Operational Amplifier TL071 Non-inverting input to storage node, output to load

Apply a 1 kHz sine wave with 5 Vpp amplitude to the diode anode. The capacitor charges to the waveform’s highest point minus the diode’s forward voltage drop–approximately 0.7 V for silicon or 0.3 V for Schottky. Monitor the capacitor voltage with an oscilloscope; it should settle within 1–2 cycles.

Adjust the time constant by varying the resistor value. A 100 kΩ resistor reduces hold duration to ~10 ms, while 10 MΩ extends it to ~1 s. Verify hold stability with a 50% duty cycle square wave; the stored voltage should remain within 5% of the target amplitude.

For accurate signal replication, buffer the capacitor voltage with a unity-gain op-amp. The TL071’s high input impedance (~1012 Ω) draws negligible current, preserving the stored level. Ensure the op-amp’s output range matches the input signal; for ±12 V supplies, the TL071 handles ±10 V swings.

Test edge cases by feeding a 10 kHz triangle wave. The tracker should follow rising slopes but may lag on rapid falls if the discharge resistor is too large. Swap the diode for a germanium type (e.g., 1N34A) if lower forward voltage drop (0.3 V) is critical for small amplitude signals.

Choosing the Optimal Operational Amplifier for Signal Capture Systems

Prioritize amplifiers with a slew rate exceeding 5 V/μs for input transients above 1 MHz to prevent distortion in the captured waveform. The LMH6642 (180 MHz GBW, 40 V/μs) outperforms the TL072 (3 MHz, 13 V/μs) in high-frequency applications by maintaining linearity during rapid signal shifts. Verify the input bias current–devices like the OPA192 (10 pA) reduce errors in high-impedance sources compared to the AD8610 (1 pA) when paired with storage capacitors above 1 nF.

Critical Parameters and Trade-offs

peak detector circuit diagram

Select an amplifier with rail-to-rail output if the supply voltage drops below ±5 V; the MAX44248 (±2.7 V to ±5.5 V, 1 MHz) ensures full swing in low-voltage designs, while the MCP6002 (±1.8 V to ±6 V, 2.8 MHz) sacrifices bandwidth for lower quiescent current (10 μA vs. 50 μA). For temperature stability, the LT1007 (0.6 μV/°C drift) minimizes drift-induced inaccuracies in precision measurements, unlike the LM358 (7 μV/°C). Noise performance is non-negotiable–target

Match the amplifier’s output drive capability to the load. The THS3091 (350 mA output, 140 MHz) handles capacitive loads up to 10 nF without oscillation, whereas the OPA2376 (65 MHz, 60 mA) requires a series resistor (≥10 Ω) to stabilize outputs above 1 nF. For battery-powered devices, the TLV2371 (2 MHz, 12 μA) extends runtime but limits response time; balance power consumption with target settling time (