Operational amplifier applications

Last updated

This article illustrates some typical operational amplifier applications. A non-ideal operational amplifier's equivalent circuit has a finite input impedance, a non-zero output impedance, and a finite gain. A real op-amp has a number of non-ideal features as shown in the diagram[ clarification needed ], but here a simplified schematic notation is used, many details such as device selection and power supply connections are not shown. Operational amplifiers are optimised for use with negative feedback, and this article discusses only negative-feedback applications. When positive feedback is required, a comparator is usually more appropriate. See Comparator applications for further information.

Contents

Practical considerations

Operational amplifiers parameter requirements

In order for a particular device to be used in an application, it must satisfy certain requirements. The operational amplifier must

With these requirements satisfied, the op-amp is considered ideal, and one can use the method of virtual ground to quickly and intuitively grasp the 'behavior' of any of the op-amp circuits below.

Component specification

Resistors used in practical solid-state op-amp circuits are typically in the kΩ range. Resistors much greater than 1 MΩ cause excessive thermal noise and make the circuit operation susceptible to significant errors due to bias or leakage currents.

Input bias currents and input offset

Practical operational amplifiers draw a small current from each of their inputs due to bias requirements (in the case of bipolar junction transistor-based inputs) or leakage (in the case of MOSFET-based inputs).

These currents flow through the resistances connected to the inputs and produce small voltage drops across those resistances. Appropriate design of the feedback network can alleviate problems associated with input bias currents and common-mode gain, as explained below. The heuristic rule is to ensure that the impedance "looking out" of each input terminal is identical.

To the extent that the input bias currents do not match, there will be an effective input offset voltage present, which can lead to problems in circuit performance. Many commercial op-amp offerings provide a method for tuning the operational amplifier to balance the inputs (e.g., "offset null" or "balance" pins that can interact with an external voltage source attached to a potentiometer). Alternatively, a tunable external voltage can be added to one of the inputs in order to balance out the offset effect. In cases where a design calls for one input to be short-circuited to ground, that short circuit can be replaced with a variable resistance that can be tuned to mitigate the offset problem.

Operational amplifiers using MOSFET-based input stages have input leakage currents that will be, in many designs, negligible.

Power supply effects

Although power supplies are not indicated in the (simplified) operational amplifier designs below, they are nonetheless present and can be critical in operational amplifier circuit design.

Supply noise

Power supply imperfections (e.g., power signal ripple, non-zero source impedance) may lead to noticeable deviations from ideal operational amplifier behavior. For example, operational amplifiers have a specified power supply rejection ratio that indicates how well the output can reject signals that appear on the power supply inputs. Power supply inputs are often noisy in large designs because the power supply is used by nearly every component in the design, and inductance effects prevent current from being instantaneously delivered to every component at once. As a consequence, when a component requires large injections of current (e.g., a digital component that is frequently switching from one state to another), nearby components can experience sagging at their connection to the power supply. This problem can be mitigated with appropriate use of bypass capacitors connected across each power supply pin and ground. When bursts of current are required by a component, the component can bypass the power supply by receiving the current directly from the nearby capacitor (which is then slowly recharged by the power supply).

Using power supply currents in the signal path

Additionally, current drawn into the operational amplifier from the power supply can be used as inputs to external circuitry that augment the capabilities of the operational amplifier. For example, an operational amplifier may not be fit for a particular high-gain application because its output would be required to generate signals outside of the safe range generated by the amplifier. In this case, an external pushpull amplifier can be controlled by the current into and out of the operational amplifier. Thus, the operational amplifier may itself operate within its factory specified bounds while still allowing the negative feedback path to include a large output signal well outside of those bounds. [1]

Amplifiers

The first example is the differential amplifier, from which many of the other applications can be derived, including the inverting, non-inverting, and summing amplifier, the voltage follower, integrator, differentiator, and gyrator.

Differential amplifier (difference amplifier)

Op-Amp Differential Amplifier.svg

Amplifies the difference in voltage between its inputs.

The name "differential amplifier" must not be confused with the "differentiator", which is also shown on this page.
The "instrumentation amplifier", which is also shown on this page, is a modification of the differential amplifier that also provides high input impedance.

The circuit shown computes the difference of two voltages, multiplied by some gain factor. The output voltage

