I hate to rain on some peoples' parades, but here are the results of integrating a triangle. The "sine" wave still has a lot of harmonics, because the integrator is just single pole lowpass filter with the pole (ideally) at zero frequency. Still, it looks pretty good, at least visually.
EDIT: Oops, forgot to post the time domain waveforms! It will be done shortly.
EDIT: OK, they've been added. I changed the cap from 1uF to 0.25uF to get the peak to peak amplitudes approximately the same, so the FFT scaling of the sine wave will be different, but the relative harmonic content will be the same.
EDIT: Note that a simple RC integrator, with the pole (corner frequency) a couple of octaves past the fundamental, also makes a good-looking sine wave. It is severely attenuated, though, compared to the operational integrator, which has adjustable gain (just vary the R or C). Note that, in the real world, you need a big (value) resistor across the cap to keep the op amp from going to one of the rails, and a cap in series with the resistor is also useful, and generally OK for this application.
I still think a simple series resistor and an LC tank is the way to go.

Reply With Quote