![]() | ![]() | ![]() |
| |||||||
| Electronic Theory Basic principles, ideas, concepts, laws, and formulas behind electronics. |
![]() |
| | Tools |
| | #1 |
|
Hi All I have been trying to get to grips with op-amp design using the attached 'tutorial'. I never was very goos with equations so I am struggling. I am stuck on page 4-14. Cheating (by using a spreadsheet) I can solve the simultaneous equation and get the correct values for the slope and intercept. However we now get to: m = 10 = (Rf + Rg) ÷ Rg This they have solved to be Rf = 9Rg Can somebody please be kind enough to explain how this is reached. Thanks in advance, Rupert
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) Last edited by gaspode42; 6th September 2009 at 01:36 PM. Reason: Forgot to add attachment! | |
| |
| | #2 | |
| Quote:
Hi, Looks like a good paper on op amps there. For this problem all you have to do is perform the math and then simplify. For this problem we start with: 10 = (Rf + Rg) ÷ Rg so first perform the division by Rg to obtain: 10=Rf/Rg+Rg/Rg and of course Rg/Rg=1 so replace that to get: 10=Rf/Rg+1 now subtract 1 from both sides to get: 9=Rf/Rg and last multiply both sides by Rg to get: 9*Rg=Rf and that's that. Last edited by MrAl; 7th September 2009 at 06:21 AM. | ||
| |
| | #3 |
|
Mr Al Thank you very much for your help - I now understand this but I now have a problem. From my first calculation I got a slope of 0.56 and an intercept of -2.88 so I chose the formula for a=mx-b. Using your example if I inset my values Rf=-0.44*Rg, now I appreciate that this may just mean the the value of Rf is less than that of Rg, but when I try to calculate it I get a negative result and I have not found many resistors that have a negative Ω value! ![]() Could you please be kind enough to tell me where I have gone wrong now! Thanks again for all your time and help so far. Rupert
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) | |
| |
| | #4 |
|
If i understand your problem...you are getting stuck on page 4-14 still ? i'm going to assume that MrAI did a good job of explaining why Rf=9Rg. comparing eq. 4-37 with 4-14 you can see that some parts are similar. Both equations have a Vout on the left-hand-side(LHS) and both have a Vin on the right-hand-side(RHS) multiplied by m followed by some constant. We can then say that eq. 4-38 and 4-39 is true since both equations look simialar. All we really did was give assign the unknown variables in eq. 4-14 a 'value'. We are then given some information about the circuit. When Vin=0.2, then Vout=1.5. Similarily when Vin=0.5, then Vout = 4.5. Looking back at unknowns, m and b, there are 2 unknowns. 2 unknowns means 2 equations are needed to solve for them. We have our two equations now All equations follow y=mx+b, whether or not m or b is positive or negative. using that as a template we can then write our two equations (1) 1.5 = 0.2m + b (Vout =1.5, Vin=0.2) (2) 4.5 = 0.5m + b (Vout =4.5, Vin=0.5) You can solve this in many ways. In the end you end up with m=10 and b=-0.5 (did not actually do the math, im assuming the pdf is correct). You should not be able to use those values into your other equations to get more realistic values for resistors. Hope it helps, i feel its kind of choppy and incomplete, but post if you have any more questions. | |
| |
| | #5 |
|
Hi Yes, thanks for the answer, however what I am trying to do is complete the calculation with my own set of values. Now if I calculate my values I get a slope of 0.56 and an intercept of -2.88 (rather than 10 & -0.5) so when I try to move to the next stage to calculate the ratio of resistances between Rf & Rg, I get the following Rf=-0.44*Rg, so if I say Rg=10K then Rf would be -440! So what have I done wrong or is it just the fact that my figures for slope and intercept mean that an op-amp is not the correct device in this situation? Many thanks, Rupert
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) | |
| |
| | #6 |
|
Hi again, Since you are doing your own example, can you post more details about what exactly you are doing, and what you are starting with? | |
| |
| | #7 | |
| Quote:
Code: 10,000 .44 × -------------------------- 4,400 =
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | #8 |
|
Hi All As such I am not doing (building) anything - I am just trying to learn how I would configure op-amps for various scenarios. For example I tried to do the calculations in the next section of the manual (y=-mx+b) to try do duplicate a post Eric did this morning, but needless to say I did not get the correct answer. As in Eric's post above, yes 10000+.44=4400 but the result I get was -0.44 which if you multiply gives -4400. I guess what I am saying is that I don't understand the examples in the tutorial (post 1) on two levels: 1) I don't understand how to rearrange the math go get the results 2) I don't understand where (in their examples) they get some of the numbers from So far I think the moral of the story is - I hope I never need to design a circuit that requires an op-amp! Sorry for being so thick but I really would like to understand this stuff, with my calculations to date every simulation I have done in LTSpice has given me the wrong result
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) | |
| |
| | #9 |
|
hi, Look at this pdf, it may help to explain some of the points you are having problems with. ![]() I would suggest that you use the simplified equations when designing general purpose amps. Dont get too bogged down in the maths.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | |
| |
| | #10 |
|
Eric, Thanks for the reply - I got lost on page 13 ![]() Using the PDF I posted together with a spreadsheet I can calculate the slope and the intercept so I know what model to use, but after that I get lost. I have always worked with digital circuits (when I worked in electronics) and by boss did the analogue stuff! Now I want to learn more, so I can do more, but I just don't understand the math. I guess I am just too old and stupid so will have to keep doing digital and pray nobody ever asks for anything analogue - perhaps I should go to the library and get 'Maths for Morons' ![]() Thanks for trying to help anyway. Rupert
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) | |
| |
| | #11 | |
| Quote:
You sound like a spring chicken to me. ![]() Dont give in so quickly, why dont you post a specific equation/problem. In that we can guide you thru it in stages, remember bite size sized chunks that will not choke you.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th September 2009 at 05:13 PM. | ||
| |
| | #12 |
|
Eric Thank you for your time and patience. Today I was trying to 'dulpicate' the model you posted in this thread. Now if I have anything correct we have (or had) the following conditions: Input Range: 0V to 0.68V Output Range: 3.4V to 0V V Ref is (was) 9V That gives me a slope of -0.2(m) and an intercept of 0.68(b) so using the PDF I posted, we are using model 3 - section 4.3.3 Vout=-mVin+b (page 4-16). Now in their example they have -5.6(m) and 0.444(b). If you go over the page they then say m=5.56=Rf/Rg ≡ Rf=5.56Rg So my first question is going to be why/how has -5.6 become 5.56? Secondly using my numbers would give Rf=0.2Rg? Thus if I make Rg 10K Rf would be 2K? If I have this correct so far then it's a miracle ![]() Then when I get to (4-53) I get completely lost - the only number I understand in (4-54) is 66 which in my case I guess would be 12 (or 12000)? Is the 0.444 calculated or is it the value of (b)? I really do want to be able to do this stuff, and get very frustrated when I don't understand. Sorry if I am causing you a headache, it probably took you less time to do the original circuit that it is trying to explain it to me! Thanks again ![]() Rupert
__________________ "A lie gets halfway around the world before the truth has a chance to get its pants on" - Sir Winston Churchill (1874 - 1965) | |
| |
| | #13 |
|
hi Rupert, Copied your post and I will go thru your pdf, see if we can sort it. ![]() EDIT: Quick look at the pdf, the line after [4-52] is a typo, it should read 55.6K, so the nearest preferred value is 56K. So you are not going crazy. ![]() I'll look at the rest tomorrow.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th September 2009 at 06:57 PM. | |
| |
| | #14 |
|
Hello again, For your first op amp circuit i would recommend using whole values for the resistors. For example (using Eric's circuit schematic): R2=5k R3=1k R4=4k R5=1k The output voltage can be calculated as follows. Vo=vp*(G+1)-G*V1 where G=R2/R3, and vp=V2*R5/(R4+R5) You'll notice that the gain G is just the feedback resistor divided by the input resistor R3, and the voltage at the non inverting terminal vp is just the voltage due to the votlage divider effect of R4 and R5. For the suggested values above and V2=5v and V1=1v the output voltage calculates to 1v. There is something else to keep in mind however when using a simulator to check your results. That is, the models used for the op amps often have an offset voltage included in the model. This means that the output voltage calculation may come out a tiny bit different that what we calculate from the above formulas. For example, with an input offset of 0.001v the output will change from the calculated 1.000v to 1.006v. For an input offset of 0.010v the output will go to 1.06v. There are also effects because of the non infinite internal gain that the spice model has while the theoretical model has infinite internal gain, which also produces a small error in the 'perfect' calculation above. This is something to keep in mind when working with the spice models in a simulator. Last edited by MrAl; 8th September 2009 at 05:15 AM. | |
| |
| | #15 |
|
hi rupert, This is a LTspice sim of the example circuit. In the original circuit, R1 and R2 are crossed over. IMHO, as there are so many errors in this section of the datasheet, its totally useless as a teaching guide.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | |
| |
|
| Tags |
| equations, opamp, simultaneous |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Simultaneous equations with 3 variables | Overclocked | Math and Physics | 26 | 16th September 2009 02:24 AM |
| Antennas- Multiple/Simultaneous Frequencies | dknguyen | Chit-Chat | 25 | 18th May 2009 09:12 AM |
| Simultaneous PIC reset | Krumlink | Micro Controllers | 32 | 5th May 2009 10:10 PM |
| i need help solving these equations please!!!!!!!!!! | miksol | General Electronics Chat | 3 | 20th February 2009 03:21 PM |
| simultaneous equations in three variables ,and any order | sed_y | Math and Physics | 3 | 4th April 2007 04:53 AM |