Or, expressed as a function of the common-mode input Vcom and difference input Vdif:

the output voltage is

In order for this circuit to produce a signal proportional to the voltage difference of the input terminals, the coefficient of the Vcom term (the common-mode gain) must be zero, or

With this constraint [nb 1] in place, the common-mode rejection ratio of this circuit is infinitely large, and the output

where the simple expression Rf / R1 represents the closed-loop gain of the differential amplifier.

The special case when the closed-loop gain is unity is a differential follower, with

Inverting amplifier

Op-Amp Inverting Amplifier.svg

An inverting amplifier is a special case of the differential amplifier in which that circuit's non-inverting input V2 is grounded, and inverting input V1 is identified with Vin above. The closed-loop gain is Rf / Rin, hence

.

The simplified circuit above is like the differential amplifier in the limit of R2 and Rg very small. In this case, though, the circuit will be susceptible to input bias current drift because of the mismatch between Rf and Rin.

To intuitively see the gain equation above, calculate the current in Rin:

then recall that this same current must be passing through Rf, therefore (because V = V+ = 0):

A mechanical analogy is a seesaw, with the V node (between Rin and Rf) as the fulcrum, at ground potential. Vin is at a length Rin from the fulcrum; Vout is at a length Rf. When Vin descends "below ground", the output Vout rises proportionately to balance the seesaw, and vice versa. [2]

As the negative input of the op-amp acts as a virtual ground, the input impedance of this circuit is equal to Rin.

Non-inverting amplifier

Op-Amp Non-Inverting Amplifier.svg

A non-inverting amplifier is a special case of the differential amplifier in which that circuit's inverting input V1 is grounded, and non-inverting input V2 is identified with Vin above, with R1R2. Referring to the circuit immediately above,

.

To intuitively see this gain equation, use the virtual ground technique to calculate the current in resistor R1:

then recall that this same current must be passing through R2, therefore:

Unlike the inverting amplifier, a non-inverting amplifier cannot have a gain of less than 1.

A mechanical analogy is a class-2 lever, with one terminal of R1 as the fulcrum, at ground potential. Vin is at a length R1 from the fulcrum; Vout is at a length R2 further along. When Vin ascends "above ground", the output Vout rises proportionately with the lever.

The input impedance of the simplified non-inverting amplifier is high:

where Zdif is the op-amp's input impedance to differential signals, and AOL is the open-loop voltage gain of the op-amp (which varies with frequency), and B is the feedback factor (the fraction of the output signal that returns to the input). [3] [4] In the case of the ideal op-amp, with AOL infinite and Zdif infinite, the input impedance is also infinite. In this case, though, the circuit will be susceptible to input bias current drift because of the mismatch between the impedances driving the V+ and V op-amp inputs.

The feedback loop similarly decreases the output impedance:

where Zout is the output impedance with feedback, and ZOL is the open-loop output impedance. [4]

Voltage follower (unity buffer amplifier)

Op-Amp Unity-Gain Buffer.svg

Used as a buffer amplifier to eliminate loading effects (e.g., connecting a device with a high source impedance to a device with a low input impedance).

(realistically, the differential input impedance of the op-amp itself (1 MΩ to 1 TΩ), multiplied by the open-loop gain of the op-amp)

Due to the strong (i.e., unity gain) feedback and certain non-ideal characteristics of real operational amplifiers, this feedback system is prone to have poor stability margins. Consequently, the system may be unstable when connected to sufficiently capacitive loads. In these cases, a lag compensation network (e.g., connecting the load to the voltage follower through a resistor) can be used to restore stability. The manufacturer data sheet for the operational amplifier may provide guidance for the selection of components in external compensation networks. Alternatively, another operational amplifier can be chosen that has more appropriate internal compensation.

The input and output impedance are affected by the feedback loop in the same way as the non-inverting amplifier, with B=1. [3] [4]

Summing amplifier

Op-Amp Summing Amplifier.svg

A summing amplifier produces the negative of the sum of several (weighted) voltages:

Instrumentation amplifier

Op-Amp Instrumentation Amplifier.svg

Combines very high input impedance, high common-mode rejection, low DC offset, and other properties used in making very accurate, low-noise measurements

Oscillators

