Hi again sir,
The example was interesting and clearing the basic doubt.
please give more examples.
Hello again,
Here is another example taken from an actual circuit that can be built and tested or simulated to compare calculated results with the simulated results. The circuit is shown in the diagram attached. For simulation you can make the gains shown as '1' as op amp voltage followers. For the other gain G you can make that a non inverting op amp with the gain set to whatever we want G to be.
In the diagram we see on top a feedback system. The input is a unit step.
We make R1=R2=R3=1 and C1=C2=C3=1 later for simplicity.
The transfer function is:
G/(1+G*H)
and H is:
H=1/(s*R*C+1)^3
and we'll leave G as G for now.
So the transfer function is:
G/(1+G/(s*R*C+1)^3)
which simplifed is:
G*(s*R*C+1)^3/(G+(s*R*C+1)^3)
and replacing R with 1 and C with 1 as above we get:
G*(s+1)^3/(G+(s+1)^3)
Multiplying top and bottom out we get:
(s^3+3*s^2+3*s+1)*G/(s^3+3*s^2+3*s+1+G)
So we have:
F(s)=(s^3+3*s^2+3*s+1)*G/(s^3+3*s^2+3*s+1+G)
Now we compute the output with a step input, we get:
F(s)=(1/s)*(s^3+3*s^2+3*s+1)*G/(s^3+3*s^2+3*s+1+G)
Now we multiply F(s) above by s and we get:
(s^3+3*s^2+3*s+1)*G/(s^3+3*s^2+3*s+1+G)
Now we take the limit of the above as s goes to zero:
lim[s-->0](s^3+3*s^2+3*s+1)*G/(s^3+3*s^2+3*s+1+G)
which equals:
G/(G+1)
So the final value output is G/(G+1) which is solved for any gain G.
We could have make it a tiny bit easier by replacing G with the
actual gain first, but this way we have the solution for any gain.
Any gain that is not going to cause an oscillation that is !
Now the steady state error however is the final value subtracted from 1, so
we have:
SSError=1-G/(G+1)
Since we have this formula now we can take a look at the SSE for several gain
values and see what we end up with here...
With G=1, we have:
SSE=1-1/(1+1)=1-1/2=1/2=0.50
so we have 50 percent error with a gain of only 1.
With G=2 we have:
SSE=1-2/(2+1)=1-2/3=1/3=0.3333
so we have 33 percent error with a gain of 2, and we can
note that the error went down already.
With G=5 we have:
SSE=1-5/(5+1)=1-5/6=1/6=0.1667
so we have about 17 percent error now, and that error went
down once again.
With G=7 we have:
SSE=1-7/(7+1)=1-7/8=1/8=0.1250
so now we have 12.5 percent error and again the error went
down.
Now with reserves we make G=8 and so we have:
SSE=1-8/(8+1)=1-8/9=1/9=0.1111
and it LOOKS like the error went down again,
but the problem now is that the poles moved either onto the j axis or
into the right half plane (see lower diagram in the attachement),
so we can not use this gain in the circuit (unless of course we are
building an oscillator, which we do not consider to be a valid solution
when we are looking for the steady state error).
So in conclusion we see that we can get better and better steady state
error by increasing the feedforward gain, but at some point the circuit becomes
unstable so we can not go any higher with the gain.