I am trying to design a peak detector circuit. But it needs to be a special kind of peak detector.
If a more positive peak arrives, of course the circuit needs to detect and hold it. But if a smaller, also positive peak comes, it needs to forget the last one and store this new, smaller peak. It basically needs to store every new max value. The signal is always positive.
The signal is a sinusoidal waveform with frequency of about 33 Hz. The frequency can also be lower but not higher. For every cycle the highest peak needs to be detected, even when the peaks are getting smaller in magnitude. I have attached an image that explains this behaviour...
Can anyone help?