Author Topic: Homework issue - Non-ideal op-amp  (Read 3075 times)

0 Members and 1 Guest are viewing this topic.

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Homework issue - Non-ideal op-amp
« on: April 08, 2017, 07:42:21 pm »
Hello everyone,

Working some homework on non-ideal op-amps and I'm stuck.  Basically, something is wrong with my node voltage equations as my system of equations finds no solution.  https://drive.google.com/file/d/0B9QMsEp5mU1kc2RYUWIyYnN0S3c/view?usp=sharing is an image of my work thus far - at this point I'm just tryin to get a functional system of equations, ie - node voltage equations that work.  I greatly appreciate any help

Thanks!
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11925
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #1 on: April 08, 2017, 07:58:54 pm »
Just responding here as an amateur, but here are my thoughts:

You can write three equations in three unknowns:

  Eq 1: a current balance around VN
  Eq 2: a current balance around VO
  Eq 3: the output voltage of the amplifier VA

The unknowns are VN, VO and VA.

It seems to me that it should be possible to solve those three equations for the three voltages, and after that determine the currents (if necessary).



 

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #2 on: April 08, 2017, 08:03:29 pm »
I have done exactly that, but for Vg, VN, and Vo - problem is I have an error somewhere in one of the equations which makes the system have no solution. The issue I'm having it finding my "face palm" moment to where the equations can produce a solution.
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11925
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #3 on: April 08, 2017, 08:22:42 pm »
Surely your face palm moment is to treat Vg as an unknown voltage, when it is shown as a voltage source and must therefore be a known input to the system?

If you do what you have done, my guess is that the system will turn out to be singular and have no solution.

The voltage you don't know, and should therefore include in the equations, is the output voltage of the amplifier.

By the way, when you say "I have done exactly that, but...", it means you have not, in fact, done "exactly that". You have done something else, and therein lies your problem.
« Last Edit: April 08, 2017, 08:24:36 pm by IanB »
 
The following users thanked this post: kickit2

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #4 on: April 08, 2017, 08:32:35 pm »
I am not sure I read your third equation correctly -- is that A * V_delta = Vo, where V_delta = Vp - Vn?
If so, where do you get that from? Aren't you postulating the behavior of an ideal opamp there?
 

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #5 on: April 08, 2017, 08:42:01 pm »
Thats the definition of a "non-ideal" model.  See attachment for how a non-ideal op-amp is ideally modeled (ass odd as that sentance sounds).
 

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #6 on: April 08, 2017, 08:45:16 pm »
If I'm following you, what your saying is to assume that Vg is some known value - perhaps 1 to make things easy.  The idea is to create a transfer function that would apply for all values of Vg where H=Vo/Vg.  In this case, setting Vg to one shouldn't hurt anything, as dividing anything by one doesn't change it.  Right?
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #7 on: April 08, 2017, 08:49:45 pm »
Thats the definition of a "non-ideal" model.  See attachment for how a non-ideal op-amp is ideally modeled (ass odd as that sentance sounds).

But your Vo point is not at the output of the "internal" amplifier (the diamond-shaped entity). There is a voltage divider, composed of the internal 5k and the external 500 Ohm, right?

EDIT: To paraphrase, the third equation you gave is valid for the voltage directly at the output of the "internal" amplifier, but not for Vo. It would be correct only for Ro = 0.
« Last Edit: April 08, 2017, 08:54:05 pm by ebastler »
 

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #8 on: April 08, 2017, 08:53:45 pm »
It is a voltage divider, but not as simple as a single current path.  That's why node Vo is defined and the currents in and out are summed to equal zero. If the system had no feedback (and no 100k strapping back to Vn) then you would be correct.  In this case, the current through Rf (100k) must be considered too.  But the 500 and 5k are both factored into the "Vo" equation.

