Converting a square wave into a fixed DC signal?

Discussion in 'General Electronics Chat' started by syee10, Mar 23, 2011.

  1. syee10

    Thread Starter Member

    Mar 26, 2010
    59
    0
    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?
     
  2. tom66

    Senior Member

    May 9, 2009
    2,613
    214
    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.
     
  3. syee10

    Thread Starter Member

    Mar 26, 2010
    59
    0
    Thanks for your reply.The opamp can be ua741?
     
  4. tom66

    Senior Member

    May 9, 2009
    2,613
    214
    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.
     
  5. syee10

    Thread Starter Member

    Mar 26, 2010
    59
    0
    i got it already. Thanks! =)
     
Loading...