Close

Sinewave shaping

A project log for The (analog) 1Hz sinewave generator

The most ridiculous, overengineered, stupid way to create a 1Hz sinewave using OP-amps ..... (and a timer)

phil-weaselPhil Weasel 07/11/2025 at 07:190 Comments

So to give the sinewave the final touch, i use an integrator to generate a sine wave.

However, using only an integrator will make the output run away since the slightest offset will also get integrated over time.

The solution: a PID controller..... well ... just an I-Controller

The output follows the input and wont exceed this. By playing around with the integration factor (making R60 a potentiometer), i get this:

BEAUTIFUL !

Also as a comparison, without the preshaping:

You can see, the sinewave is slightly skewed to the left side..... NOT BEAUTIFUL

Discussions