how to make a TTL Square wave from a sine wave source

Discussion in 'General Electronics Chat' started by whywhy68, Jul 28, 2008.

  1. whywhy68

    Thread Starter Member

    Jun 11, 2008
    i was told that comparator was able to do the job.

    is there any ciruit using comparator to generate a 50hz square wave from a 50hz sine wave source?
  2. dileepchacko

    Active Member

    May 13, 2008

    You can go for Schmitt trigger, it will help you to derive square wave from sin wave with the same frequency. Schmitt trigger nothing but a comparator, which will compare zero voltage. If you are using op-amp for Schmitt trigger "note that" give only +5VDC for powering the op-amp, because you required TTL logic. Here is a useful link for more information.
  3. Wendy


    Mar 24, 2008
    What is the application? If you have a local transformer it will provide the basic AC signal to convert, otherwise you're going to have to tap into the AC line somewhere, not a good option, it can be dangerous, but doable.
  4. alvarocanivell

    New Member

    Dec 12, 2008
    Watch out as well for:

    - the resistance adaptation to the source, as the switching output may influence the input levels

    - the slew rate of your OA, which will determine the maximum frequency of your generated square wave

    - if your OA does not work on 0VDC to 5VDC but on -5VDC to +5VDC, place some diodes for TTL adaption