Circuit Analysis: Obtaining Close Loop OP - AMP Transfer functioncircuit analysis of DC-source, inductance and modulated resistanceWhy does Nyquist plot only need loop gain but not the entire closed loop transfer function?k transfer functionDC gain of non-inverting integrator / Derivation of DC results from transfer functionTransfer function of real componentsderiving the transfer function given bode plotTransfer function of phase change controlled with capacitanceFinding the transfer function of an non-inverting audio op-ampHow to go about finding the transfer function of a non-linear circuit?Nodal analysis -> transfer function -> step response

How to verify if g is a generator for p?

Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?

Will it be accepted, if there is no ''Main Character" stereotype?

Generic lambda vs generic function give different behaviour

How do I define a right arrow with bar in LaTeX?

Irreducibility of a simple polynomial

How do I keep an essay about "feeling flat" from feeling flat?

What is difference between behavior and behaviour

There is only s̶i̶x̶t̶y one place he can be

Failed to fetch jessie backports repository

How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?

Is a roofing delivery truck likely to crack my driveway slab?

Teaching indefinite integrals that require special-casing

Coordinate position not precise

Was Spock the First Vulcan in Starfleet?

when is out of tune ok?

Your magic is very sketchy

Modify casing of marked letters

Why is delta-v is the most useful quantity for planning space travel?

Why "be dealt cards" rather than "be dealing cards"?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Bash method for viewing beginning and end of file

Star/Wye electrical connection math symbol

Applicability of Single Responsibility Principle



Circuit Analysis: Obtaining Close Loop OP - AMP Transfer function


circuit analysis of DC-source, inductance and modulated resistanceWhy does Nyquist plot only need loop gain but not the entire closed loop transfer function?k transfer functionDC gain of non-inverting integrator / Derivation of DC results from transfer functionTransfer function of real componentsderiving the transfer function given bode plotTransfer function of phase change controlled with capacitanceFinding the transfer function of an non-inverting audio op-ampHow to go about finding the transfer function of a non-linear circuit?Nodal analysis -> transfer function -> step response













6












$begingroup$


Trying to figure out the Close Loop System transfer function of an op-amp, however the math isn't working out as it should.



Circuit In question:





schematic





simulate this circuit – Schematic created using CircuitLab



Using this as the foundation of calculating the Close loop transfer function: enter image description here



Where A is the Transfer function (open loop) of the LM1875 which taken from the bode plot obtained here: LM1875 DataSheet. TF should be $$ A = H(s) = frac31.62mathrm707*10^-9*s+1$$



Where B is the transfer function of the negative feedback $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$



The close loop Equation $$ CL(s) = fracH(s)1+H(s)*G(s) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac31.62mathrm707*10^-9*s+1)*(2) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1mathrm707*10^-9*s+1+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1+63.24mathrm707*10^-9*s+1 $$



$$ requirecancel CL(s) = frac31.62cancelmathrm707*10^-9*s+1 * fraccancelmathrm707*10^-9*s+1 mathrm707*10^-9*s+1+63.24 $$



$$ requirecancel CL(s) = frac31.62mathrm707*10^-9*s+64.24 $$



Using FVT as $$ Sxrightarrow0 $$ :



$$ requirecancel CL(0) = frac31.62mathrm707*10^-9*(0)+64.24 = frac31.6264.24 = 0.4922 = DC Gain$$



Where did I go wrong?
I know this is wrong as the DC gain should be around 2V/V










share|improve this question











$endgroup$











  • $begingroup$
    Shouldn't that "plus" symbol be a "difference", instead?
    $endgroup$
    – Digiproc
    Mar 21 at 17:44










  • $begingroup$
    Where? exactly?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46















6












$begingroup$


Trying to figure out the Close Loop System transfer function of an op-amp, however the math isn't working out as it should.



Circuit In question:





schematic





simulate this circuit – Schematic created using CircuitLab



Using this as the foundation of calculating the Close loop transfer function: enter image description here



Where A is the Transfer function (open loop) of the LM1875 which taken from the bode plot obtained here: LM1875 DataSheet. TF should be $$ A = H(s) = frac31.62mathrm707*10^-9*s+1$$



Where B is the transfer function of the negative feedback $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$



The close loop Equation $$ CL(s) = fracH(s)1+H(s)*G(s) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac31.62mathrm707*10^-9*s+1)*(2) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1mathrm707*10^-9*s+1+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1+63.24mathrm707*10^-9*s+1 $$



$$ requirecancel CL(s) = frac31.62cancelmathrm707*10^-9*s+1 * fraccancelmathrm707*10^-9*s+1 mathrm707*10^-9*s+1+63.24 $$



$$ requirecancel CL(s) = frac31.62mathrm707*10^-9*s+64.24 $$



Using FVT as $$ Sxrightarrow0 $$ :



$$ requirecancel CL(0) = frac31.62mathrm707*10^-9*(0)+64.24 = frac31.6264.24 = 0.4922 = DC Gain$$



Where did I go wrong?
I know this is wrong as the DC gain should be around 2V/V










share|improve this question











$endgroup$











  • $begingroup$
    Shouldn't that "plus" symbol be a "difference", instead?
    $endgroup$
    – Digiproc
    Mar 21 at 17:44










  • $begingroup$
    Where? exactly?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46













6












6