I should add that I've email my professor about this, and I'll post the error for future reference if it isn't highlighted prior to then.
« Last Edit: April 08, 2017, 08:59:56 pm by kickit2 »
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #9 on: April 08, 2017, 08:59:33 pm »
It is a voltage divider, but not as simple as a single current path.  That's why node Vo is defined and the currents in and out are summed to equal zero. If the system had no feedback (and no 100k strapping back to Vn) then you would be correct.  In this case, the current through Rf (100k) must be considered too.  But the 500 and 5k are both factored into the "Vo" equation.

I understand and trust your second equation (the current balance at point Vo).
But I don't trust your third equation, A * (Vp-Vn) = Vo.

'nuf said; maybe I'm missing your point.
But it's your equations which don't have a solution, so one of those three might be wrong...  ;)
 

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #10 on: April 08, 2017, 09:06:52 pm »
Just responding here as an amateur, but here are my thoughts:

You can write three equations in three unknowns:

  Eq 1: a current balance around VN
  Eq 2: a current balance around VO
  Eq 3: the output voltage of the amplifier VA

The unknowns are VN, VO and VA.

It seems to me that it should be possible to solve those three equations for the three voltages, and after that determine the currents (if necessary).

There is no Va - The unknowns are Vn,Vo,Vg

Surely your face palm moment is to treat Vg as an unknown voltage, when it is shown as a voltage source and must therefore be a known input to the system?

If you do what you have done, my guess is that the system will turn out to be singular and have no solution.

The voltage you don't know, and should therefore include in the equations, is the output voltage of the amplifier.

By the way, when you say "I have done exactly that, but...", it means you have not, in fact, done "exactly that". You have done something else, and therein lies your problem.

the "but" came in where I was showing that I was solving for the unknowns in question, and that the unknowns stated by the last reply were incorrect.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #11 on: April 08, 2017, 09:32:46 pm »
 :-//
 
The following users thanked this post: kickit2

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #12 on: April 08, 2017, 09:44:09 pm »
That's an amazing point.  The note set states that Vo=AVd...  but now that you point that out, that probably only happens when there is no other load on Vo, which would mean that 0 current is flowing though Ro, so no voltage drop... hummm.... thats gotta be it.  I have to move away from that assumption that is given, as there will be current flow, and therefor a voltage drop.  Awesome - thats a step in the right direction.

So now I need to find a third equation..   Actually, combining with IanB's comment = assuming Vg=1 turns this into a two unknown two equation problem... lets see
« Last Edit: April 08, 2017, 09:50:27 pm by kickit2 »
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #13 on: April 08, 2017, 09:50:54 pm »
That's an amazing point.  The note set states that Vo=AVd...  but now that you point that out, that probably only happens when there is no other load on Vo, which would mean that 0 current is flowing though Ro, so no voltage drop... hummm.... thats gotta be it.  I have to move away from that assumption that is given, as there will be current flow, and therefor a voltage drop.  Awesome - thats a step in the right direction.

Yes, that's what I was trying to get across all along. Actually, the note you had attached does not talk about Vo at all. It only talks about the voltage on the other (internal) side of Ro. So the third equation you used is invalid.

It seems that Vn and Vo are the only two unknown voltages in your system. So why do you need a third equation anyway?
EDIT: This ties back to what IanB said in his second post, by the way. You don't have to solve for Vg, since this is a known input; only two unknowns need to be dealt with.
« Last Edit: April 08, 2017, 10:02:18 pm by ebastler »
 
The following users thanked this post: kickit2

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #14 on: April 08, 2017, 10:02:33 pm »
The noteset that I posted was not the note set I was working off of, although it is equivalent.  The attached image is of the one I'm actually using - and it directly states that AVd=Vo - but if you separate yourself from that "fact" and look closer - it doesn't show any feedback, meaning that current though Ro=0.   Additional,  the idea was to find a transfer function, which works for any Vg, so Vg is an unknown.  BUT, if I would have remembered that H=Vo/Vg, I would have seen that setting Vg to one would eliminate it as an unknown, which not changing H.  In the end, it was exactly what I though it was - a stupid mistake of me overlooking something.  I defiantly appreciate you guys looking this over for me.  Sorry I didn't understand your point at first, but for whatever reason, seeing it graphically made it click and question my assumption of the noteset directly applying.

 
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6528
  • Country: de
