The Electrician
- Joined Oct 9, 2007
- 2,970
When integrating, one often needs to include a constant of integration. In the case of crutschow's circuit, that is the voltage on the integration capacitor. If that voltage is set to the proper value when the input triangle is applied, the process will take off as desired.
But, there's an easier way. Just use a leaky integrator. The resistor across the integration capacitor provides the leak and after the circuit runs for a while the initial transient dies out and the output of the integrator no longer tries to head to infinity.
Here are 3 approximations to a sine wave, in order of increasing goodness. They show the sine wave in blue, and the approximation in red. First a truncated triangle wave. The minimum harmonic distortion is 4.47%
Next, a parabola which is what crutschow's integrator produces when fed with a triangle wave. The minimum distortion is 3.8%
Finally, the slightly overdriven differential amplifier, which gives a hyperbolic tangent (tanh) approximation. The minimum distortion is 1.36%, but with an irritating cusp on the top of the wave:
But, there's an easier way. Just use a leaky integrator. The resistor across the integration capacitor provides the leak and after the circuit runs for a while the initial transient dies out and the output of the integrator no longer tries to head to infinity.
Here are 3 approximations to a sine wave, in order of increasing goodness. They show the sine wave in blue, and the approximation in red. First a truncated triangle wave. The minimum harmonic distortion is 4.47%
Next, a parabola which is what crutschow's integrator produces when fed with a triangle wave. The minimum distortion is 3.8%
Finally, the slightly overdriven differential amplifier, which gives a hyperbolic tangent (tanh) approximation. The minimum distortion is 1.36%, but with an irritating cusp on the top of the wave: