Using the properties of second-order systems, determine Kp and Kd such that the overshoot is 10 percent and the settling time is 1 second. Confirm that your design meets the requirements by plotting the step response.
Given the percent overshoot %OS and settling time based on the damping ratio ζ and natural frequency ωn:
%OSTs=e1−ζ2−ζπ×100%=ζωn4
For 10% overshoot, we can solve for ζ: ζ=π2+ln2(%OS/100)−ln(%OS/100)≈5.916×e−1.
For 1 second settling time, we can solve for ωn: ωn=ζTs4≈6.76rads.
Given second-order systems’ transfer function:
G(s)=s2+2ζωns+ωn2ωn2
and the transfer function of the PID controller in the given system is given by:
Gc(s)=Kp+Kds
The transfer function is then followed by:
T(s)=G(s)Gc(s)=s2+7s+5Kp+Kds
We then have ωn and ζ to solve for Kp and Kd:
7+KpKd5+Kd=2ζωn=ωn2
Thus, Kp=40.784365358764106 and Kd=0.9999999999999991.
The following is the code snippet for generating the graphs and results:
problem 2.
Consider the following system:
set a.
If Kd=Kp=Ki=1, is the system stable? (Please determine this by explicitly finding the poles of the closed-loop system and reasoning about stability based on the pole locations.)
Given that Kd=Kp=Ki=1, The PID controller transfer function is:
C(s)=Kp+sKiKds=1+s1+s
The open-loop transfer function is given by: G(s)=C(s)P(s)=(1+s+s1)s2+3s+11.
Thus the closed-loop transfer function is given by T(s)=1+G(s)G(s)=s3+s2+4s+2s3+s2+1.
We need to solve s3+s2+4s+2=0 to find the poles of the closed-loop system.
which yields [-0.23341158+1.92265955j -0.23341158-1.92265955j -0.53317683+0.j] as poles. Since all the poles have negative real parts, the system is stable.
set b.
Fix Ki=10. Using the Routh-Hurwitz criterion, determine the ranges of Kp and Kd that result in a stable system.
Applying the Routh-Hurwitz criterion, we have the following table:
which results in the following table:
The conditions for stability from the Routh-Hurwitz criterion states that all the elements in the first column of the Routh array must be positive. Thus, we have the following inequalities:
Kd+3−Kd+Kp−2>0>0
Solving for Kd and Kp yields the following ranges:
KdKp>0>2
set c.
For the system in the first question, suppose that you want the steady-state error to be 10%. What should the values of Kp and Kd be? (Hint: the system is not in the unity gain form that we discussed in detail in lecture, so be careful.)
The open-loop transfer function is given by:
G(s)H(s)=(Kp+Kds)s2+7s+51
The transfer function for closed-loop is given by:
T(s)=1+G(s)H(s)G(s)H(s)
From final value theorem, the steady-state error is given by