Learning Content and Theses

Platform for digital learning at HSHL

Summing Amplifier

The summing amplifier is an op-amp circuit with two input voltage sources. One of the input sources is the sensor voltage. This is where you simply connect your sensor. The other is the shift voltage. You have to generate the shift voltage somewhere in your circuit. In the lab, you simply use a power supply for this. We will not look in more detail at how this voltage is generated.

Summing amplifier: voltages U_1 and U_2 via R_1 and R_2 at the minus input, feedback via R_3

First, I derive the transfer behaviour of the circuit. As a reminder: Ud = 0 V and no currents flow into the inputs of the op-amp. So we can set up the following equations:

\[ \begin{gathered} -u_1 + u_{R1} - U_d = 0\,\mathrm{V} \\[6pt] -u_2 + u_{R2} - U_d = 0\,\mathrm{V} \\[6pt] U_d + u_{R3} + u_{\mathrm{Aus}} = 0\,\mathrm{V} \\[6pt] \text{With } U_d = 0\,\mathrm{V} \text{ it follows that} \\[6pt] u_1 = u_{R1} = R_1 i_{R1} \\[6pt] i_{R1} = \frac{u_1}{R_1} \\[6pt] u_2 = u_{R2} = R_2 i_{R2} \\[6pt] i_{R2} = \frac{u_2}{R_2} \\[6pt] u_{\mathrm{Aus}} = -u_{R3} = -R_3 i_{R3} \\[6pt] \text{Node equation: } i_{R3} = i_{R1} + i_{R2} = \frac{u_1}{R_1} + \frac{u_2}{R_2} \\[6pt] u_{\mathrm{Aus}} = -R_3 i_{R3} = -R_3 \cdot \left(\frac{u_1}{R_1} + \frac{u_2}{R_2}\right) = -\frac{R_3}{R_1} u_1 - \frac{R_3}{R_2} u_2 \\[6pt] \text{With } R_1 = R_2 \text{ it follows that:} \\[6pt] u_{\mathrm{Aus}} = -\frac{R_3}{R_1} \cdot (u_1 + u_2) = v \cdot (u_1 + u_2) \end{gathered} \]

The formula of the summing amplifier only applies if you set the values of the resistors R1 = R2 equal.

The mathematical operation in the brackets is carried out first. So this circuit first adds two voltages. Then it multiplies by the factor v. The gain v is negative, so the sum of the two signals is inverted once.

We cannot form a transfer function of the circuit. We can only do this with function blocks that have one input and one output. This circuit has two inputs. This is the case with every circuit that shifts and amplifies. It is not a problem; we can calculate the output voltage even without a transfer function.

This circuit is used as follows: since the gain is negative, the signal must be completely negative after shifting. A completely negative signal that is inverted by the gain is completely positive afterwards.

\[ \begin{gathered} \text{Shifted signal purely negative: } u_S + U_V = [-x\,\mathrm{V} \ldots 0\,\mathrm{V}] \\[6pt] \text{Negative gain } v\text{: minus times minus gives plus} \\[6pt] (u_S + U_V) \cdot v = [0\,\mathrm{V} \ldots y\,\mathrm{V}] \text{ purely positive} \\[6pt] \text{choose } v \text{ so that } U_{\mathrm{ADC,Max}} = U_{\mathrm{Ref}} \\[6pt] v = \frac{y}{-x} \end{gathered} \]

Example

The sensor signal of the PT-100 on a current source with I0 = 10 mA lies in the range uS = [1 V … 1.4 V] over the measuring range T = [0 °C … 100 °C]. The reference voltage of the ADC is UREF,ADC = 3 V.

To adapt this signal to the ADC with a summing amplifier, we first have to make the signal completely negative. The upper limit should be 0 V. To do this, we have to add the shift voltage UV = −1.4 V to the sensor signal.

