The Summing OPAMP Amplifier
 Boris Poupet
 bpoupet@hotmail.fr

3533Views
 0 Comments
Introduction
In most of our previous tutorials concerning operational amplifiers, only one input was applied to either the inverting or noninverting opamp’s input. This new article will deal with a configuration known as the summing amplifier which gives an output that is proportional to a weighted sum of the multiple inputs present.
The inputs can either be applied to the inverting or noninverting branches which give two possible configurations that will be separately presented in the first and second sections. They are commonly referred as the inverting summing amplifier and noninverting summing amplifier and we will see what are their differences and similarities.
In a third section, the dual configuration of the summing amplifier, the subtracting amplifier, is investigated.
Inverting summing amplifier
In Figure 1 we see the general circuit for an inverting summing amplifier:
In this configuration, N inputs V_{1},V_{2},…,V_{N} are applied to the inverting input of the opamp through different resistor R_{1},R_{2},…,R_{N}. The output V_{out} is feedbacked to the inverting branch through a resistor R_{F}, the noninverting input is grounded.
We can apply Millman’s theorem to V_{–} in order to demonstrate the output relation of this circuit:
With the hypothesis of the ideal opamp, i_{+}=i_{–}=0, and V_{+}=V_{–}=0, which leads to the output relation of the inverting summing amplifier:
It is interesting to note that if we equalize all the input resistors with the feedback resistor, R_{1}=R_{2}=…=R_{N}=R_{F}, we obtain a simplified version for Equation 1:
In this case, the sum is not weighted anymore, and the inverting summing amplifier adds the inputs negatively as the output signal phase is in opposition with the inputs.
Noninverting summing amplifier
The noninverting summing amplifier is a similar configuration to the inverting summing amplifier. However, the inputs here are applied to the noninverting input while the inverting branch is connected to both the opamp’s output through a feedback resistor R_{F} and grounded through a resistor R_{G}.
We can apply Millman’s theorem to V_{+} in order to demonstrate the output relation of this circuit:
Since the voltage gain V_{out}/V_{in}=V_{out}/V_{+} of a noninverting configuration is given by 1+(R_{F}/R_{G}), we can conclude that the general relation for the noninverting summing amplifier output is given by Equation 3:
The expression of V_{+} can be extremely simplified if we pose R=R_{1}=R_{2}=…=R_{N}, we get indeed:
Moreover, we can also pose (1+R_{F}/R_{G})=N in order to get a direct sum of the input voltages:
With these two conditions, we can see that the output voltage is a direct sum of the input signals as the sum is not weighted and no phase difference is present.
To conclude this section we can draw a little comparison between the inverting and noninverting summing configurations. The advantage of the inverting configuration is that even in the general case, the output is simply expressed as a function of the different resistor and input values.
In a noninverting configuration, the output is always in phase with the inputs which save the trouble to use an inverting buffer to rectify the signal. Moreover, the noninverting configuration presents the property of having a much higher input impedance which is an advantage to properly inject the desired voltages from a source (microphone for example) to the inputs of the opamp.
However, we have seen that the output voltage is a simple weighted sum only under a condition of equality between all the resistors in the circuit.
Subtracting amplifier
If the inputs are both applied to the inverting and noninverting pins of an opamp, a subtracting configuration is realized such as presented in Figure 3:
The voltage V_{+} can be expressed by a voltage divider formula:
The voltage V_{– }is expressed thanks to Millman’s theorem:
After reminding that V_{+}=V_{–}, a few steps of simplification lead to the general output expression of the subtracting amplifier:
We can simply show by equalizing the two factors that if the condition R_{F}R_{2}=R_{G}R_{1} is met, the output formula can be simplified to Equation 6:
This condition can be achieved by equalizing all the resistances: R_{1}=R_{2}=R_{G}=R_{F}. In that case, since R_{F}=R_{1}, Equation 6 can be reduced to a direct subtraction V_{out}=V_{2}V_{1.}
Applications
Audio mixer
Consider an inverting summing amplifier with three inputs such as presented in Figure 4:
The resistors here are replaced by potentiometers in order for a user to directly control the output signal.
This type of configuration can be used in the audio domain where different pitches can be separately processed through an amplifier before being added together with possibly different prefactors.
Typically, the frequency ranges are given by:
 low: 20 Hz to 500 Hz
 mid: 500 Hz to 6 kHz
 high: 6 kHz to 20 kHz
According to Equation 1, the output signal of this configuration is given by:
We can clearly identify that the potentiometer R_{F} controls the global gain of the output, increasing or decreasing its value will simultaneously affect all the frequencies. On another hand, the potentiometers R_{1}, R_{2}, R_{3} only affect respectively the low, mid, and high pitches and they will enable the user to balance or unbalance certain frequencies.
We can note that if we want the output to be in phase with the different inputs, a simple inverting buffer can be used to rectify it.
Digital to Analogue Converter (DAC)
A DAC is a summing amplifier based circuit that converts binary data (0 and 1) into an analog signal (a real number). An example of this circuit with four binary inputs known as a fourbit DAC and is presented in Figure 5:
The values of the resistor are not chosen randomly, their values always need to double from the previous branch. This ensures a proper conversion from a binary number to a decimal number.
As an example, consider the binary fourbit input 1101 (V_{1}=1 ; V_{2}=1 ; V_{3}=0 ; V_{4}=1). According to Equation 1, the output is given by:
This validity of this result can be confirmed when we manually convert the same input to a decimal number: (1101)_{decimal}=(1×2^{3})+(1×2^{2})+(0×2^{1})+(1×2^{0})=13.
In practice, the circuit shown in Figure 5 can only be implemented up to a certain number of bits depending on the precision of the resistors that must exactly double their value for each added bit. An alternative circuit known as the R2R Ladder DAC is preferred for higher binary numbers.
Conclusion
A summing amplifier can either be based on an inverting or noninverting configuration. Despite the high input impedance and inphase output signal that the noninverting summing amplifier can provide, the inverting summing amplifier is more common as it’s output is a simple weighted sum.
Indeed, the noninverting summing output is a simple weighted or direct sum of the inputs only when a condition of equality between all the resistors in the circuit is met.
After presenting and detailing these two summing configurations, a third section has presented the subtracting amplifier which slightly differs from the summing amplifiers and is used to subtract two or more signals by applying them both on the inverting and noninverting pins.
Finally, in the last section, we present the possible applications of the summing amplifiers. Indeed, an inverting summing amplifier can be used as an audio mixer in order to separately control each input importance, the inputs can, for example, be frequency ranges or different instruments outputs.
We also show that summing amplifiers can be used as a simple digital to analog converters when the resistance value for each added bit is doubled.