AC – How to Convert a Square Wave into a Sine Wave

acsinesquare

I have been researching methods for converting a square wave into a sine wave, but I cannot seem to reach a conclusion. Is it possible to preserve the amplitude and frequency of a square wave when using a LPF with cascaded RC filters? I found the formula \$f_c = 1/(2\pi*R*C) \$ but this does not give me the output I need.

Below I tried using a 50 Hz input to get a 50 Hz output. Generally, my input is between the range of 50 – 60 Hz. I need to preserve amplitude because the AC signal will power some valves on a rocket that need 150 VAC w/ <= 1.5 amps.

Below are the specs for the valves.
valves specs.
schematic

simulation

Please explain.

Best Answer

Is it possible to preserve the amplitude

No, you can't preserve the amplitude because the fundamental sinewave “inside” a square wave is 27.3% higher in peak magnitude (or \$4/\pi\$ in proper terms). In other words, the fundamental sinewave hiding inside a square wave is not the same amplitude as the square wave: -

enter image description here

You could adjust it after filtering it out. You can get a pretty decent looking sinewave after a 6th order filter and then just use a potential divider (or pot), and an amplifier and adjust to give you the right amplitude.

If you want to try something simple for 50 Hz filtering try this 4th order filter: -

enter image description here

Notice that the RC value remains constant but, as you move from left to right, R increases by ten times in order to reduce loading effects from stages to the right. Capacitance reduces by 10 times. You might get away with 3 or 4 times so, I would usrge you to experiment in your favourite simulator.