Re: Homework issue - Non-ideal op-amp
« Reply #15 on: April 08, 2017, 10:08:21 pm »
Indeed, that other note is a bit misleading. Only works for Ro=0 (which can't be assumed for the non-ideal op-amp), or for the situation without any load on the output (which is not too relevant in practice).

Please see my previous post -- I think you don't need a third equation!
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11925
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #16 on: April 08, 2017, 10:21:08 pm »
There is no Va - The unknowns are Vn,Vo,Vg

I think you've got it now, but Va is the voltage on the output of the amplifier, upstream of the 5k output impedance.

Therefore, you have the following three equations:

Current balance around Vn:

   (Vg - Vn) / 5 + (Vp - Vn) / 500 + (Vo - Vn) / 100 = 0

Current balance around Vo:

   (Va - Vo) / 5 - (Vo - Vn) / 100 - (Vo - 0) / 0.5 = 0

Amplifier voltage Va:

  Va = A(Vp - Vn)

I know Va isn't labeled on the diagram, and the third equation can technically be substituted into the second equation, but introducing Va like this can help to clarify the analysis and help avoid errors.





 
The following users thanked this post: kickit2

Offline kickit2Topic starter

  • Contributor
  • Posts: 15
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #17 on: April 08, 2017, 10:26:44 pm »
I do see what you mean now - I wasn't aware that you were referring to the dependent voltage source as Va, and assumed you had made a typo.  In any case, I understand where I went wrong now with assumptions - thanks again for all your help.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9892
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #18 on: April 09, 2017, 02:25:33 am »
I dumped your equations into wxMaxima (hopefully without typos) and there is a solution.  It shows Vn as a very small number and Vo as much larger.

« Last Edit: April 09, 2017, 03:16:11 am by rstofer »
 

Offline Ratch

  • Regular Contributor
  • *
  • Posts: 221
  • Country: us
Re: Homework issue - Non-ideal op-amp
« Reply #19 on: April 09, 2017, 03:22:00 am »
Hello everyone,

Working some homework on non-ideal op-amps and I'm stuck.  Basically, something is wrong with my node voltage equations as my system of equations finds no solution.  https://drive.google.com/file/d/0B9QMsEp5mU1kc2RYUWIyYnN0S3c/view?usp=sharing is an image of my work thus far - at this point I'm just tryin to get a functional system of equations, ie - node voltage equations that work.  I greatly appreciate any help

Thanks!

Two equations and two unknowns.  Ask if you have any questions.

Ratch
« Last Edit: April 09, 2017, 03:24:33 am by Ratch »
Hopelessly Pedantic
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1452
Re: Homework issue - Non-ideal op-amp
« Reply #20 on: April 10, 2017, 01:03:14 pm »
Hello everyone,

Working some homework on non-ideal op-amps and I'm stuck.  Basically, something is wrong with my node voltage equations as my system of equations finds no solution.  https://drive.google.com/file/d/0B9QMsEp5mU1kc2RYUWIyYnN0S3c/view?usp=sharing is an image of my work thus far - at this point I'm just tryin to get a functional system of equations, ie - node voltage equations that work.  I greatly appreciate any help

Thanks!

Hi,

Maybe you just need some more practice with nodal analysis and dependent sources.

Also, you can write an equation for all the resistors and that will get you started.  That's because they form one big voltage divider with a different voltage at each end and taps that are important to the values that you want to solve for.

Also, yes the internal gain is Vout=A*(vp-vn) and that is always the case for that kind of dependent source.  The output resistance 5k is in series with that, so of course the actual output Vo should be either lower or higher but not the same as the internal Vout.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf