AbiAxo
DE
← Electrical Engineering · Step 12 of 14

Electronic componentsAdvanced course (eA)ca. 90 min

Operational amplifier: comparator and amplifier

In short

An ideal operational amplifier amplifies the difference of its input voltages infinitely and draws no input current. Without feedback it works as a comparator, with positive feedback as a Schmitt trigger, and with negative feedback only the external resistors set the gain, for example \(V=-\frac{R_2}{R_1}\) for the inverting amplifier.

Your goal: You can state the properties of the ideal operational amplifier, calculate comparator and Schmitt trigger with their switching thresholds, and derive, size and check for clipping the inverting and non-inverting amplifier, the voltage follower and the summing amplifier.

Practise now

Helpful first: DC networks: Kirchhoff, voltage divider, Thévenin source, Bipolar transistor and MOSFET as a switch

The ideal operational amplifier

An operational amplifier (op-amp, German OPV) has a non-inverting input (+), an inverting input (−) and an output. It is usually supplied symmetrically, for example with \(\pm15\,\text{V}\). It amplifies the differential voltage \(U_D=U_+-U_-\):

\[U_a=V_0\cdot U_D,\qquad\text{limited to }-U_{\text{sat}}\le U_a\le+U_{\text{sat}}.\]

The output limit \(U_{\text{sat}}\) is a little below the supply voltage, at \(\pm15\,\text{V}\) about \(\pm13\,\text{V}\). For calculations you assume the ideal op-amp:

Propertyideal
Open-loop gain \(V_0\)infinite
Input resistanceinfinite, so \(I_+=I_-=0\)
Output resistancezero

This gives the two calculation rules for circuits with negative feedback (feedback from the output to the − input): first, no current flows into the inputs. Second, the op-amp adjusts its output so that \(U_D=0\) – both inputs are at the same potential. Without negative feedback the second rule does not apply.

Comparator and Schmitt trigger

Comparator: without feedback, because of the huge gain even a tiny difference is enough, and the output jumps to a limit:

\[U_+\gt U_-\Rightarrow U_a=+U_{\text{sat}},\qquad U_+\lt U_-\Rightarrow U_a=-U_{\text{sat}}.\]

If a reference voltage is at the − input and the signal at the + input, the output reports whether the signal is above the reference. But if a noisy signal fluctuates around the reference, the output jumps back and forth many times (chattering).

Inverting Schmitt trigger: the signal \(U_e\) is at the − input. From the output, \(R_1\) leads to the + input, and from there \(R_2\) to ground. This is positive feedback: the + input receives part of the output voltage,

\[U_+=\pm U_{\text{sat}}\cdot\frac{R_2}{R_1+R_2}.\]

So there are two switching thresholds \(U_{\text{ein/aus}}=\pm U_{\text{sat}}\frac{R_2}{R_1+R_2}\). If \(U_e\) rises above the upper threshold, the output flips to \(-U_{\text{sat}}\); only when \(U_e\) falls below the lower threshold does it flip back. The distance between the thresholds is called hysteresis, \(\Delta U=2U_{\text{sat}}\frac{R_2}{R_1+R_2}\). Noise smaller than the hysteresis no longer causes chattering.

Inverting amplifier

The signal reaches the − input via \(R_1\); from the output, \(R_2\) (feedback resistor) leads back to the − input; the + input is at ground.

  1. Because \(U_D=0\), the − input is also at \(0\,\text{V}\): it is a virtual ground.
  2. Current through \(R_1\): \(I=\frac{U_e}{R_1}\).
  3. Since no current flows into the input, the same current flows through \(R_2\): \(U_a=0-I\cdot R_2\).

\[U_a=-\frac{R_2}{R_1}\cdot U_e,\qquad V=-\frac{R_2}{R_1}.\]

The minus sign means a phase shift of \(180^\circ\). The gain depends only on the resistors, not on \(V_0\) – that is the point of negative feedback. The input resistance of the circuit is only \(R_1\), because the source works against the virtual ground.

Check for clipping: if \(|V\cdot U_e|\gt U_{\text{sat}}\), \(U_a\) stays at the limit and a sine signal is cut off.

Non-inverting amplifier and voltage follower

