Help with Op-Amps: Solve for V_out & Resistor Relationships

  • Thread starter ENGRstudent
  • Start date
In summary: Then it's just a summing junction.In summary, the engineering department brought in a guest lecturer to handle Electronics 1 and Electronics 2 during the absence of the original professor who normally teaches the courses. The guest lecturer only covered BJT's in Electronics 1, while the resident instructor is now teaching BJT's and FETs. The homework problem given by the guest lecturer involves finding an algebraic expression for V_out in a circuit with two op-amps, and determining the relationship between the resistors for the output to be proportional to the difference between V1 and V2. A discussion on op-amp linear and non-linear modes is mentioned, and possible approaches to solving the problem
  • #1
ENGRstudent
26
0
So, here's the deal:

The professor that normally handles Electronics 1 and Electronics 2 went on sabbatical for a year, so the engineering department brought in a guest lecturer to handle it during his absence. The original electronics professor would do op-amps in electronics 1, and BJT's and FETs in electronics 2. The guest lecturer came in and did only BJT's in electronics 1, and now that the resident instructor is back from sabbatical, he's doing BJT's and FETs.

We told him that we hadn't covered a single practical op-amp yet, so he's been trying to use or lab time to condense an entire semester of op-amps into 3 hour periods on wednesday afternoons.

He gave us the attached homework problem on op-amps. What he told us was:

The CMRR of Op-Amps 1 & 2 are equal and are finite.
A) What is the expression for V_out
B) What is the relationship between the various resistors for the output to be proportional to the difference of V1 and V2?

V_out is taken at the node right above R1, as shown by the oscilloscope.

I'm not entirely certain how to approach this problem. In all the examples we've worked in class, I've never seen an op-amp circuit connected this way.

Any help you could give would be greatly appreciated.

No values were given; he wants the answer in algebraic form.
 

Attachments

  • op-amp_CKT.JPG
    op-amp_CKT.JPG
    17.9 KB · Views: 416
Engineering news on Phys.org
  • #2
I suggest you read the "art of electronics" by Horowithz, in just a few pages you can learn everything there is to op-amp.

The golden rule is: The ouput of an op-amp will force the potential difference between 2 inputs to be zero.

If the op-amp can't accomplish that, then the output will swing to either +Vmax or -Vmax.
 
  • #3
Engrstudent: While waht is basically correct, don't take the advice too literally. What he says is absolutely 100% true if the op-amp is running in what is often called 'linear mode'. Sometimes an opamp is run non-linear such as comparators, schmitt triggers, etc. Sometimes even one half of the cycle is one mode and the other half is the other mode. An active clamp would run this way for instance.
 
  • #4
Thank you for the info. We haven't learned anything about nonlinear operation, but I do remember him going over V+ = V- for linear operation.

I'm still unsure as to how I should approach this problem, though.
 
  • #5
I suppose the nonlinear mode arises when the feeback loop is unable to produce 0 potential difference between the inputs.

So for your circuit you can analyze it like this. If you set v1 to 5 volts, then output pin 3 of U1 will have to force the feedback loop to make the voltage difference between pin 1 and 2 zero, so pin 2 has to be 5 volts also.

If you know R1, or the current, your could calculate the ouput put voltage at 3.
 
  • #6
It's a trick question. The outputs of the opamps are shorted together and shorted to ground. Vout = 0V.

With other resistor values and non-zero excitation, then analyze the circuit the way waht is explaining.
 
  • #7
OK, I think I'll be able to figure out an expression showing that Vout = 0. I just ran the simulation in MultiSim, and that is correct. As I understand it, I should use KCL to accomplish this, is that right?

I still need some help with part B of the problem.
 
  • #8
I thought I'd sent this last night, but I don't see it in the thread now. Just as well, what I sent has an error. I hope this doesn't have more than an algebraic error.

BUT, I need a favor. Could you let me know how you got the thumbnail to appear in your first message? Thanks.

Look at it this way. There are two sources of current I1 and I2 from the op-amps. The voltage at the junction between R4 and R3 is V2
[tex] V2 = R4(I1+I2) [/tex]
The voltage at the junction of R1 and R2 is V1 (because v+=v- of the op-amps).
[tex] V1 = R2 I1 +R3(I1+I2)+V2 [/tex]
The output voltage is:
[tex] V_ = V1 + R1 I1 [/tex]
So, I get:
[tex] V_ = V1(1+R1/R2)-V2[(1+R3/R4)R1/R2] [/tex]

For the output to be proportional to V1-V2 the coefficients have to be equal:

[tex]V1(1+R1/R2)= V2[(1+R3/R4)R1/R2][/tex]