Wien bridge oscillator

Wien bridge classic osc.svg

Produces a very low distortion sine wave. Uses negative temperature compensation in the form of a light bulb or diode.

Filters

Operational amplifiers can be used in construction of active filters, providing high-pass, low-pass, band-pass, reject and delay functions. The high input impedance and gain of an op-amp allow straightforward calculation of element values, allowing accurate implementation of any desired filter topology with little concern for the loading effects of stages in the filter or of subsequent stages. However, the frequencies at which active filters can be implemented is limited; when the behavior of the amplifiers departs significantly from the ideal behavior assumed in elementary design of the filters, filter performance is degraded.

Comparator

Op-Amp Comparator.svg

An operational amplifier can, if necessary, be forced to act as a comparator. The smallest difference between the input voltages will be amplified enormously, causing the output to swing to nearly the supply voltage. However, it is usually better to use a dedicated comparator for this purpose, as its output has a higher slew rate and can reach either power supply rail. Some op-amps have clamping diodes on the input that prevent use as a comparator. [5]

Integration and differentiation

Inverting integrator

The integrator is mostly used in analog computers, analog-to-digital converters and wave-shaping circuits. A simple version is:

Op-Amp Integrating Amplifier.svg

Assuming ideal elements, it integrates the input signal (multiplied by ) over a time interval from t0 to t1, yielding an output voltage at time t = t1 of:

where Vout(t0) is the capacitor's initial voltage at time t = t0. In other words, the circuit's output voltage changes over the time interval by an amount proportional to the time integral of the input voltage:

This circuit can be viewed as an active low-pass electronic filter with a single pole at DC (i.e., where ).

Its practicality is limited by a significant problem: unless the capacitor is periodically discharged, the output voltage will eventually drift outside of the operational amplifier's operating range. This can be due to any combination of:

The following slightly more complex circuit can ameliorate the second two problems, and in some cases, the first as well, but has a limited bandwidth of integration:

Op-Amp Integrating Amplifier balanced.svg

Here, the feedback resistor Rf provides a discharge path for capacitor Cf. The series resistor Rn at the non-inverting input alleviates input bias current and common-mode problems, provided it is set to the parallel resistance of Ri || Rf:

Op amp integrator § Practical circuit explains the output drift adds a small finite DC error voltage:

Because the circuit is a first-order low-pass filter with a flat response up to its cutoff frequency , it only functions as an integrator for frequencies significantly higher than that cutoff.

Inverting differentiator

Op-Amp Differentiating Amplifier.svg

Assuming ideal elements, this circuit differentiates the signal (multiplied by ) over time:

where and are functions of time.

The transfer function of the inverting differentiator has a single zero in the origin (i.e., where angular frequency ). The high-pass characteristics of a differentiating amplifier can lead to stability challenges when the circuit is used in an analog servo loop (e.g., in a PID controller with a significant derivative gain). In particular, as a root locus analysis would show, increasing feedback gain will drive a closed-loop pole toward marginal stability at the DC zero introduced by the differentiator.

Synthetic elements

Inductance gyrator

Op-Amp Gyrator.svg

Simulates an inductor (i.e., provides inductance without the use of a possibly costly inductor). The circuit exploits the fact that the current flowing through a capacitor behaves through time as the voltage across an inductor. The capacitor used in this circuit is geometrically smaller than the inductor it simulates, and its capacitance is less subject to changes in value due to environmental changes. Applications where this circuit may be superior to a physical inductor are simulating a variable inductance or simulating a very large inductance.

This circuit is of limited use in applications relying on the back EMF property of an inductor, as this effect will be limited in a gyrator circuit to the voltage supplies of the op-amp.

Negative impedance converter (NIC)

Op-Amp Negative Impedance Converter.svg

Creates a resistor having a negative value for any signal generator.

In this case, the ratio between the input voltage and the input current (thus the input resistance) is given by

In general, the components , , and need not be resistors; they can be any component that can be described with an impedance.

Non-linear

Precision rectifier

Op-Amp Precision Rectifier.svg

The voltage drop VF across the forward-biased diode in the circuit of a passive rectifier is undesired. In this active version, the problem is solved by connecting the diode in the negative feedback loop. The op-amp compares the output voltage across the load with the input voltage and increases its own output voltage with the value of VF. As a result, the voltage drop VF is compensated, and the circuit behaves very nearly as an ideal (super) diode with VF = 0 V.

