Operational Amplifier (5)

Consider the operational amplifier circuit above, where the OpAmp is connected to n n input voltage sources V i V_i each with a serial resistance R R . Find R f 2 R_{f2} in terms of n n and R f 1 R_{f1} such that the output voltage V o u t V_{\rm out} is the sum of the n n input voltages V i V_i .

Hint : Try part 4 before trying this problem.

R f 2 = ( n + 1 ) R f 1 R_{f2} = (n+1)R_{f1} R f 2 = ( n 1 ) R f 1 R_{f2} =(n-1) R_{f1} R f 2 = R f 1 R_{f2} = R_{f1} R f 2 = n R f 1 R_{f2} = nR_{f1}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Chew-Seong Cheong
Nov 11, 2020

We need to configure R f 1 R_{f1} and R f 2 R_{f2} such that V o u t = i = 1 n V i \displaystyle V_{\rm out} = \sum_{i=1}^n V_i . First let us find how V i n V_{\rm in} is related to V i V_i . We note that the current flowing into the non-inverting input (marked by "+") is zero, then we have:

V 1 V o u t R + V 2 V o u t R + V 3 V o u t R + + V n V o u t R = 0 i = 1 n V i n V i n = 0 V i n = 1 n i = 1 n V i \begin{aligned} \frac {V_1-V_{\rm out}}R + \frac {V_2-V_{\rm out}}R + \frac {V_3-V_{\rm out}}R + \cdots + \frac {V_n-V_{\rm out}}R & = 0 \\ \sum_{i=1}^n V_i - n V_{\rm in} & = 0 \\ \implies V_{\rm in} & = \frac 1n \sum_{i=1}^n V_i \end{aligned}

For a non-inverting OpAmp configuration, the closed loop voltage gain is given by:

A V = R f 2 + R f 1 R f 1 V o u t V i n = R f 2 + R f 1 R f 1 Putting V o u t = i = 1 n V i i = 1 n V i 1 n i = 1 n V i = R f 2 + R f 1 R f 1 and V i n = 1 n i = 1 n V i n = R f 2 + R f 1 R f 1 \begin{aligned} A_V & = \frac {R_{f2}+R_{f1}}{R_{f1}} \\ \frac {V_{\rm out}}{V_{\rm in}} & = \frac {R_{f2}+R_{f1}}{R_{f1}} & \small \blue{\text{Putting }V_{\rm out} = \sum_{i=1}^n V_i} \\ \frac {\sum_{i=1}^n V_i}{\frac 1n \sum_{i=1}^n V_i} & = \frac {R_{f2}+R_{f1}}{R_{f1}} & \small \blue{\text{and }V_{\rm in} = \frac 1n \sum_{i=1}^n V_i} \\ n & = \frac {R_{f2}+R_{f1}}{R_{f1}} \end{aligned}

Therefore the answer is R f 2 = ( n 1 ) R f 1 \boxed{R_{f2}=(n-1)R_{f1}} .

Charley Shi
Nov 11, 2020

This is my solution to pretty much parts 1-5 combined.

Designate the current leaving node A across R 1 , R 2 R_1,R_2 and R 3 R_3 be I 1 , I 2 I_1,I_2 and I 3 I_3 respectively. Also let the voltage at node A, which is equivalent to the voltage at the non-inverting input V + V^+ be V + V^+ . Using node-voltage analysis of node A:

By Kirchhoff's current law, since all the currents leave node A, and that no current flows into the OpAmp inputs, I 1 + I 2 + I 3 = 0 I_1+I_2+I_3=0 . The currents along each input branch in terms of the voltage V + V^+ :

  • I 1 = V + V 1 R 1 I_1 = \frac{V^+ - V_1}{R_1}
  • I 2 = V + V 2 R 2 I_2 = \frac{V^+ - V_2}{R_2}
  • I 3 = V + V 3 R 3 I_3 = \frac{V^+ - V_3}{R_3}

Then: V + V 1 R 1 + V + V 2 R 2 + V + V 3 R 3 = 0 \frac{V^+ - V_1}{R_1} + \frac{V^+ - V_2}{R_2} + \frac{V^+ - V_3}{R_3} = 0 V + ( 1 R 1 + 1 R 2 + 1 R 3 ) = V 1 R 1 + V 2 R 2 + V 3 R 3 V^+(\frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3}) = \frac{V_1}{R_1} + \frac{V_2}{R_2} + \frac{V_3}{R_3} V + = V 1 R 1 + V 2 R 2 + V 3 R 3 1 R 1 + 1 R 2 + 1 R 3 V^+ = \frac{\frac{V_1}{R_1} + \frac{V_2}{R_2} + \frac{V_3}{R_3}}{\frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3}}