6





$begingroup$


Trying to figure out the Close Loop System transfer function of an op-amp, however the math isn't working out as it should.



Circuit In question:





schematic





simulate this circuit – Schematic created using CircuitLab



Using this as the foundation of calculating the Close loop transfer function: enter image description here



Where A is the Transfer function (open loop) of the LM1875 which taken from the bode plot obtained here: LM1875 DataSheet. TF should be $$ A = H(s) = frac31.62mathrm707*10^-9*s+1$$



Where B is the transfer function of the negative feedback $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$



The close loop Equation $$ CL(s) = fracH(s)1+H(s)*G(s) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac31.62mathrm707*10^-9*s+1)*(2) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1mathrm707*10^-9*s+1+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1+63.24mathrm707*10^-9*s+1 $$



$$ requirecancel CL(s) = frac31.62cancelmathrm707*10^-9*s+1 * fraccancelmathrm707*10^-9*s+1 mathrm707*10^-9*s+1+63.24 $$



$$ requirecancel CL(s) = frac31.62mathrm707*10^-9*s+64.24 $$



Using FVT as $$ Sxrightarrow0 $$ :



$$ requirecancel CL(0) = frac31.62mathrm707*10^-9*(0)+64.24 = frac31.6264.24 = 0.4922 = DC Gain$$



Where did I go wrong?
I know this is wrong as the DC gain should be around 2V/V










share|improve this question











$endgroup$




Trying to figure out the Close Loop System transfer function of an op-amp, however the math isn't working out as it should.



Circuit In question:





schematic





simulate this circuit – Schematic created using CircuitLab



Using this as the foundation of calculating the Close loop transfer function: enter image description here



Where A is the Transfer function (open loop) of the LM1875 which taken from the bode plot obtained here: LM1875 DataSheet. TF should be $$ A = H(s) = frac31.62mathrm707*10^-9*s+1$$



Where B is the transfer function of the negative feedback $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$



The close loop Equation $$ CL(s) = fracH(s)1+H(s)*G(s) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac31.62mathrm707*10^-9*s+1)*(2) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+11+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1mathrm707*10^-9*s+1+(frac63.24mathrm707*10^-9*s+1) $$



$$ CL(s) = fracfrac31.62mathrm707*10^-9*s+1fracmathrm707*10^-9*s+1+63.24mathrm707*10^-9*s+1 $$



$$ requirecancel CL(s) = frac31.62cancelmathrm707*10^-9*s+1 * fraccancelmathrm707*10^-9*s+1 mathrm707*10^-9*s+1+63.24 $$



$$ requirecancel CL(s) = frac31.62mathrm707*10^-9*s+64.24 $$



Using FVT as $$ Sxrightarrow0 $$ :



$$ requirecancel CL(0) = frac31.62mathrm707*10^-9*(0)+64.24 = frac31.6264.24 = 0.4922 = DC Gain$$



Where did I go wrong?
I know this is wrong as the DC gain should be around 2V/V







circuit-analysis control-system






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 18:22







Pllsz

















asked Mar 21 at 17:29









PllszPllsz

306110




306110











  • $begingroup$
    Shouldn't that "plus" symbol be a "difference", instead?
    $endgroup$
    – Digiproc
    Mar 21 at 17:44










  • $begingroup$
    Where? exactly?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46
















  • $begingroup$
    Shouldn't that "plus" symbol be a "difference", instead?
    $endgroup$
    – Digiproc
    Mar 21 at 17:44










  • $begingroup$
    Where? exactly?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46















$begingroup$
Shouldn't that "plus" symbol be a "difference", instead?
$endgroup$
– Digiproc
Mar 21 at 17:44




$begingroup$
Shouldn't that "plus" symbol be a "difference", instead?
$endgroup$
– Digiproc
Mar 21 at 17:44












$begingroup$
Where? exactly?
$endgroup$
– Pllsz
Mar 21 at 17:46




$begingroup$
Where? exactly?
$endgroup$
– Pllsz
Mar 21 at 17:46










4 Answers
4






active

oldest

votes


















3












$begingroup$

I believe your mistake is to assume
$$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$
B is actually 1/2, as it is the output voltage divided by 2, that is
$$ B = G(s) = fracR1R1+R2 $$
Where the ratio comes from the $R1,R2$ voltage divider.



With this value of B, you would obtain
$$ CL(0) = frac31.6216.81 = 1.85$$






share|improve this answer











$endgroup$












  • $begingroup$
    I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
    $endgroup$
    – Pllsz
    Mar 21 at 17:49










  • $begingroup$
    So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
    $endgroup$
    – Pllsz
    Mar 21 at 17:53










  • $begingroup$
    @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
    $endgroup$
    – xuva
    Mar 21 at 18:00







  • 1




    $begingroup$
    Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
    $endgroup$
    – Pllsz
    Mar 21 at 18:03











  • $begingroup$
    Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
    $endgroup$
    – xuva
    Mar 21 at 18:08


















1












$begingroup$

B is actually this:



enter image description here

Source: https://www.letscontrolit.com/wiki/index.php/DC_Voltage_divider



so B is equal to



$ frac10001000+1000=1/2$



if the math is done with 1/2 instead of 2 for B you should get the right answer.






share|improve this answer









