I have a sine wave of 100 mV and 50 Hz. I want to design a circuit that converts this sine wave into a square wave as shown in a figure.
Asked
Active
Viewed 1,057 times
7
-
You would almost certainly want to add hysteresis to your solution for a low level low frequency application – sstobbe Apr 12 '19 at 15:04
-
Does the OP want a 50% duty cycle? in which case, some zero-crossing is needed. – analogsystemsrf Apr 12 '19 at 21:23
1 Answers
17
The easiest way to do this would be to use a comparator.
Picture taken from linked site
All you have to do is set your Vref level to where you want your square wave to trigger. When the sine wave crosses the Vref level, the comparator output will go high. As it approaches it again and goes below the Vref level, the comparator output goes low.
You will then get yourself a square wave.
Be aware the example shown in the graphic is of a non-inverting comparator. An inverting comparator works with the same principle, but the output is inverted

MCG
- 11,809
- 4
- 34
- 70
-
The OP seems to want to cut off the negative half of the sine wave, so a diode may be needed at the input. – JimmyB Apr 12 '19 at 15:01
-
3@JimmyB Not if you pick a comparator that can handle a negative input voltage. – Hearth Apr 12 '19 at 15:03
-