The signal is directly at the + input. The output has negative feedback via a voltage divider of \(R_2\) (output to −) and \(R_1\) (− to ground).

  1. Because \(U_D=0\), \(U_-=U_e\).
  2. The voltage divider gives \(U_-=U_a\cdot\frac{R_1}{R_1+R_2}\).
  3. Setting equal: \(U_a=U_e\cdot\frac{R_1+R_2}{R_1}\).

\[V=1+\frac{R_2}{R_1}.\]

The gain is positive (no phase inversion) and at least 1. Because the signal is directly at the + input, the input resistance is very large; the source is hardly loaded.

Voltage follower (Impedanzwandler, impedance converter): the output is connected directly to the − input (\(R_2=0\), no \(R_1\)). Then \(V=1\), so \(U_a=U_e\). It does not amplify but decouples: a high-impedance source, such as a sensor, is not loaded, and the load gets the voltage from the low-impedance output.

Summing amplifier

In the inverting summing amplifier several input resistors \(R_1, R_2,\dots\) lead to the − input (virtual ground), plus a feedback resistor \(R_f\). Each input feeds in its current \(\frac{U_i}{R_i}\) independently of the others, and all currents flow together through \(R_f\):

\[U_a=-R_f\left(\frac{U_1}{R_1}+\frac{U_2}{R_2}+\dots\right).\]

With \(R_1=R_2=R_f\), \(U_a=-(U_1+U_2)\); with different resistors each input is weighted differently. Applications are mixing desks, adding an offset voltage to a measurement signal, and simple digital-to-analogue converters.

CircuitGainFeedback
Comparatoroutput jumps to \(\pm U_{\text{sat}}\)none
Schmitt triggertwo thresholds, hysteresispositive feedback
inverting\(-\frac{R_2}{R_1}\)negative feedback
non-inverting\(1+\frac{R_2}{R_1}\)negative feedback
voltage follower\(1\)negative feedback
Worked example

An op-amp is supplied with \(\pm15\,\text{V}\) (\(U_{\text{sat}}=\pm13\,\text{V}\)). Given are \(R_1=4{,}7\,\text{k}\Omega\) and \(R_2=47\,\text{k}\Omega\).

  1. Calculate the gain and output voltage of the inverting amplifier for \(U_e=0{,}3\,\text{V}\) and \(U_e=1{,}5\,\text{V}\).
  2. A non-inverting amplifier is built with the same resistors. Calculate \(V\) and \(U_a\) for \(U_e=0{,}3\,\text{V}\) and compare the input resistances.
  1. \(V=-\frac{47\,\text{k}\Omega}{4{,}7\,\text{k}\Omega}=-10\). For \(U_e=0{,}3\,\text{V}\): \(U_a=-10\cdot0{,}3\,\text{V}=-3\,\text{V}\). For \(U_e=1{,}5\,\text{V}\) the formula would give \(-15\,\text{V}\). That is beyond the output limit: the output stays at \(-13\,\text{V}\), the amplifier is clipping.
  2. \(V=1+\frac{47}{4{,}7}=11\), \(U_a=11\cdot0{,}3\,\text{V}=3{,}3\,\text{V}\), without sign inversion. The inverting amplifier has the input resistance \(R_1=4{,}7\,\text{k}\Omega\); in the non-inverting one the source is directly at the + input, and its input resistance is infinite for the ideal op-amp.
Remember

With negative feedback \(U_D=0\) and there is no input current – this gives \(V=-\frac{R_2}{R_1}\), \(V=1+\frac{R_2}{R_1}\) and the summing amplifier; without feedback the op-amp only compares, and with positive feedback it gets a hysteresis as a Schmitt trigger.

Typical exam mistakes

Practice

Flashcards