$endgroup$












  • $begingroup$
    Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46










  • $begingroup$
    The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
    $endgroup$
    – laptop2d
    Mar 21 at 18:28










  • $begingroup$
    Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
    $endgroup$
    – Pllsz
    Mar 21 at 18:31


















0












$begingroup$

You've got B wrong. The voltage gain (or in this case attenuation) from output to summing node is R1/(R2+R1). The equation you listed is the closed loop gain (at DC at least) for the entire system. see: https://www.electronics-tutorials.ws/opamp/opamp_3.html



I'm also surprised at the transfer function you're using for the op amp. The DC gain should be much higher than 30. If you're going by this image below, note that the gain axis is in dB, so that 30 should be more like 1000.



You have the DC gain right. I was assuming 10db/decade, not 20dB/decade as I should have for voltage gain. 10^1.5=31.6



LM1875 open loop gain/phase






share|improve this answer











$endgroup$












  • $begingroup$
    Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
    $endgroup$
    – Pllsz
    Mar 21 at 17:48










  • $begingroup$
    Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
    $endgroup$
    – Pllsz
    Mar 21 at 17:54










  • $begingroup$
    If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
    $endgroup$
    – miles60
    Mar 21 at 18:08











  • $begingroup$
    I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
    $endgroup$
    – Pllsz
    Mar 21 at 18:14










  • $begingroup$
    You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
    $endgroup$
    – miles60
    Mar 21 at 18:14


















0












$begingroup$

As others have stated, the fundamental flaw is in the feedback gain which is 1/2, not 2. However, I believe there's also a small error in the closed-loop equation. Let's try to derive it from the circuit above. Note, the feedback is attached to the inverting input of the op amp so there is a differencing block at the input, not summing. First, start at the output which I will label Y, and then follow it through the loop. The input is labeled X.



Output:
$$Y$$
Negative feedback gain:
$$BY$$
Input to the op amp:
$$X-BY$$
Output of the op amp:
$$A(X-BY)$$
Which is also equal to the output:
$$A(X-BY)=Y$$
Now we have the loop equation. Next, derive the closed-loop gain as Output divided by Input:
$$AX - ABY = Y$$
$$AX = Y + ABY$$
$$H = fracYX = fracA1+AB$$
$$H = fracYX = fracAAB+1$$
Let's calculate B first. If we assume that the input impedance of the op amp's inverting input is much, much larger than the impedance of the resistor feedback network, we can ignore any current draw it has from the feedback network. Larger means at least 10 times, but preferable 100 time or more. That would be about 100kΩ which I'm sure is smaller than the value on the datasheet. In that case, the current through both resistors is identical. We calculate the voltage drop of each path over it's total resistance. I will call the midpoint V and the ground point 0 in the following. The feedback gain B will be the output at the midpoint V divided by the input which happens to be Y in this system:
$$fracV - 0R2 = fracY - 0R1 + R2$$
$$fracVR2 = fracYR1 + R2$$
$$V = fracR2R1 + R2Y$$
$$B = fracVY = fracR2R1 + R2$$
$$B = frac1kΩ1kΩ + 1kΩ = frac12 = 1/2$$
One goal of any good op amp is to have a very, very large open-loop gain which we represent by A. To simplify the equation, we can take the limit as A approached infinity to find the ideal gain of our system:
$$lim_Atoinfty H = fracAAB+1 = fracAAB = frac1B$$
Since AB >> 1, we can drop the + 1 and with B being 1/2, H is 2 as the open-loop gain approaches infinity. Now, you care about the non-ideal op amp where A is less than infinity. Let's just see what happens if A is only 10:
$$lim_Ato10 H = fracAAB+1 = frac1010(1/2)-1 = frac105+1$$
$$lim_Ato10 H = frac106 = 5/3 approx 1.67$$
Our actual gain drops. Put in the number from your datasheet here to find your expected gain which should be close, but slightly smaller than 2. Also, this still assumes an infinite input impedance on the op amp. That will affect the feedback gain B and should be accounted for to get a more accurate calculation. Hopefully, this helps clear up the confusion.






share|improve this answer