In other words:
[tex] R1R3 = R2 R4 [/tex]

Paul Deichelbohrer
 
  • #9
Thank you for your help, Paul.

You can upload attachments to your post by clicking the "Manage Attachments" button in the "Additional Options" section that appears below your message when you are submitting or editing a new post.

I'm going to sit down this afternoon to work this problem and I will post back if I find any descrepencies between my findings and yours.
 
  • #10
I ran the circuit again in MultiSim, and I've found that Vout is only 0 if all the circuit elements are equal, i.e., V1 = V2, R1 = R2 = R3 = R4. If you change these values, Vout changes accordingly. Berkeman, could you explain to me how this might be correct or incorrect? I am not challenging your statement, I am trying to better understand why it should or shouldn't be 0 at the output.

Paul, I came up with a slightly different answer from what you had. Can you expand your derivation more so that I can see the steps between your answers?

I used superposition to get the following:

Replacing V2 with a short makes U2 an inverting op-amp with respect to V1:

Vout_1 = [(1 + R1/R2)*V1] + [(-R3/R4)*V1]

Vout_1 = V1*[(1 + R1/R2) - (R3/R4)]


Replacing V1 with a short makes U1 an inverting op-amp with respect to V2:

Vout_2 = (1 + R3/R4)*V2 + (-R1/R2)*V2

Vout_2 = V2*[(1 + R3/R4) - (R1/R2)]


Vout = Vout_1 - Vout_2

Vout = V1*[(1 + R1/R2) - (R3/R4)] - V2*[(1 + R3/R4) - (R1/R2)]

I do not understand how you came about your result for part B. Could you please elaborate?

I very well may be way off the mark, and if so, please tell me!
 
Last edited:
  • #11
Great problem!

You know, I see how setting v2 =0 (shorting to ground) makes U2 an inverting op-amp, but I don't see what you mean "with respect to v1". To me, setting v2=0 makes the voltage on both sides of R4=0, and, therefore, I don't see how the value of R4 can appear in your expression for vout_1.

With v2=0, there will be no current in R4. Since the input impedance of op-amps is very high, there will be no current in R3 either. In this case, I1=-I2. Since the voltage at the junction between R1 and R2 is V1, the current in R2 will be I1=V1/R2. Since the output voltage is I1R1+V2, using this value for I1, I get that Vout_1 = v1(1+R1/R2).

Maybe you could give me some more details on how you got your value.

As for part B, if the output voltage is going to be proportionat to V1-V2, look at it this way:

V_ = k(V1-V2) = kV1- kV2
where k is some coefficient of proportionality.

In your (or mine, for that matter) expressions for the output in terms of V1 and V2 we get some expression in R1, R2, etc. for the coefficients of V1 and v2. Like it show above, both expressions have to be equal for the result to be proportional to v1-v2.


Thanks for helping me with the thumbnail.

Let me know if there's more to do on this problem.
 
  • #12
Replace "with respect to" with "due to the signal from" in my last post. It's just a different way of saying it.

I don't see how setting V2 = 0 would make the current through R4 and R3 = 0 also. There is still a voltage in the circuit from V1 and a current that must still travel to ground, and because the input impedance of the op-amp is so high, I don't think it would be able to go through the shorted V2 line; it would have to travel through R4, wouldn't it? There is still a voltage from V1 that is applied to all of the resistors when V2 is replaced with a short.

The voltage at the node right above R4 is what I was referring to when I said that U2 would be an inverting op-amp due to the signal from V1. The signal from V1 goes into the V- terminal of U2, which is where I got the (-R3/R4) term.

I very well may just have a fundamental misunderstanding of op-amp operation, too. That's why I'm here trying to figure things out.

Thank you for taking some time to help me. I hope we can reach a conclusion that makes sense to both of us!
 
Last edited:
  • #13
The current from the v1 circuit (coming from R2) goes into U2, i.e., the output current of U2 is -v1/R2. If any current went through R3, the negative input of U2 would be non-zero and then the high gain of the Op-amp would try to be very negative and suck in lots of current. It sucks in only -v1/R2, this is just enough to keep it's negative input =0.

Attached are a couple sketches of op-amp circuits. (I hope a thumbnail appears.) In sketch 1 the output of the op-amp is obviously zero. In sketch 2 it is still zero. The current supplied by the 4.9v through R2 is absorbed by the op-amp to prevent any voltage from appearing on its negative input.

If is not clear, let me know and I'll show you another way to look at it.
 

Attachments

  • two op amps.doc
    18 KB · Views: 168
  • #14
OK, I think I need to take a step back and look at this from a broader viewpoint.

