Schematic of Peak/Trough detector circuit
D2
D1
C1
Capacitance
100pF
C2
Capacitance
100pF
R2
Resistance
500 Ω
R1
Resistance
500 Ω
OP3
OP1
OP2
OP4
S2
S1
R3