Now that we know V + V^+ , we can easier calculate the output voltage, since it's just a normal non-inverting amplifier at this point. The gain for this is G = 1 + R f 2 R f 1 G = 1 + \frac{R_{f2}}{R_{f1}} , so the output voltage of the non-inverting summing amplifier is: V o u t = G × V + = ( 1 + R f 2 R f 1 ) ( V 1 R 1 + V 2 R 2 + V 3 R 3 1 R 1 + 1 R 2 + 1 R 3 ) V_{out}=G\times{V^+} = (1 + \frac{R_{f2}}{R_{f1}})(\frac{\frac{V_1}{R_1} + \frac{V_2}{R_2} + \frac{V_3}{R_3}}{\frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3}})

If we set all the input resistances equal to each other, so R 1 = R 2 = R 3 = R R_1 = R_2 = R_3 = R for some resistance R R :

V o u t = G ( V 1 + V 2 + V 3 R 3 R ) V_{out} = G(\frac{\frac{V_1+V_2+V_3}{R}}{\frac{3}{R}})

= G ( V 1 + V 2 + V 3 3 ) = G(\frac{V_1+V_2+V_3}{3})

Now this is looking a whole lot like summing together the input voltages!! Notice that in order to make V o u t = V 1 + V 2 + V 3 V_{out} = V_1 + V_2 + V_3 , the gain must cancel out the denominator, so the gain must equal the denominator, so G = 3 G = 3 . This means that 1 + R f 2 R f 1 = 3 R f 2 = 2 R f 1 1 + \frac{R_{f2}}{R_{f1}} = 3 \longrightarrow R_{f2} = 2 R_{f1} .

Notice that the denominator of the expression for V o u t V_{out} is equal to the number of input branches! This is because for every extra input branch, you get an extra 1 R \frac{1}{R} on the denominator. Now you can see that this is why you want the output resistors R f 2 R_{f2} and R f 1 R_{f1} to be equal if you have two input branches; the gain must be so R f 2 = R f 1 R_{f2} = R_{f1} .

We can generalize this for any number of input branches! Notice that the node voltage at node A is always V + V^+ , and no matter how many input branches you have, the sum of all the currents leaving node A through each input branch is 0 0 . The numerator of V + V^+ is the sum i = 1 n V i R i \displaystyle \sum_{i = 1}^{n}\frac{V_i}{R_i} while the denominator is the sum of the reciprocals of the input resistances i = 1 n 1 R i \displaystyle \sum_{i = 1}^{n}\frac{1}{R_i} . This allows us to generalize to:

V + = i = 1 n V i R i i = 1 n 1 R i V^+ = \frac{\displaystyle \sum_{i = 1}^{n}\frac{V_i}{R_i}}{\displaystyle \sum_{i = 1}^{n}\frac{1}{R_i}}

And therefore:

V o u t = G × i = 1 n V i R i i = 1 n 1 R i V_{out} = G\times{\frac{\displaystyle \sum_{i = 1}^{n}\frac{V_i}{R_i}}{\displaystyle \sum_{i = 1}^{n}\frac{1}{R_i}}}

Now if we set all the input resistances equal to each other, so R 1 = R 2 . . . = R R_1 = R_2 ...= R for some R R :

V o u t = G × i = 1 n V i R n R V_{out} = G\times{\frac{\frac{\displaystyle \sum_{i = 1}^{n}V_i}{R}}{\frac{n}{R}}}

= G × i = 1 n V i n = G\times{\frac{\displaystyle \sum_{i = 1}^{n}V_i}{n}}

As you can see, in order for V o u t = i = 1 n V i V_{out} = \displaystyle \sum_{i = 1}^{n}V_i (aka the sum of all input voltages) :

G = 1 + R f 2 R f 1 = n R f 2 = ( n 1 ) R f 1 G = 1 + \frac{R_{f2}}{R_{f1}} = n \longrightarrow \boxed{R_{f2} = (n-1)R_{f1}}

@Charley Feng , I have changed the images and edited the problem statements of all the five OpAmp problems. I used Print to redo the images.

Chew-Seong Cheong - 7 months ago

Thank you so much!

Charley Shi - 7 months ago

Log in to reply

You are welcome. I hope that you can learn up to do graphics.

Chew-Seong Cheong - 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...