Could you please explain how you derived your expression for Vout in your first post? I'm having trouble seeing how you came up with your equations, and I'm not sure which currents from which branches you've labeled I1 and I2, and I just don't see how you went from step 3 to step 4 in your derivation.

Thank you again for your patience.
 
  • #15
In my post, there is no thumbnail. (I wanted a thumbnail to appear in my post). I drew the sketches in my drafting program, and cut/pasted the drawing into MS Word. Then I saved MS Word file so I could call it up to be attached to my post.

Should I have used something other than MS Word?


There are only two sources of current, the op-amps. I called the current from U1, I1, and the current from U2, I2. I assume there is no current in the lead to the oscilloscope nor in the leads to the negative inputs to the op-amps.

You HAVE to believe that v+=v- for the op-amps. Therefore, the junction between R1 and R2 is at voltage v2. Op-amp U1 produces current I1 which produces a drop across R1, so the voltage at the oscilloscope (output voltage) has to be v1+R1 I1. (~~~)

I1 goes through R2, so the output terminal of U2 has to be at voltage v1-I1 R2.

Through R3 we have both I1 and I2 flowing so the voltage at the junction between R4 and R3 has to be below that of U2's output terminal by an amount R3(I1+I2). However, this point (junction between R4 and R3) is at voltage v2 because v+=v- for U2 (just as it was for U1). So I sum the voltage drops to get:

v1=R2 I1 + R3(I1+I2) + v2. (****)

Both I1 and I2 flow through R4, so v2 = R4(I1+I2).

To solve these, first, I solve for:
I1+I2 = v2/R4

I substitute this expression into Eq. (*****):

v1=R2 I1 + R3(v2/R4) + v2

From this I get I1:

I1 = (v1-v2 - v2 R3/R4)/R2 = v1/R2 - v2(1+R3/R4)/R2

Like I said back at (~~~~), the output (v_) is v1+I1 R1, so,

v_ = v1+v1R1/R2-v2 R1(1+R3/R4)/R2
= v1(1+R1/R2) - v2(1+R3/R4)(R1/R2) (&&&&&&&&&)

I believe this is the expression I had for output voltage in my post of 4/19.

For the output voltage to be proportional to v1-v2, the relationship has to have the form:

v_ = k(v1-v2) where k is some constant of proportionality.

Multiplying this out:
v_ = kv1 - kv2

Comparing this expression with &&&&&&&&:

k has to be equal to (1+R1/R2) and also (1+R3/R4) (R1/R2). In otherwords, both expressions have to be equal to each other:

1+R1/R2 = (1+R3/R4)(R1/R2)

Multiplying this out:

1+R1/R2 = R1/R2 + (R1R3)/(R2R4)

canceling R1/R2 from both sides:

1 = (R1R3)/(R2R4)

Multplying by R2R4, I get:

R2 R4 = R1 R3

I hope this helps. Let me know if it does or doesn't. Also, let me know what I'm doing wrong to get a thumbnail on my post.

Thanks.

Paul
 
  • #16
I think I'm starting to see. Thank you, Paul. I understand how you came about your derivations; I still think I have more to learn about how to evaluate op-amp circuits.

This assignment isn't for a grade, it's just to give us some practice work. I will speak with my instructor tomorrow to see if he can help me some more.

As for the thumbnail, I misunderstood what you were asking - I thought you just wanted to know how to upload an attachment. For a thumbnail, you need to save your file as either a JPEG or a bitmap file before you upload it to the website.

Thank you again for your patience and persistence.

If anyone else has anything to contribute that might aid my understanding, please don't hesitate!
 
  • #17
Thanks for the fun. And thanks for the information about thumbnail.
 
  • #18
Well Paul, it looks like I still need some help :).

I tried analyzing the circuit writing 3 KCL equations (1 for the node between R1 & R2, 1 for the node between R2 & R3, and 1 at the node between R3 & R4), and I was able to get the same answer as you. I was happy with that.

Then I went and spoke to my prof., and he pointed out that an important consideration was neglected: these are not ideal op-amps

He said that the CMRR must be taken into account for these calculations, and sort of told me how to look at it, but I think I'll still need some help.

Any ideas as to how approach this?
 
  • #19
OK, CMRR stands for what? Common Mode Rejection Ratio? How does the output change as the common-mode voltage goes up/down? I may have known this years ago, but, fill me in.

Thanks.
 
  • #20
Yes, CMRR stands for Common Mode Rejection Ratio. I wish I could fill you in more as to how it impacts the analysis, but I'm still not very sure myself.

I did some looking on the internet and found a couple of decent source of explanation, but I'm still not sure how to apply it to this circuit.

