0.5Vrms Sine Wave to TTL / 5v Square Wave

Discussion in 'General Electronics Chat' started by xSkGx, Mar 21, 2011.

  1. xSkGx

    Thread Starter New Member

    Mar 21, 2011
    4
    0
    Hi,

    Firstly I have to say that I have basic knowledge about electronic (I'm studding Computer engineering) I know what is and how to use many logic circuits, resistors, capacitors, etc...

    Well my problem is that I have a 1Hz 0.5Vrms sine wave and I need convert it into a 5v square wave (TTL). I saw many documentation online and I took some ideas but the main problem is converting 0.5Vrms into 5V.

    I think that the sine to square can be done with a Schmitt trigger but I think that I need to amplify the sine signal first.

    Any hint?

    Thanks.
     
  2. davebee

    Well-Known Member

    Oct 22, 2008
    539
    46
    Use a comparator, an op amp optimized for this exact purpose. An LM311 is an older comparator that I've used a number of times with good success. It will switch on millivolt signal levels and can be designed to give a TTL output (the output is open-collector).
     
  3. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    LM393 is a cheap dual comparator. LM311 is a single comparator with higher sink current capability, which is good if you want to drive an LED or a relay. LM393 is fine if you just need logic level conversion.
    This circuit has about 24mV hysteresis, to prevent multiple output transitions when the input crosses zero.
    If you don't use the other comparator in the package, connect both of its inputs to ground.

    EDIT: As L. Chung pointed out below, the input capacitor polarity needs to be swapped.
     
    Last edited: Mar 22, 2011
  4. eblc1388

    Senior Member

    Nov 28, 2008
    1,542
    102
    Personally I would reverse the polarity of the input capacitor C1.
     
  5. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    Personally, you are correct!:D I skrood up.
     
  6. xSkGx

    Thread Starter New Member

    Mar 21, 2011
    4
    0
    Thx for all the info. I'm reading about comparators and how to use it. Let's see if I don't burn out them :)
     
Loading...