The circuit has speed limitations at high frequency because of the slow negative feedback and due to the low slew rate of many non-ideal op-amps.

Exponential output

Op-Amp Exponential Amplifier.svg

The Shockley diode equation gives the current–voltage relationship for an ideal semiconductor diode:

where is the saturation current, is the forward voltage across the diode, and is the thermal voltage (approximately 26 mV at room temperature). When the diode's current is approximately proportional to an exponential function:

The opamp's inverting input is virtually grounded and ideally draws no current. Thus, the output voltage will be:

The output voltage is thus approximately an exponential function of the input voltage :

This implementation does not consider temperature stability and other non-ideal effects.

Logarithmic output

Since the logarithm is the inverse function of exponentiation, the exponential output circuit described above can be rearranged by swapping the diode into the feedback path of the opamp to form a log amplifier:

Op-Amp Logarithmic Amplifier.svg

Since the opamp's inverting input is virtually grounded and ideally draws no current, and the current flowing from the source through the resistor and diode is:

where is the current through the diode, which as described earlier is approximately:

Solving for gives an approximately logarithmic relationship between the input voltage and the output voltage :

This implementation does not consider temperature stability and other non-ideal effects.

Piecewise linear output

Piecewise linear functions can approximate non-linear functions as a series of connected line segments. Gain compression circuits (like sine or square root) use diodes or transistors to switch between line segments with slopes determined by resistive voltage divider networks. Expansion circuits may be built using a compression circuit as feedback of an opamp. [7]

Temperature-compensated compression

Temperature-compensated three-segment compression function Piecewise linear temperature compensated amplifier.gif
Temperature-compensated three-segment compression function

The schematic shown for a "temperature-compensated three-segment compression function" [8] [9] produces a gain compression transfer function where each subsequent line segment reduces the steepness of the transfer function. For small signals, transistors Q2 and Q3 produce very little base current, and so the circuit's gain is determined just by the feedback resistance of R2 divided by the input resistance of R1. Once the output voltage exceeds around 2 V (whose exact voltage depends on R3 and R4 and the -15 V supply), then Q3 saturates, so the circuit's feedback resistance is determined by R4 in parallel with R2, reducing the gain. As the output voltage increases more, Q2 will saturate, so the circuit's gain is again reduced by the additional inclusion of R6 into the parallel feedback resistance. Temperature-compensation transistors Q4 and Q1 cancel out the temperature-dependent p–n junction base-emitter forward voltage drop of Q3 and Q2. Additional linear segments can be added using additional copies of the resistor-transistor-resistor chains (like the chain R5, Q2, R6 or the chain R3, Q3, R4 but with different values) in a similar manner to further compress the input. This circuit's compression function only works for negative inputs. Diode D1 forces the output to zero if a positive input is applied.

Other applications

See also

Notes

  1. If you think of the left-hand side of the relation as the closed-loop gain of the inverting input, and the right-hand side as the gain of the non-inverting input, then matching these two quantities provides an output insensitive to the common-mode voltage of and .

Related Research Articles

<span class="mw-page-title-main">Operational amplifier</span> High-gain voltage amplifier with a differential input

An operational amplifier is a DC-coupled electronic voltage amplifier with a differential input, a (usually) single-ended output, and an extremely high gain. Its name comes from its original use of performing mathematical operations in analog computers.

<span class="mw-page-title-main">Negative-feedback amplifier</span> Type of electronic amplifier

A negative-feedback amplifier is an electronic amplifier that subtracts a fraction of its output from its input, so that negative feedback opposes the original signal. The applied negative feedback can improve its performance and reduces sensitivity to parameter variations due to manufacturing or environment. Because of these advantages, many amplifiers and control systems use negative feedback.

<span class="mw-page-title-main">Instrumentation amplifier</span> Electronic amplifier, a circuit component

An instrumentation amplifier is a type of differential amplifier that has been outfitted with input buffer amplifiers, which eliminate the need for input impedance matching and thus make the amplifier particularly suitable for use in measurement and test equipment. Additional characteristics include very low DC offset, low drift, low noise, very high open-loop gain, very high common-mode rejection ratio, and very high input impedances. Instrumentation amplifiers are used where great accuracy and stability of the circuit both short- and long-term are required.