http://www.ecircuitcenter.com/OpModels/CMR/Op3_CMR.htm
http://www.allaboutcircuits.com/vol_3/chpt_8/13.html
 
  • #21
Well, a typical opamp's CMRR is in the 70dB to 85dB range, so I'm not sure why your prof is bringing that up in this circuit. Depending on the topology of the opamp's internal circuitry, the output can swing one way or the other when its two inputs are tied together and driven with an AC signal. That's how you measure the CMRR of a real opamp -- tie the inputs together and drive them with the output of a gain/phase meter, and monitor the output voltage with the input to the gain/phase meter. You will get a magnitude and phase plot of the CMRR (actually the gain, or 1/CMRR) versus frequency with that measurement, and that number ends up on the datasheet for the opamp.

So I guess in your circuit, assume that the outputs of the opamps swing the same way due to an input common-mode component, and assume something like 70dB CMRR, and see what the resulting error term looks like.
 
  • #22
This part of the problem seems to be more involved. I found this site using Google:

http://www.cs.manchester.ac.uk/Study_subweb/Ugrad/coursenotes/CS1231/tutorials/Common%20Mode%20Gain.html [Broken]

and it gives the formula for a non-inverting op-amp including the effect of CMRR:

vo = vi (1+ Rf/Ri)(1 + 1/CMRR). I went through the math that they give, and I don't see anything wrong with it.

In your circuit, first consider v1 = 0. Then, U1 is an inverting op-amp with input resistor, R2 and feedback resistor, R1. U2 is a non-inverting op-amp that is driving U1. (I believe you were trying to get me to see the problem this way a couple days ago)

So the output voltage of U2 is V2:

V2 = v2 (1+R3/R4)(1+1/CMRR).

And, the output of U1 is:

V'_ = -V2 R1/R2, since there is no CMRR effect in inverting op-amps.


With the v2=0, U1 becomes a non-inverting op-amp, so it's output, V1:

V1= v1 (1+ R1/R2)(1+1/CMRR), since it's input resistor, R2, is grounded by U2.

Using superposition, like I believe one of your earlier authors to this thread suggested,

V_ = V1 + V'_ = v1 (1+ R1/R2)(1+1/CMRR) - v2 (1+R3/R4)(1+1/CMRR)R1/R2.


To be proportional to v1-v2:

(1+ R1/R2)(1+1/CMRR) =(1+R3/R4)(1+1/CMRR)R1/R2

1 + R1/R2 = R11/R2 + R3 R1/(R2 R4)

R1 R3 = R2 R4.

I did this in kinda of hurry. Let me know what you find wrong, or if I should explain more.
 
Last edited by a moderator:
  • #23
This is correct, Paul.

Except our professor is having us use (1-1/CMRR) instead of (1+1/CMRR). I'll have to try to find out why that is different...

Essentially, it's the same answer as before with the ideal op-amp model but with the CMRR coefficient in front.

Thanks again for your help!
 
  • #24
I looked at my notes and the web site, and I believe it should be
1+1/CMRR. I'll be interested to find out why it is negative.

Thanks for keeping me informed.

See if this thumbnail comes through. (I guess it won't because my bitmap is too big. 407kbyte. Has to be less than 100 k bytes.)
 

1. What is an op-amp?

An op-amp, or operational amplifier, is an electronic component that amplifies the difference between two input signals. It typically has a high gain and is commonly used in analog circuits.

2. How do I solve for Vout in an op-amp circuit?

To solve for Vout, you can use the basic equation Vout = A*(V2 - V1), where A is the gain of the op-amp, V2 is the voltage at the non-inverting input, and V1 is the voltage at the inverting input.

3. What are the different types of op-amp configurations?

The three most common op-amp configurations are inverting, non-inverting, and differential. In an inverting configuration, the output is the inverse of the input signal. In a non-inverting configuration, the output is the same as the input signal. In a differential configuration, the output is the difference between two input signals.

4. How do I calculate the resistor values in an op-amp circuit?

The resistor values in an op-amp circuit can be calculated using Ohm's law and the basic op-amp equation. For example, in an inverting configuration, the feedback resistor (Rf) can be calculated as Rf = (A*R1)/(A-1), where R1 is the resistor connected to the inverting input and A is the gain of the op-amp.

5. What are some common applications of op-amps?

Op-amps have a wide range of applications in electronic circuits, such as amplifiers, filters, oscillators, and comparators. They are also commonly used in instrumentation circuits, audio equipment, and signal processing systems.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
34
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
18
Views
2K
  • Electrical Engineering
Replies
10
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
17
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
11
Views
9K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
16
Views
8K
  • Electrical Engineering
Replies
13
Views
10K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
5K
Back
Top