Create square, triangle or sinus wave.
This is only to showcase the principle!
Normaly pwm and operational ampifiers are used to create the desired wave form.
For a square wave close only the top switch.
For a triangle wave close the middle switch, too.
For a sinus wave close all three switches.
This creates a loop tuned close to the resonance frequency and is used to deform the triangle wave.
The values were not calculated and only determined by trial and error. Both the triangle and the sinus waves have small errors.
Also no load can be added. It would need an operational amplifier to seperate the two circuits.
But i wanted to show how the different waveforms can be created with basic components.