Home Community

Sine Wave to TTL converter

Author Topic: Sine Wave to TTL converter  (Read 835 times)

Holt

  • Newbie
  • *
  • Posts: 15
  • Gender: Male
    • View Profile
Sine Wave to TTL converter
« on: February 22, 2012, 02:53:58 PM »
Hello everyone
I am in the machine buisness, and have my own old lathe in my little hobby workshop, i scored a Heidenhain glass scale at work, i want to use for digital readout of position, i have a program on the PC, but it only handles 0-5V TTL signals, and the scale put out sine wave.
I have been searching the net, but only found out i should use a Schmitt trigger to avoid noise.
I am not able to develop schematics, but i can build it if someone have the schematics.
Here is a scan of the sine wave from the Heidenhain mounting instructions



And here is what the output should look like


Hero999

  • Global Moderator
  • Electronics God
  • *****
  • Posts: 2602
    • View Profile
Re: Sine Wave to TTL converter
« Reply #1 on: February 22, 2012, 04:24:50 PM »
Yes, a Schmitt trigger will certainly work. If you use a comparator IC such as the LM311 or LM393 you can fine tune the hysteresis band to get the best results.