Calculation rules of the ideal op-amp with negative feedback
No current into the inputs, and \(U_D=U_+-U_-=0\).
Inverting amplifier
\(V=-\frac{R_2}{R_1}\), input resistance \(R_1\), the − input is a virtual ground.
Non-inverting amplifier
\(V=1+\frac{R_2}{R_1}\), no phase inversion, very large input resistance.
Voltage follower
\(V=1\); decouples a high-impedance source from a load.
Switching thresholds of the inverting Schmitt trigger
\(\pm U_{\text{sat}}\cdot\frac{R_2}{R_1+R_2}\); hysteresis \(2U_{\text{sat}}\frac{R_2}{R_1+R_2}\).
Inverting summing amplifier
\(U_a=-R_f\left(\frac{U_1}{R_1}+\frac{U_2}{R_2}+\dots\right)\)
Comparator
no feedback: \(U_+\gt U_-\Rightarrow+U_{\text{sat}}\), otherwise \(-U_{\text{sat}}\).

Exam-style task 14 marks

The invented company Messgerätebau Tollendorf conditions the signal of a temperature sensor. The sensor delivers \(0\) to \(0{,}5\,\text{V}\) but has a large internal resistance. All op-amps are supplied with \(\pm15\,\text{V}\) (\(U_{\text{sat}}=\pm13\,\text{V}\)) and regarded as ideal. Marks are given in BE (Bewertungseinheiten, marks).

  1. Justify why a voltage follower is used directly after the sensor. (2 BE)
  2. The signal is to be amplified to \(0\) to \(5\,\text{V}\) without inverting the sign. Choose the circuit, derive its gain formula from the properties of the ideal op-amp and determine \(R_2\) for \(R_1=10\,\text{k}\Omega\). Calculate \(U_a\) for \(U_e=0{,}32\,\text{V}\). (5 BE)
  3. Due to a fault the sensor delivers \(1{,}5\,\text{V}\). State the output voltage and justify. (2 BE)
  4. A second signal, a sine voltage with amplitude \(5\,\text{V}\) and superimposed noise of about \(\pm0{,}3\,\text{V}\), is to be converted into a square-wave signal. Explain why a simple comparator with reference \(0\,\text{V}\) is unsuitable for this, and calculate the switching thresholds of an inverting Schmitt trigger with \(R_1=120\,\text{k}\Omega\) and \(R_2=10\,\text{k}\Omega\). Assess whether the noise still triggers false switching. (5 BE)
Show solution
  1. If a following amplifier loads the sensor, part of the sensor voltage drops across its large internal resistance, and the measurement signal is distorted. The voltage follower has a very large input resistance (practically no current flows) and passes on the same voltage \((V=1)\) at low impedance.
  2. You choose the non-inverting amplifier. Derivation: with negative feedback \(U_D=0\), so \(U_-=U_e\). No current flows into the − input, so \(R_2\) and \(R_1\) form an unloaded voltage divider: \(U_-=U_a\frac{R_1}{R_1+R_2}\). Setting equal gives \(V=\frac{U_a}{U_e}=1+\frac{R_2}{R_1}\). Required is \(V=\frac{5\,\text{V}}{0{,}5\,\text{V}}=10\), so \(\frac{R_2}{R_1}=9\) and \(R_2=90\,\text{k}\Omega\). \(U_a=10\cdot0{,}32\,\text{V}=3{,}2\,\text{V}\).
  3. By calculation it would be \(10\cdot1{,}5\,\text{V}=15\,\text{V}\). That is above the output limit, so the output stays at about \(13\,\text{V}\). In this case the measurement is no longer proportional.
  4. Near the zero crossing the noisy signal crosses the reference several times. The comparator flips every time, and instead of one edge several short pulses appear. Schmitt trigger: \(U_{\text{ein/aus}}=\pm13\,\text{V}\cdot\frac{10\,\text{k}\Omega}{130\,\text{k}\Omega}=\pm1{,}0\,\text{V}\), hysteresis \(2{,}0\,\text{V}\). After switching, the noise would have to move the signal back by the whole hysteresis; with \(\pm0{,}3\,\text{V}\), i.e. at most \(0{,}6\,\text{V}\) peak to peak, that cannot happen. A clean square wave between \(+13\,\text{V}\) and \(-13\,\text{V}\) results, inverted with respect to the input signal and slightly delayed, because switching only happens at \(\pm1{,}0\,\text{V}\).
Report a mistake

Reporting needs JavaScript. Or write to us via Contact.

Step 12 of 14

A topic counts as learned once you get 80% of the practice right first time.

Practise now Back to the path