<span class="mw-page-title-main">Differential amplifier</span> Electrical circuit component which amplifies the difference of two analog signals

A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs and and one output , in which the output is ideally proportional to the difference between the two voltages:

<span class="mw-page-title-main">Schmitt trigger</span> Electronic comparator circuit with hysteresis

In electronics, a Schmitt trigger is a comparator circuit with hysteresis implemented by applying positive feedback to the noninverting input of a comparator or differential amplifier. It is an active circuit which converts an analog input signal to a digital output signal. The circuit is named a trigger because the output retains its value until the input changes sufficiently to trigger a change. In the non-inverting configuration, when the input is higher than a chosen threshold, the output is high. When the input is below a different (lower) chosen threshold the output is low, and when the input is between the two levels the output retains its value. This dual threshold action is called hysteresis and implies that the Schmitt trigger possesses memory and can act as a bistable multivibrator. There is a close relation between the two kinds of circuits: a Schmitt trigger can be converted into a latch and a latch can be converted into a Schmitt trigger.

<span class="mw-page-title-main">Buffer amplifier</span> Electronic amplifier, a circuit component

In electronics, a buffer amplifier is a unity gain amplifier that copies a signal from one circuit to another while transforming its electrical impedance to provide a more ideal source. This "buffers" the signal source in the first circuit against being affected by currents from the electrical load of the second circuit and may simply be called a buffer or follower when context is clear.

The Sallen–Key topology is an electronic filter topology used to implement second-order active filters that is particularly valued for its simplicity. It is a degenerate form of a voltage-controlled voltage-source (VCVS) filter topology. It was introduced by R. P. Sallen and E. L. Key of MIT Lincoln Laboratory in 1955.

A current mirror is a circuit designed to copy a current through one active device by controlling the current in another active device of a circuit, keeping the output current constant regardless of loading. The current being "copied" can be, and sometimes is, a varying signal current. Conceptually, an ideal current mirror is simply an ideal inverting current amplifier that reverses the current direction as well, or it could consist of a current-controlled current source (CCCS). The current mirror is used to provide bias currents and active loads to circuits. It can also be used to model a more realistic current source.

In electronics, a virtual ground is a node of a circuit that is maintained at a steady reference potential, without being connected directly to the reference potential. In some cases the reference potential is considered to be that of the surface of the earth, and the reference node is called "ground" or "earth" as a consequence.

<span class="mw-page-title-main">Current source</span> Electronic component delivering stable electric current regardless of voltage

A current source is an electronic circuit that delivers or absorbs an electric current which is independent of the voltage across it.

The open-loop gain of an electronic amplifier is the gain obtained when no overall feedback is used in the circuit.

The negative impedance converter (NIC) is an active circuit which injects energy into circuits in contrast to an ordinary load that consumes energy from them. This is achieved by adding or subtracting excessive varying voltage in series to the voltage drop across an equivalent positive impedance. This reverses the voltage polarity or the current direction of the port and introduces a phase shift of 180° (inversion) between the voltage and the current for any signal generator. The two versions obtained are accordingly a negative impedance converter with voltage inversion (VNIC) and a negative impedance converter with current inversion (INIC). The basic circuit of an INIC and its analysis is shown below.

<span class="mw-page-title-main">Current divider</span> Simple linear circuit

In electronics, a current divider is a simple linear circuit that produces an output current (IX) that is a fraction of its input current (IT). Current division refers to the splitting of current between the branches of the divider. The currents in the various branches of such a circuit will always divide in such a way as to minimize the total energy expended.

<span class="mw-page-title-main">Operational transconductance amplifier</span> Electrical circuit

The operational transconductance amplifier (OTA) is an amplifier that outputs a current proportional to its input voltage. Thus, it is a voltage controlled current source (VCCS). Three types of OTAs are single-input single-output, differential-input single-output, and differential-input differential-output, however this article focuses on differential-input single-output. There may be an additional input for a current to control the amplifier's transconductance.

