Skip to main content

Sine wave to square wave - Schmitt trigger

I need to transform a bipolar sine wave (varies from -5V to 5V, 1kHz) to square wave for further digital processing (0 to 3.3V), as in the image:

Sine wave to 3.3V square wave

Important thing is, that this sine wave can't be distorted, so there can't be any limiting diodes at input.

I have got only 3.3V and 5V voltage supplies. An obvious way to go is an op-amp working as Schmitt trigger, but I'm not sure it can handle -5V at input with single positive 3.3V.

Should I reduce amplitude on input by using resistor divider? And perhaps add some offset voltage for signal to fit the input voltage range of op-amp?

przeski
  • 104
  • 1
  • 1
  • 8