Hi,
I'm currently trying to design a square-wave to sine converter. So far this design works. You can see the vactrols are being controlled by high voltage but this is just for the simulation so I can enter the ohm value I want in the voltage source
What I want to achieve is:
- The input signal is a DC square wave
- I need a DC sine as output
- voltages between 0 and 5V
- needs to work for 0-20hz
You can ignore the voltage divider and 1st opamp at the begining. This is so I can attenuate the input signal with a potentiometer.

When building this circuit, I'll control the resistors with a potentiometer instead. The problem I have with this is that I need 4 knobs (or 1 4-gang knob) and now I'm thinking of adding another opamp so I would need to add 2 more knobs. This doesn't feel like it's the right solution. Vactrols would work but they are expensive. Digital pots would work but that complicates things a lot.
I'm thinking that maybe I could pin down the resistor values and vary the capacitors instead. But I'm not too sure if that's possible.
I've seen people replace a capacitor with two capacitors in series with a voltage source in the middle. Something tells me this could work but I'm not sure why. Can anyone tell me if that's the right direction to go? or is my whole design flawed based on what I need to achieve?
Thank you.
I'm currently trying to design a square-wave to sine converter. So far this design works. You can see the vactrols are being controlled by high voltage but this is just for the simulation so I can enter the ohm value I want in the voltage source
What I want to achieve is:
- The input signal is a DC square wave
- I need a DC sine as output
- voltages between 0 and 5V
- needs to work for 0-20hz
You can ignore the voltage divider and 1st opamp at the begining. This is so I can attenuate the input signal with a potentiometer.

When building this circuit, I'll control the resistors with a potentiometer instead. The problem I have with this is that I need 4 knobs (or 1 4-gang knob) and now I'm thinking of adding another opamp so I would need to add 2 more knobs. This doesn't feel like it's the right solution. Vactrols would work but they are expensive. Digital pots would work but that complicates things a lot.
I'm thinking that maybe I could pin down the resistor values and vary the capacitors instead. But I'm not too sure if that's possible.
I've seen people replace a capacitor with two capacitors in series with a voltage source in the middle. Something tells me this could work but I'm not sure why. Can anyone tell me if that's the right direction to go? or is my whole design flawed based on what I need to achieve?
Thank you.