\[ \begin{gathered} U_{\mathrm{Aus,OP}} = -\frac{R_3}{R_1} \cdot (u_1 + u_2) = v \cdot (u_1 + u_2) \\[6pt] u_1 = u_S;\ u_2 = U_V \\[6pt] u_S = [1\,\mathrm{V} \ldots 1.4\,\mathrm{V}] \\[6pt] U_V = -1.4\,\mathrm{V} \\[6pt] U_{\mathrm{Ref}} = 3\,\mathrm{V} \\[6pt] u_S + U_V = [1\,\mathrm{V} \ldots 1.4\,\mathrm{V}] - 1.4\,\mathrm{V} = [-0.4\,\mathrm{V} \ldots 0\,\mathrm{V}] \\[6pt] v = \frac{U_{\mathrm{Ref}}}{(u_S + U_V)_{\mathrm{Min}}} = \frac{3\,\mathrm{V}}{-0.4\,\mathrm{V}} = -7.5 \end{gathered} \]
PT100 on the current source I_0; summing amplifier adds sensor voltage U_S and shift voltage U_V
\[ \begin{gathered} v = -\frac{R_3}{R_1} \rightarrow \text{e.g. } R_3 = 7.5\,\mathrm{k\Omega} \text{ and } R_1 = 1\,\mathrm{k\Omega} \\[6pt] \text{Other pairs of values with the same ratio } v \text{ also work.} \end{gathered} \]

In the circuit above, the label R1 has been used twice for different resistors. This is meant to signal that the values of the resistors are equal. They are different resistors with equal values. This labelling is not common and not entirely clean, but it shows immediately that both values are equal.

The shift voltage is drawn as a voltage source. It can be implemented with a power supply, for example. The output of the sensor (PT-100 with current source) is connected where the other voltage source was used in the circuit diagram of the summing amplifier.

The characteristic of the output voltage of the op-amp versus temperature looks like this:

Shifted sensor signal u_S + U_V between −0.4 V and 0 V and output voltage u_Aus,OP from 3 V at 0 °C to 0 V at 100 °C
Aus = out (output)

The measuring range of the temperature now fits the input voltage range of the ADC optimally. The ADC digitises the voltage. In the example, we assume an 8-bit ADC.

\[ \text{8-bit ADC: Zahl} = (2^8 - 1) \cdot \frac{u_{\mathrm{Aus,OP}}}{U_{\mathrm{Ref}}} \]
Number of the 8-bit ADC falls from 255 to 0; a rise from 0 to 255 is desired

The characteristic of the numbers at the output of the ADC versus temperature is shown in red in the figure above. The characteristic has an offset and a slope error. Ideally, we would like the blue characteristic. We still have to carry out a digital correction in the digital signal processing.

The offset in the characteristic is the value at the temperature T = 0 °C. The offset number is 255. The offset is corrected by subtracting the offset number from all numbers output by the ADC. The slope is −255 / 100 °C. For an 8-bit ADC with UREF = 3 V, the following applies:

\[ \begin{gathered} \text{8-bit ADC: Zahl} = (2^8 - 1) \cdot \frac{u_{\mathrm{Ein,ADC}}}{U_{\mathrm{Ref}}} \\[6pt] \text{Zahl}_{\mathrm{Offset}} = 255 \\[6pt] \text{Slope: } -\frac{255}{100\,°\mathrm{C}} \\[6pt] \text{Target slope: } \frac{100}{100\,°\mathrm{C}} \\[6pt] \text{Slope correction factor: } m' = \frac{\text{target slope}}{\text{slope}} = -\frac{100}{255} \\[6pt] \text{Digital correction: } T_{\mathrm{Berechnet}} = (\text{Zahl} - \text{Zahl}_{\mathrm{Offset}}) \cdot m' \\[6pt] T_{\mathrm{Berechnet}} = (\text{Zahl} - 255) \cdot \left(-\frac{100}{255}\right) \cdot °\mathrm{C} \end{gathered} \]
Number of the ADC and the temperature T_Berechnet calculated from it, which rises from 0 °C to 100 °C as desired
Zahl = number
\[ \begin{gathered} \text{Check at } T = 40\,°\mathrm{C} \\[6pt] U_S = 10\,\mathrm{mA} \cdot \left(100\,\Omega + 0.4\,\frac{\Omega}{°\mathrm{C}} \cdot 40\,°\mathrm{C}\right) = 1.16\,\mathrm{V} \\[6pt] u_{\mathrm{Aus,OP}} = U_{\mathrm{Ein,ADC}} = (1.16\,\mathrm{V} - 1.4\,\mathrm{V}) \cdot (-7.5) = 1.8\,\mathrm{V} \\[6pt] \text{Zahl} = 255 \cdot \frac{1.8\,\mathrm{V}}{3\,\mathrm{V}} = 153 \\[6pt] T_{\mathrm{Berechnet}} = (153 - 255) \cdot \left(-\frac{100}{255}\right) \cdot °\mathrm{C} = 40\,°\mathrm{C} \text{ (correct)} \end{gathered} \]

Simulation

Download course as PDF

The PDF contains all pages of the course. Interactive content is only available on the website.