$endgroup$












    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("schematics", function ()
    StackExchange.schematics.init();
    );
    , "cicuitlab");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "135"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f428390%2fcircuit-analysis-obtaining-close-loop-op-amp-transfer-function%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    I believe your mistake is to assume
    $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$
    B is actually 1/2, as it is the output voltage divided by 2, that is
    $$ B = G(s) = fracR1R1+R2 $$
    Where the ratio comes from the $R1,R2$ voltage divider.



    With this value of B, you would obtain
    $$ CL(0) = frac31.6216.81 = 1.85$$






    share|improve this answer











    $endgroup$












    • $begingroup$
      I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
      $endgroup$
      – Pllsz
      Mar 21 at 17:49










    • $begingroup$
      So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
      $endgroup$
      – Pllsz
      Mar 21 at 17:53










    • $begingroup$
      @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
      $endgroup$
      – xuva
      Mar 21 at 18:00







    • 1




      $begingroup$
      Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
      $endgroup$
      – Pllsz
      Mar 21 at 18:03











    • $begingroup$
      Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
      $endgroup$
      – xuva
      Mar 21 at 18:08















    3












    $begingroup$

    I believe your mistake is to assume
    $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$
    B is actually 1/2, as it is the output voltage divided by 2, that is
    $$ B = G(s) = fracR1R1+R2 $$
    Where the ratio comes from the $R1,R2$ voltage divider.



    With this value of B, you would obtain
    $$ CL(0) = frac31.6216.81 = 1.85$$






    share|improve this answer











    $endgroup$












    • $begingroup$
      I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
      $endgroup$
      – Pllsz
      Mar 21 at 17:49










    • $begingroup$
      So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
      $endgroup$
      – Pllsz
      Mar 21 at 17:53










    • $begingroup$
      @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
      $endgroup$
      – xuva
      Mar 21 at 18:00







    • 1




      $begingroup$
      Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
      $endgroup$
      – Pllsz
      Mar 21 at 18:03











    • $begingroup$
      Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
      $endgroup$
      – xuva
      Mar 21 at 18:08













    3












    3








    3





    $begingroup$

    I believe your mistake is to assume
    $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$
    B is actually 1/2, as it is the output voltage divided by 2, that is
    $$ B = G(s) = fracR1R1+R2 $$
    Where the ratio comes from the $R1,R2$ voltage divider.



    With this value of B, you would obtain
    $$ CL(0) = frac31.6216.81 = 1.85$$






    share|improve this answer











    $endgroup$



    I believe your mistake is to assume
    $$ B = G(s) = fracR2R1+1 = frac1000kOmega1000kOmega+1 = 2$$
    B is actually 1/2, as it is the output voltage divided by 2, that is
    $$ B = G(s) = fracR1R1+R2 $$
    Where the ratio comes from the $R1,R2$ voltage divider.



    With this value of B, you would obtain
    $$ CL(0) = frac31.6216.81 = 1.85$$







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 21 at 18:09

























    answered Mar 21 at 17:44









    xuvaxuva

    372113




    372113











    • $begingroup$
      I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
      $endgroup$
      – Pllsz
      Mar 21 at 17:49










    • $begingroup$
      So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
      $endgroup$
      – Pllsz
      Mar 21 at 17:53










    • $begingroup$
      @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
      $endgroup$
      – xuva
      Mar 21 at 18:00







    • 1




      $begingroup$
      Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
      $endgroup$
      – Pllsz
      Mar 21 at 18:03











    • $begingroup$
      Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
      $endgroup$
      – xuva
      Mar 21 at 18:08
















    • $begingroup$
      I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
      $endgroup$
      – Pllsz
      Mar 21 at 17:49










    • $begingroup$
      So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
      $endgroup$
      – Pllsz
      Mar 21 at 17:53










    • $begingroup$
      @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
      $endgroup$
      – xuva
      Mar 21 at 18:00







    • 1




      $begingroup$
      Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
      $endgroup$
      – Pllsz
      Mar 21 at 18:03











    • $begingroup$
      Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
      $endgroup$
      – xuva
      Mar 21 at 18:08















    $begingroup$
    I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
    $endgroup$
    – Pllsz
    Mar 21 at 17:49




    $begingroup$
    I am just flustered how I got the opposite transfer function for B. electronics-tutorials.ws/opamp/opamp_3.html They got the same TF as me
    $endgroup$
    – Pllsz
    Mar 21 at 17:49












    $begingroup$
    So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
    $endgroup$
    – Pllsz
    Mar 21 at 17:53




    $begingroup$
    So, how did I assume the transfer function for the feedback of the non inverting amp. What is the proper approach to obtain the transfer function then
    $endgroup$
    – Pllsz
    Mar 21 at 17:53












    $begingroup$
    @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
    $endgroup$
    – xuva
    Mar 21 at 18:00





    $begingroup$
    @Pllsz I'm not sure I understand what you are asking now. I think you just computed B to be the actual gain of your circuit, but the feedback signal is actually the voltage at the inverting input of the op amp.
    $endgroup$
    – xuva
    Mar 21 at 18:00





    1




    1




    $begingroup$
    Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
    $endgroup$
    – Pllsz
    Mar 21 at 18:03





    $begingroup$
    Sorry, it will be kinda hard for me to explain this. Ill tell you the way how I got the B part. But I think I am starting to understand what you're trying to say. I believe I assumed B to be the close loop transfer function instead of the Open loop transfer function. Is that correct? And towards the end of your answer, wouldnt it be 16.81 instead of 15.81 as there's a + 1 in the denominator ?
    $endgroup$
    – Pllsz
    Mar 21 at 18:03













    $begingroup$
    Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
    $endgroup$
    – xuva
    Mar 21 at 18:08




    $begingroup$
    Here we have an open-loop TF, given by A, a feedback TF, given by B, and a closed-loop TF, given by A/(1+AB). You assumed B to be the closed loop TF instead of the feedback TF (the one you call H)
    $endgroup$
    – xuva
    Mar 21 at 18:08













    1












    $begingroup$

    B is actually this:



    enter image description here

    Source: https://www.letscontrolit.com/wiki/index.php/DC_Voltage_divider



    so B is equal to



    $ frac10001000+1000=1/2$



    if the math is done with 1/2 instead of 2 for B you should get the right answer.






    share|improve this answer









    $endgroup$












    • $begingroup$
      Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
      $endgroup$
      – Pllsz
      Mar 21 at 17:46










    • $begingroup$
      The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
      $endgroup$
      – laptop2d
      Mar 21 at 18:28










    • $begingroup$
      Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
      $endgroup$
      – Pllsz
      Mar 21 at 18:31















    1












    $begingroup$

    B is actually this:



    enter image description here

    Source: https://www.letscontrolit.com/wiki/index.php/DC_Voltage_divider



    so B is equal to



    $ frac10001000+1000=1/2$



    if the math is done with 1/2 instead of 2 for B you should get the right answer.






    share|improve this answer









    $endgroup$












    • $begingroup$
      Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
      $endgroup$
      – Pllsz
      Mar 21 at 17:46










    • $begingroup$
      The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
      $endgroup$
      – laptop2d
      Mar 21 at 18:28










    • $begingroup$
      Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
      $endgroup$
      – Pllsz
      Mar 21 at 18:31













    1












    1








    1





    $begingroup$

    B is actually this:



    enter image description here

    Source: https://www.letscontrolit.com/wiki/index.php/DC_Voltage_divider



    so B is equal to



    $ frac10001000+1000=1/2$



    if the math is done with 1/2 instead of 2 for B you should get the right answer.






    share|improve this answer









    $endgroup$



    B is actually this:



    enter image description here

    Source: https://www.letscontrolit.com/wiki/index.php/DC_Voltage_divider



    so B is equal to



    $ frac10001000+1000=1/2$



    if the math is done with 1/2 instead of 2 for B you should get the right answer.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 21 at 17:42









    laptop2dlaptop2d

    26.8k123383




    26.8k123383











    • $begingroup$
      Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
      $endgroup$
      – Pllsz
      Mar 21 at 17:46










    • $begingroup$
      The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
      $endgroup$
      – laptop2d
      Mar 21 at 18:28










    • $begingroup$
      Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
      $endgroup$
      – Pllsz
      Mar 21 at 18:31
















    • $begingroup$
      Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
      $endgroup$
      – Pllsz
      Mar 21 at 17:46










    • $begingroup$
      The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
      $endgroup$
      – laptop2d
      Mar 21 at 18:28










    • $begingroup$
      Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
      $endgroup$
      – Pllsz
      Mar 21 at 18:31















    $begingroup$
    Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46




    $begingroup$
    Ah, I see that would fix everything. Just kinda confused. I think that Topology is different than oppose to having the op amp? Vin for the op amp is where its connected to more than one branch. Why is it the opposite?
    $endgroup$
    – Pllsz
    Mar 21 at 17:46












    $begingroup$
    The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
    $endgroup$
    – laptop2d
    Mar 21 at 18:28




    $begingroup$
    The place where you have B wrong is you need to consider it like it's own network, usually this is done by "cutting" the circuit at points finding the in and out ports. A transfer function is one way, it has an in and an out point. After you cut the circuit into A and B portions and analyze them on their own, it makes sense.
    $endgroup$
    – laptop2d
    Mar 21 at 18:28












    $begingroup$
    Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
    $endgroup$
    – Pllsz
    Mar 21 at 18:31




    $begingroup$
    Yeah thats how I figured it out thank you. This may sound stupid but ill try my best to explain it. When looking at B separated/isolated and have its Vin/Vo is the Vin the Vo of the op amp essentially? Just want an insanity check.
    $endgroup$
    – Pllsz
    Mar 21 at 18:31











    0












    $begingroup$

    You've got B wrong. The voltage gain (or in this case attenuation) from output to summing node is R1/(R2+R1). The equation you listed is the closed loop gain (at DC at least) for the entire system. see: https://www.electronics-tutorials.ws/opamp/opamp_3.html



    I'm also surprised at the transfer function you're using for the op amp. The DC gain should be much higher than 30. If you're going by this image below, note that the gain axis is in dB, so that 30 should be more like 1000.



    You have the DC gain right. I was assuming 10db/decade, not 20dB/decade as I should have for voltage gain. 10^1.5=31.6



    LM1875 open loop gain/phase






    share|improve this answer











    $endgroup$












    • $begingroup$
      Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
      $endgroup$
      – Pllsz
      Mar 21 at 17:48










    • $begingroup$
      Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
      $endgroup$
      – Pllsz
      Mar 21 at 17:54










    • $begingroup$
      If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
      $endgroup$
      – miles60
      Mar 21 at 18:08











    • $begingroup$
      I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
      $endgroup$
      – Pllsz
      Mar 21 at 18:14










    • $begingroup$
      You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
      $endgroup$
      – miles60
      Mar 21 at 18:14















    0












    $begingroup$

    You've got B wrong. The voltage gain (or in this case attenuation) from output to summing node is R1/(R2+R1). The equation you listed is the closed loop gain (at DC at least) for the entire system. see: https://www.electronics-tutorials.ws/opamp/opamp_3.html



    I'm also surprised at the transfer function you're using for the op amp. The DC gain should be much higher than 30. If you're going by this image below, note that the gain axis is in dB, so that 30 should be more like 1000.



    You have the DC gain right. I was assuming 10db/decade, not 20dB/decade as I should have for voltage gain. 10^1.5=31.6



    LM1875 open loop gain/phase






    share|improve this answer











    $endgroup$












    • $begingroup$
      Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
      $endgroup$
      – Pllsz
      Mar 21 at 17:48










    • $begingroup$
      Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
      $endgroup$
      – Pllsz
      Mar 21 at 17:54










    • $begingroup$
      If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
      $endgroup$
      – miles60
      Mar 21 at 18:08











    • $begingroup$
      I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
      $endgroup$
      – Pllsz
      Mar 21 at 18:14










    • $begingroup$
      You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
      $endgroup$
      – miles60
      Mar 21 at 18:14













    0












    0








    0





    $begingroup$

    You've got B wrong. The voltage gain (or in this case attenuation) from output to summing node is R1/(R2+R1). The equation you listed is the closed loop gain (at DC at least) for the entire system. see: https://www.electronics-tutorials.ws/opamp/opamp_3.html



    I'm also surprised at the transfer function you're using for the op amp. The DC gain should be much higher than 30. If you're going by this image below, note that the gain axis is in dB, so that 30 should be more like 1000.



    You have the DC gain right. I was assuming 10db/decade, not 20dB/decade as I should have for voltage gain. 10^1.5=31.6



    LM1875 open loop gain/phase






    share|improve this answer











    $endgroup$



    You've got B wrong. The voltage gain (or in this case attenuation) from output to summing node is R1/(R2+R1). The equation you listed is the closed loop gain (at DC at least) for the entire system. see: https://www.electronics-tutorials.ws/opamp/opamp_3.html



    I'm also surprised at the transfer function you're using for the op amp. The DC gain should be much higher than 30. If you're going by this image below, note that the gain axis is in dB, so that 30 should be more like 1000.



    You have the DC gain right. I was assuming 10db/decade, not 20dB/decade as I should have for voltage gain. 10^1.5=31.6



    LM1875 open loop gain/phase







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 21 at 18:16

























    answered Mar 21 at 17:44









    miles60miles60

    564




    564











    • $begingroup$
      Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
      $endgroup$
      – Pllsz
      Mar 21 at 17:48










    • $begingroup$
      Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
      $endgroup$
      – Pllsz
      Mar 21 at 17:54










    • $begingroup$
      If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
      $endgroup$
      – miles60
      Mar 21 at 18:08











    • $begingroup$
      I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
      $endgroup$
      – Pllsz
      Mar 21 at 18:14










    • $begingroup$
      You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
      $endgroup$
      – miles60
      Mar 21 at 18:14
















    • $begingroup$
      Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
      $endgroup$
      – Pllsz
      Mar 21 at 17:48










    • $begingroup$
      Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
      $endgroup$
      – Pllsz
      Mar 21 at 17:54










    • $begingroup$
      If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
      $endgroup$
      – miles60
      Mar 21 at 18:08











    • $begingroup$
      I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
      $endgroup$
      – Pllsz
      Mar 21 at 18:14










    • $begingroup$
      You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
      $endgroup$
      – miles60
      Mar 21 at 18:14















    $begingroup$
    Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
    $endgroup$
    – Pllsz
    Mar 21 at 17:48




    $begingroup$
    Even the link you provided as the exact same equation that I have in the question. Youre 100% right I am just confused how did I end up getting the opposite haha. Yeah The open loop gain is very small, maybe its due to being made targeting for audio applications
    $endgroup$
    – Pllsz
    Mar 21 at 17:48












    $begingroup$
    Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
    $endgroup$
    – Pllsz
    Mar 21 at 17:54




    $begingroup$
    Can you please further explain the equation I listed what the difference is, and how does one properly obtain the transfer function
    $endgroup$
    – Pllsz
    Mar 21 at 17:54












    $begingroup$
    If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
    $endgroup$
    – miles60
    Mar 21 at 18:08





    $begingroup$
    If you showed me the circuit you've drawn and asked for the gain (Vout/Vin) at DC, I know from the topology that it's 1+R2/R1. But you're deriving it fresh, and B is not the gain of the whole ciruit but the "gain" of the feedback network, which is really just a voltage divider with a "gain" of 1/2. Stop doing complex math and just think "what voltage needs to be on the output for the inverting node to equal the non-inverting node?" As far as the op-amp transfer function, do you really need the whole transfer function? The corner frequency is at ~200kHz, and this is an audio amplifier.
    $endgroup$
    – miles60
    Mar 21 at 18:08













    $begingroup$
    I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
    $endgroup$
    – Pllsz
    Mar 21 at 18:14




    $begingroup$
    I see, well I guess I am sorry trying to figure out things. I guess I don't really anything could just copy paste op amp equations, but I want reinforce my understanding as you can clearly see it isn't where I wanted it to be. After this I can say I definitely learn something which is worth it for me.
    $endgroup$
    – Pllsz
    Mar 21 at 18:14












    $begingroup$
    You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
    $endgroup$
    – miles60
    Mar 21 at 18:14




    $begingroup$
    You're right on the DC gain being 31. I was mistaking power dB (10dB per decade) for voltage db (20dB per decade).
    $endgroup$
    – miles60
    Mar 21 at 18:14











    0












    $begingroup$

    As others have stated, the fundamental flaw is in the feedback gain which is 1/2, not 2. However, I believe there's also a small error in the closed-loop equation. Let's try to derive it from the circuit above. Note, the feedback is attached to the inverting input of the op amp so there is a differencing block at the input, not summing. First, start at the output which I will label Y, and then follow it through the loop. The input is labeled X.



    Output:
    $$Y$$
    Negative feedback gain:
    $$BY$$
    Input to the op amp:
    $$X-BY$$
    Output of the op amp:
    $$A(X-BY)$$
    Which is also equal to the output:
    $$A(X-BY)=Y$$
    Now we have the loop equation. Next, derive the closed-loop gain as Output divided by Input:
    $$AX - ABY = Y$$
    $$AX = Y + ABY$$
    $$H = fracYX = fracA1+AB$$
    $$H = fracYX = fracAAB+1$$
    Let's calculate B first. If we assume that the input impedance of the op amp's inverting input is much, much larger than the impedance of the resistor feedback network, we can ignore any current draw it has from the feedback network. Larger means at least 10 times, but preferable 100 time or more. That would be about 100kΩ which I'm sure is smaller than the value on the datasheet. In that case, the current through both resistors is identical. We calculate the voltage drop of each path over it's total resistance. I will call the midpoint V and the ground point 0 in the following. The feedback gain B will be the output at the midpoint V divided by the input which happens to be Y in this system:
    $$fracV - 0R2 = fracY - 0R1 + R2$$
    $$fracVR2 = fracYR1 + R2$$
    $$V = fracR2R1 + R2Y$$
    $$B = fracVY = fracR2R1 + R2$$
    $$B = frac1kΩ1kΩ + 1kΩ = frac12 = 1/2$$
    One goal of any good op amp is to have a very, very large open-loop gain which we represent by A. To simplify the equation, we can take the limit as A approached infinity to find the ideal gain of our system:
    $$lim_Atoinfty H = fracAAB+1 = fracAAB = frac1B$$
    Since AB >> 1, we can drop the + 1 and with B being 1/2, H is 2 as the open-loop gain approaches infinity. Now, you care about the non-ideal op amp where A is less than infinity. Let's just see what happens if A is only 10:
    $$lim_Ato10 H = fracAAB+1 = frac1010(1/2)-1 = frac105+1$$
    $$lim_Ato10 H = frac106 = 5/3 approx 1.67$$
    Our actual gain drops. Put in the number from your datasheet here to find your expected gain which should be close, but slightly smaller than 2. Also, this still assumes an infinite input impedance on the op amp. That will affect the feedback gain B and should be accounted for to get a more accurate calculation. Hopefully, this helps clear up the confusion.






    share|improve this answer









    $endgroup$

















      0












      $begingroup$

      As others have stated, the fundamental flaw is in the feedback gain which is 1/2, not 2. However, I believe there's also a small error in the closed-loop equation. Let's try to derive it from the circuit above. Note, the feedback is attached to the inverting input of the op amp so there is a differencing block at the input, not summing. First, start at the output which I will label Y, and then follow it through the loop. The input is labeled X.



      Output:
      $$Y$$
      Negative feedback gain:
      $$BY$$
      Input to the op amp:
      $$X-BY$$
      Output of the op amp:
      $$A(X-BY)$$
      Which is also equal to the output:
      $$A(X-BY)=Y$$
      Now we have the loop equation. Next, derive the closed-loop gain as Output divided by Input:
      $$AX - ABY = Y$$
      $$AX = Y + ABY$$
      $$H = fracYX = fracA1+AB$$
      $$H = fracYX = fracAAB+1$$
      Let's calculate B first. If we assume that the input impedance of the op amp's inverting input is much, much larger than the impedance of the resistor feedback network, we can ignore any current draw it has from the feedback network. Larger means at least 10 times, but preferable 100 time or more. That would be about 100kΩ which I'm sure is smaller than the value on the datasheet. In that case, the current through both resistors is identical. We calculate the voltage drop of each path over it's total resistance. I will call the midpoint V and the ground point 0 in the following. The feedback gain B will be the output at the midpoint V divided by the input which happens to be Y in this system:
      $$fracV - 0R2 = fracY - 0R1 + R2$$
      $$fracVR2 = fracYR1 + R2$$
      $$V = fracR2R1 + R2Y$$
      $$B = fracVY = fracR2R1 + R2$$
      $$B = frac1kΩ1kΩ + 1kΩ = frac12 = 1/2$$
      One goal of any good op amp is to have a very, very large open-loop gain which we represent by A. To simplify the equation, we can take the limit as A approached infinity to find the ideal gain of our system:
      $$lim_Atoinfty H = fracAAB+1 = fracAAB = frac1B$$
      Since AB >> 1, we can drop the + 1 and with B being 1/2, H is 2 as the open-loop gain approaches infinity. Now, you care about the non-ideal op amp where A is less than infinity. Let's just see what happens if A is only 10:
      $$lim_Ato10 H = fracAAB+1 = frac1010(1/2)-1 = frac105+1$$
      $$lim_Ato10 H = frac106 = 5/3 approx 1.67$$
      Our actual gain drops. Put in the number from your datasheet here to find your expected gain which should be close, but slightly smaller than 2. Also, this still assumes an infinite input impedance on the op amp. That will affect the feedback gain B and should be accounted for to get a more accurate calculation. Hopefully, this helps clear up the confusion.






      share|improve this answer









      $endgroup$















        0












        0








        0





        $begingroup$

        As others have stated, the fundamental flaw is in the feedback gain which is 1/2, not 2. However, I believe there's also a small error in the closed-loop equation. Let's try to derive it from the circuit above. Note, the feedback is attached to the inverting input of the op amp so there is a differencing block at the input, not summing. First, start at the output which I will label Y, and then follow it through the loop. The input is labeled X.



        Output:
        $$Y$$
        Negative feedback gain:
        $$BY$$
        Input to the op amp:
        $$X-BY$$
        Output of the op amp:
        $$A(X-BY)$$
        Which is also equal to the output:
        $$A(X-BY)=Y$$
        Now we have the loop equation. Next, derive the closed-loop gain as Output divided by Input:
        $$AX - ABY = Y$$
        $$AX = Y + ABY$$
        $$H = fracYX = fracA1+AB$$
        $$H = fracYX = fracAAB+1$$
        Let's calculate B first. If we assume that the input impedance of the op amp's inverting input is much, much larger than the impedance of the resistor feedback network, we can ignore any current draw it has from the feedback network. Larger means at least 10 times, but preferable 100 time or more. That would be about 100kΩ which I'm sure is smaller than the value on the datasheet. In that case, the current through both resistors is identical. We calculate the voltage drop of each path over it's total resistance. I will call the midpoint V and the ground point 0 in the following. The feedback gain B will be the output at the midpoint V divided by the input which happens to be Y in this system:
        $$fracV - 0R2 = fracY - 0R1 + R2$$
        $$fracVR2 = fracYR1 + R2$$
        $$V = fracR2R1 + R2Y$$
        $$B = fracVY = fracR2R1 + R2$$
        $$B = frac1kΩ1kΩ + 1kΩ = frac12 = 1/2$$
        One goal of any good op amp is to have a very, very large open-loop gain which we represent by A. To simplify the equation, we can take the limit as A approached infinity to find the ideal gain of our system:
        $$lim_Atoinfty H = fracAAB+1 = fracAAB = frac1B$$
        Since AB >> 1, we can drop the + 1 and with B being 1/2, H is 2 as the open-loop gain approaches infinity. Now, you care about the non-ideal op amp where A is less than infinity. Let's just see what happens if A is only 10:
        $$lim_Ato10 H = fracAAB+1 = frac1010(1/2)-1 = frac105+1$$
        $$lim_Ato10 H = frac106 = 5/3 approx 1.67$$
        Our actual gain drops. Put in the number from your datasheet here to find your expected gain which should be close, but slightly smaller than 2. Also, this still assumes an infinite input impedance on the op amp. That will affect the feedback gain B and should be accounted for to get a more accurate calculation. Hopefully, this helps clear up the confusion.






        share|improve this answer









        $endgroup$



        As others have stated, the fundamental flaw is in the feedback gain which is 1/2, not 2. However, I believe there's also a small error in the closed-loop equation. Let's try to derive it from the circuit above. Note, the feedback is attached to the inverting input of the op amp so there is a differencing block at the input, not summing. First, start at the output which I will label Y, and then follow it through the loop. The input is labeled X.



        Output:
        $$Y$$
        Negative feedback gain:
        $$BY$$
        Input to the op amp:
        $$X-BY$$
        Output of the op amp:
        $$A(X-BY)$$
        Which is also equal to the output:
        $$A(X-BY)=Y$$
        Now we have the loop equation. Next, derive the closed-loop gain as Output divided by Input:
        $$AX - ABY = Y$$
        $$AX = Y + ABY$$
        $$H = fracYX = fracA1+AB$$
        $$H = fracYX = fracAAB+1$$
        Let's calculate B first. If we assume that the input impedance of the op amp's inverting input is much, much larger than the impedance of the resistor feedback network, we can ignore any current draw it has from the feedback network. Larger means at least 10 times, but preferable 100 time or more. That would be about 100kΩ which I'm sure is smaller than the value on the datasheet. In that case, the current through both resistors is identical. We calculate the voltage drop of each path over it's total resistance. I will call the midpoint V and the ground point 0 in the following. The feedback gain B will be the output at the midpoint V divided by the input which happens to be Y in this system:
        $$fracV - 0R2 = fracY - 0R1 + R2$$
        $$fracVR2 = fracYR1 + R2$$
        $$V = fracR2R1 + R2Y$$
        $$B = fracVY = fracR2R1 + R2$$
        $$B = frac1kΩ1kΩ + 1kΩ = frac12 = 1/2$$
        One goal of any good op amp is to have a very, very large open-loop gain which we represent by A. To simplify the equation, we can take the limit as A approached infinity to find the ideal gain of our system:
        $$lim_Atoinfty H = fracAAB+1 = fracAAB = frac1B$$
        Since AB >> 1, we can drop the + 1 and with B being 1/2, H is 2 as the open-loop gain approaches infinity. Now, you care about the non-ideal op amp where A is less than infinity. Let's just see what happens if A is only 10:
        $$lim_Ato10 H = fracAAB+1 = frac1010(1/2)-1 = frac105+1$$
        $$lim_Ato10 H = frac106 = 5/3 approx 1.67$$
        Our actual gain drops. Put in the number from your datasheet here to find your expected gain which should be close, but slightly smaller than 2. Also, this still assumes an infinite input impedance on the op amp. That will affect the feedback gain B and should be accounted for to get a more accurate calculation. Hopefully, this helps clear up the confusion.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 21 at 21:41









        penguin359penguin359

        1556




        1556



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Electrical Engineering Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f428390%2fcircuit-analysis-obtaining-close-loop-op-amp-transfer-function%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

            Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

            Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High