In electronics, a differentiator is a circuit that outputs a signal approximately proportional to the rate of change of its input signal. Because the derivative of a sinusoid is another sinusoid whose amplitude is multiplied by its frequency, a true differentiator that works across all frequencies can't be realized. Real circuits such as a 1st-order high-pass filter are able to approximate differentiation at lower frequencies by limiting the gain above its cutoff frequency. An active differentiator includes an amplifier, while a passive differentiator is made only of resistors, capacitors and inductors.

<span class="mw-page-title-main">Bipolar transistor biasing</span> Process necessary for BJT amplifiers to work correctly

Bipolar transistors must be properly biased to operate correctly. In circuits made with individual devices, biasing networks consisting of resistors are commonly employed. Much more elaborate biasing arrangements are used in integrated circuits, for example, bandgap voltage references and current mirrors. The voltage divider configuration achieves the correct voltages by the use of resistors in certain patterns. By selecting the proper resistor values, stable current levels can be achieved that vary only little over temperature and with transistor properties such as β.

A log amplifier, which may spell log as logarithmic or logarithm and which may abbreviate amplifier as amp or be termed as a converter, is an electronic amplifier that for some range of input voltage has an output voltage approximately proportional to the logarithm of the input:

The Miller theorem refers to the process of creating equivalent circuits. It asserts that a floating impedance element, supplied by two voltage sources connected in series, may be split into two grounded elements with corresponding impedances. There is also a dual Miller theorem with regards to impedance supplied by two current sources connected in parallel. The two versions are based on the two Kirchhoff's circuit laws.

<span class="mw-page-title-main">Transimpedance amplifier</span> Amplifier that converts current to voltage

In electronics, a transimpedance amplifier (TIA) is a current to voltage converter, almost exclusively implemented with one or more operational amplifiers. The TIA can be used to amplify the current output of Geiger–Müller tubes, photo multiplier tubes, accelerometers, photo detectors and other types of sensors to a usable voltage. Current to voltage converters are used with sensors that have a current response that is more linear than the voltage response. This is the case with photodiodes where it is not uncommon for the current response to have better than 1% nonlinearity over a wide range of light input. The transimpedance amplifier presents a low impedance to the photodiode and isolates it from the output voltage of the operational amplifier. In its simplest form a transimpedance amplifier has just a large valued feedback resistor, Rf. The gain of the amplifier is set by this resistor and because the amplifier is in an inverting configuration, has a value of -Rf. There are several different configurations of transimpedance amplifiers, each suited to a particular application. The one factor they all have in common is the requirement to convert the low-level current of a sensor to a voltage. The gain, bandwidth, as well as current and voltage offsets change with different types of sensors, requiring different configurations of transimpedance amplifiers.

The operational amplifier integrator is an electronic integration circuit. Based on the operational amplifier (op-amp), it performs the mathematical operation of integration with respect to time; that is, its output voltage is proportional to the input voltage integrated over time.

References

  1. Paul Horowitz and Winfield Hill, The Art of Electronics . 2nd ed. Cambridge University Press, Cambridge, 1989 ISBN   0-521-37095-7
  2. Basic Electronics Theory, Delton T. Horn, 4th ed. McGraw-Hill Professional, 1994, p. 342343.
  3. 1 2 "Benefits of Negative Feedback". HyperPhysics. Retrieved 2018-05-07.
  4. 1 2 3 Simpson, Robert E. (1987). "7.2 Negative Voltage Feedback". Introductory electronics for scientists and engineers (2nd ed.). Boston: Allyn and Bacon. p. 291. ISBN   0205083773. OCLC   13821010. input impedance of an amplifier without negative feedback is increased by adding negative feedback. .. .. output impedance .. is decreased ..
  5. "Op Amps used as Comparators—is it okay? - the Signal - Archives - TI E2E support forums".
  6. "AN1177 Op-Amp Precision Design: DC Errors" (PDF). Microchip. 2 January 2008. Archived (PDF) from the original on 2019-07-09. Retrieved 26 December 2012.
  7. Kuhn, Kenneth A. (2004-03-24). "Piecewise Linear Circuits" (PDF).
  8. "AN-4 Monolithic Op Amp—the Universal Linear Component" (PDF). Texas Instruments . April 1968.
  9. "National Semiconductor Application Note 31" (PDF). September 2002.

Further reading