Operational Amplifier Circuits
Overview
This demonstration shows several op-amp circuits, including a multivibrator, integrator and differentiator.
Model
Multivibrator with comparator
Fig. 1 Multivibrator
The multivibrator amplifier is an astable oscillator which generates rectangular waveforms at the output using an RC network at the inverting input and a voltage divider at the non-inverting input of the amplifier.
This configuration switches between its two unstable states, with the time spent in each state controlled by the charging or discharging of the capacitor through a resistor.
Initially, the capacitor starts charging up to \(V_{\mathrm{out}}\). Once the voltage at the inverting terminal becomes equal to or greater than the voltage at the non-inverting terminal, \(\lambda V_{\mathrm{out}}\), the op-amp output clamps to the negative supply rail, thus causing the capacitor charge go to zero and start charging to the new value of \(V_{\mathrm{out}}\). This goes on until the negative supply rail reaches the \(-\lambda V_{\mathrm{out}}\) threshold, and the output changes state again, reinitiating the cycle. This produces a steady, continuous square wave pulse train at the output.
The RC time constant determines the rate of capacitor charge/discharge, or the period of the output waveform, and the voltage divider network sets the reference voltage level, \(\lambda V_{\mathrm{out}}\).
A small capacitance \(C_{\mathrm{in}}\) is required for decoupling of negative feedback.
Formula derivation
From voltage divider,
General charging equation for a capacitor with an original charge:
For \(V=V_{\mathrm{out}}\) and \(q_{\mathrm{0}}=\lambda CV_{\mathrm{out}}\),
This result is also obtained for the discharging period of the operation, assuming the magnitudes of the rails are equal, meaning \(t_{\mathrm{charge}}=t_{\mathrm{discharge}}\).
Multivibrators are used in a variety of applications where square waves or timed intervals are required, such as a flashing light.
Inverting integrator
Fig. 2 Inverting integrator
An integrator produces an output voltage, which is proportional to the integral of the input voltage.
Formula derivation
Because of virtual ground and infinite impedance of the input terminals of the op-amp, all of the input current flows through R and C:
An application for this circuit could be integrating water flow and measuring the total quantity of water that has passed by the flowmeter.
Inverting differentiator
Fig. 3 Inverting differentiator
The differentiator op-amp configuration produces an output voltage that is proportional to the rate of change of the input voltage by measuring the current through a capacitor:
The right-hand side of the capacitor is held at \(0\) volts due to the virtual ground effect. Therefore, current through the capacitor is solely due to change in the input voltage. A steady input voltage will not cause a current through C, but a changing input voltage will. The faster the voltage changes, the larger the magnitude of the output voltage.
Formula derivation
Because of virtual ground and the infinite impedance of an op-amp, all current flowing through the capacitor also flows through R1:
(the very small resistance R2 is needed for convergence purposes)
An application for this circuit could be monitoring the rate of change of temperature in an environment where too high or too low of a temperature rise is detrimental and would, thus, trigger an alarm or a notification using additional circuitry on the output.
Simulation
Multivibrator with comparator
Increase the capacitance value to \(100\,\mu\mathrm{F}\) and observe the increase in the amount of time it takes to charge up the capacitor, as shown in Fig. 4. Increase the left-most resistor to \(25\,\mathrm{k}\Omega\) and observe the change in the output voltage switching frequency.
Fig. 4 Multivibrator circuit simulations comparison
Inverting integrator
Set the amplitude and frequency of the AC voltage source to \(0\) and the DC voltage source to \(1\,\mathrm{V}\). The output should look like the one in Fig. 5. If a fixed voltage is applied to the input of an integrator, the output voltage will be a ramp with a constant slope of the negative input voltage multiplied by a factor of 1/RC.
Fig. 5 Inverting integrator circuit simulations comparison
Inverting differentiator
Set the amplitude and frequency of the AC voltage source to \(0\) and the initial capacitor voltage to \(1\,\mathrm{V}\). Observe the output after there is no change in the input voltage, as shown in Fig. 6. After the capacitor C discharges, do you see what you expected? If the input voltage is constant, dv/dt is zero and the output voltage is zero.
Fig. 6 Inverting differentiator circuit simulations comparison
Conclusion
Operational amplifiers are a core part of analog electronics and can perform many different operations depending on the passive component configurations around them. For more op-amp examples, visit the Analog Electronics Academy page on Plexim’s website.