Any simple sine wave generator?

AnalogKid

Joined Aug 1, 2013
12,158
Below is the LTspice sim of a 4-stage, phase-shift Bubba oscillator which uses a quad opamp package,

The diodes soft-clip the signal to limit the amplitude of U1, and the three following RC stages, along with providing the needed phase-shifts, act as low-pass filters to give a low distortion output:
Plot of node 1 to show the clipping?

ak
 

crutschow

Joined Mar 14, 2008
38,540
Plot of node 1 to show the clipping?
Here you go:

Plotted V(1) (U1 output) referenced to Vb to show the symmetrical, very soft, clipping (to minimize distortion).
The small glitches I think are op amp crossover distortion, which is common in the LM324 op amp, (thus I added R10 to minimize that distortion in the output stage).

1778636978021.png
 
Last edited:

crutschow

Joined Mar 14, 2008
38,540
Not familiar with them.
How is the internet delivered to your house.
BTW how can distortion in early stages be relevant? Here is the plot of my nodes but the green is the output wich is the only that matters
Because the distortion is not perfectly removed by the low-pass filtering effect of the RC phase networks.

Incidentally you appear to be using a different circuit then mine, as I see no clipping.

Show your circuit along with the plots.
 

Thread Starter

vandveuser16776

Joined Feb 21, 2026
230
ROGERS is Canadian provider. Comes with cable (optical) but everybody has the same issue. Weather affects the Internet speed

For the plot, I used the RC chain that I posted #11. But thanks to your sim, I discovered yet another hidden gem in LTspice: Error log!.
 

crutschow

Joined Mar 14, 2008
38,540
Comes with cable (optical) but everybody has the same issue. Weather affects the Internet speed
The weather wouldn't affect the cable speed, so it must effect however Rodgers is getting their internet signal from the rest of the world (perhaps terrestrial microwave).
 
Last edited:

crutschow

Joined Mar 14, 2008
38,540
cannot get LTC show me the "harmonic distortion" How do I do it?
See sim below and note the addition of the .four command and changes to the transient command:
Also R7 and R8 are not needed in this circuit.

I pulled the exact Fourier frequency to use from the FFT plot using the FFT command in the plot View pulldown.

1778692911856.png
1778692966983.png
 
Last edited:

AnalogKid

Joined Aug 1, 2013
12,158
Thanks! So JFET is the approved sub for light bulb according to TI.
I'm not sure about "approved", but it is one that has been around for a long time and is well understood. It does have a problem that a light bulb does not, and that is its frequency response.

After the output sinewave is rectified and filtered to produce the gain element control voltage, there is some ripple at the output frequency on top of the dc control signal. That small ripple modulates the FET's channel resistance at the output frequency, so the resistance is changing constantly during each cycle, which means that the gain of the opamp circuit is changing. This shows up in the output signal as harmonic distortion. A light bulb filament's thermal mass has a way longer time constant than the sinewave cycle period. The circuit wanders up to its nominal operating amplitude much more slowly than the FET circuit, but with less distortion (all other circuit parameters being equal).

ak
 

Thread Starter

vandveuser16776

Joined Feb 21, 2026
230
A light bulb filament's thermal mass has a way longer time constant than the sinewave cycle period. The circuit wanders up to its nominal operating amplitude much more slowly than the FET circuit, but with less distortion (all other circuit parameters being equal).
ak
Hmm. Makes perfect sense. I do not think there is any way to slow down the response time of JFET. The issue with this Wien Bridge is it is too fussy. the two resistors that have 1:2 ratio must be exactly 1:2 or there will be the ugliest output that resembles nothing. Or the oscillation fades to zero. I have already started working on @crutschow circuit. That insignificant distortion is not going to be an issue in my project. I also thought about a light-sealed LED+LDR but that one will probably fail somehow.
In addition, i am looking for something straightforward so, a beginner or hobbyist can tackle.
 
Top