Peak detector

Mar 21, 2006 7 Replies

I need to measure the peak of two waveforms occurring simultaneously. The peaks will only be somewhere around 50 µs, the entire pw 20-40 ms. Of course the best solution is to monitor it with a storage scope, however the personnel involved have not the training. Any ideas?


50 usec is a very long time in terms of response of modern electronic circuits. It should be possible to capture the peak using either analog or digital techniques. How accurately do you wish to capture it, and what amplitude is it? (What is the range of possible amplitudes, including the peak and the value at other times?)

A digital method: let a very simple microprocessor (or even a logic circuit) monitor the output of an ADC that's taking reading at an appropriate rate, say 100k/second, and hold the maximum value in a register. If a new ADC reading is higher than the value in the register, replace the register contents with the new reading. This could easily be equipped with a digital readout and a reset button, or it could respond to an external electronic reset line and provide its register value to a computer...lots of flexibility.

An analog method: there are many op amp peak detector circuits around. I'd look on the TI and Analog Devices and National Semiconductor websites for ideas, or look in op amp databooks. I particularly remember some good ones in the Burr-Brown data books (now part of TI). You can read out the value with an ADC or digital voltmeter; beware that the design has low droop rate. It should be possible with modern parts to get a value held to 1% accuracy for more than 10,000 times as long as it takes to acquire the peak value. The peak is held on a capacitor, and the ability to hold a value a long time is set by having a high ratio between leakage currents that affect the capacitor voltage and the current available to charge the cap to the peak value to be held. It's capturing the held value quickly enough to avoid droop problems in the analog circuit that make the digital solution particularly attractive. (Analog methods are probably more appropriate for capturing very short peaks.)

Obviously, you can make two such circuits to monitor the two inputs. And you can arrange gating to enable each, either digital or analog, only for a "window" of time around when you need the result.

Cheers, Tom

Thanks Tom. I forgot to mention, these are single pulses. I also thought of using an AD on a pic chip. If I have to go that far, I will add memory and display the waves on a laptop using my favorite graph program (Dplot). Then I could instruct the operator to save the files, and I could evaluate them at a latter date. I was hoping to avoid all that however. I was looking for a simple one chip solution just to capture peak amplitude, do some math and give a go - no go indication. I can assume the waves to be similar if the gain difference is where it should be. I found Analog devices makes the PKD01, I don't know if it can detect a single pulse - I will read the datasheet latter.

Study the trigger capabilities of your scope. Many modern ones offer an amazing plethora of possibilities. Runt pulse qualifiers, length or shape qualifiers, you name it.

What I sometimes do is built a simple circuit that resembles a little bit of a matched filter to the event I am looking for, run the signal also through a FET probe and a stack of HP lab amps and the trigger on whatever comes out of the filter.

Regards, Joerg

formatting link

In article , scada wrote: [....]

Is the go-no-go output all you need? or do you also want the actual height of the peak?

If you just want go-no-go, a comparitor and a latch would do.

Since LM339s come 4 to the pack and they make lots of latches per package, you could make a "2 bit" flash converter to drive a string of 4 LEDs to give, "horrid", "bad", "good" and "wow" indications.

-- kensmith@rahul.net forging knowledge

Hello Ken,

On the other side of the pond that would be "rather frightening", "not quite on par", "splendid" and "smashing".

Regards, Joerg

formatting link

Hmmm- a third possibility would be an analog-digital hybrid with a run-of-the-mill el-cheapo analog classic pre-conditioning the input for a quasi digital job similar to circuit shown here:

formatting link
. Infinite hold times with 0% error and easily adapted to provide an output comparison of two channels.

I like that! I will give it a try. Thanks...

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required