Converting a square wave into a fixed DC signal?

Thread Starter

syee10

Joined Mar 26, 2010
59
Is there any method to convert a square wave signal into a fixed DC signal? Say if i have a +1V high level and 0V low level square wave, how am i going to convert it to a DC level +1V signal? Will it works if using a low pass filter? If yes, how's the circuit looks like and what is the value of the component?
 

tom66

Joined May 9, 2009
2,595
You could use a peak detector. One possible circuit is below.

The reset switch makes the output zero which means the circuit will wait for a new amplitude. Alternately you could trigger the reset with the rising edge of the input, so it reset on each rising edge and automatically set its amplitude.
 

Attachments

tom66

Joined May 9, 2009
2,595
Thanks for your reply.The opamp can be ua741?
What power supplies do you have, ±15V, or only 0-5V?

Personally, I'd advise you use an LM358, which is a dual op-amp, or an LM324, a quad op-amp. Both are cheap and massive improvements over the 741 series.
 
Top