Control Exp 9 Student Manual
Control Exp 9 Student Manual
Control Exp 9 Student Manual
Introduction:
A controller is one which compares controlled values with the desired values and has a function
to correct the deviation produced. Among many controllers, Proportional-integral-derivative
controllers are widely used in industrial control systems because of the reduced number of
parameters to be tuned. Besides, they provide many other advantages as mentioned below.
1. Controllers improve steady state accuracy by decreasing the steady state errors.
2. As the steady state accuracy improves, the stability also improves.
3. They also help in reducing the offsets produced in the system.
4. Maximum overshoot of the system can be controlled using these controllers.
5. They also help in reducing the noise signals produced in the system.
6. Slow response of the over damped system can be made faster with the help of these
controllers.
The transient response of a practical control system often exhibits damped oscillation before
reaching steady state value. In specifying the transient response characteristics of control
system to unit step input, it is common to specify the following
To fulfill the above properties and to meet the various conflicting and demanding design
specification, a control system usually requires some adjustment. This adjustment is called
tuning. There are many techniques available in literature for designing & tuning a Proportional-
Integral (PI) and Proportional-Derivative (PD) controller. In this experiment, designing of a PI
and PD controller will be discussed.
Feedback Systems are very useful and widely used in amplifier circuits, oscillators, process
control systems as well as other types of electronic systems. But for feedback to be an effective
tool it must be controlled as an uncontrolled system will either oscillate or fail to function. Fig.
1 represents a cascade compensation system where PI or PD controller can be used as
compensator. The purpose of compensator is to make the error [E(s)] zero at steady state.
PI Controller:
As the name suggests it is a combination of proportional and an integral controller the output
is equal to the summation of proportional and integral of the error signal.
𝐾𝑖 𝐾
Taking Laplace = 𝐾𝑃 𝐸(𝑠) + 𝐸(𝑠) = 𝐸(𝑠) [𝐾𝑃 + 𝑠𝑖 ]
𝑠
𝐾
Hence the transfer function of such controller is [𝐾𝑃 + 𝑠𝑖 ] and can be realized as shown in
Fig.2.
Fig.2. PI controller
Steady-state error can be improved by placing an open-loop pole at the origin, because this
increases the system type by one. For example, a Type 0 system responding to a step input with
a finite error responds with zero error if the system type is increased by one.
To see how to improve the steady-state error without affecting the transient response, look at
Fig. 3(a). Here we have a system operating with a desirable transient response generated by the
closed-loop poles at A.
Now, if we add a pole at the origin to increase the system type, the angular contribution of the
open-loop poles at point A is no longer 180 degree and the root locus no longer goes through
point A, as shown in Fig. 3(b). To solve the problem, we also add a zero close to the pole at
the origin, as shown in Fig. 3(c). Now the angular contribution of the compensator zero and
compensator pole cancel out, point A is still on the root locus, and the system type has been
increased. Furthermore, the required gain at the dominant pole is about the same as before
compensation, since the ratio of lengths from the compensator pole and the compensator zero
is approximately unity. Thus, we have improved the steady-state error without appreciably
affecting the transient response. A compensator with a pole at the origin and a zero close to the
pole is called an ideal integral compensator.
In general this controller improves steady state part affecting the transient part.
PD Controller:
A controller in the forward path, which changes the controller output corresponding to
proportional plus derivative of error signal is called PD controller.
𝑑𝑒(𝑡)
i.e. Output of controller = 𝐾𝑃 𝑒(𝑡) + 𝐾𝑑 𝑑𝑡
Taking Laplace = 𝐾𝑃 𝐸(𝑠) + 𝑠𝐾𝑑 𝐸(𝑠) = 𝐸(𝑠)[𝐾𝑃 + 𝑠𝐾𝑑 ]
The transfer function of such controller is [𝐾𝑃 + 𝑠𝐾𝑑 ]. This can be realized as shown in fig.3.
Fig. 3. PD Controller
𝑛 𝜔 2
Let consider the plant, 𝐺(𝑠) = 𝑠(𝑠+2𝜉𝜔
𝑛)
𝐾𝑃 = lim 𝐺(𝑠)𝐻(𝑠) = ∞
𝑠→0
Design Process:
PI Controller:
PD Controller:
(a) ξ (zeta) is given, find dominant pole (old) from the root locus of uncompensated system,
𝑆𝑑𝑜𝑙𝑑 = −ξ𝜔𝑛 + 𝑗𝜔𝑛 √1 − ξ2
𝑆𝑑𝑜𝑙𝑑 = −𝜎𝑑 + 𝑗𝜔𝑑
4 4
(b) Now find old settling time, 𝑇𝑆𝑜𝑙𝑑 = ξ𝜔 = 𝜎
𝑛 𝑑
(a) From the question, find new 𝑇𝑆𝑛𝑒𝑤 and new 𝜔𝑛 [ξ will remain unchanged]
(b) Find dominant pole (new), 𝑆𝑑𝑛𝑒𝑤 = −ξ𝜔𝑛 + 𝑗𝜔𝑛 √1 − ξ2
𝑆𝑑𝑛𝑒𝑤 = −𝜎𝑑 + 𝑗𝜔𝑑
(c) Design the location of compensating zero, −𝑍𝐶
➢ Finding necessary angle (𝛳𝑍 ) to locate 𝑆𝑑𝑛𝑒𝑤 on root locus.
𝜔𝑑
➢ tan 𝛳𝑍 = 𝑍 −𝜎 then find, −𝑍𝐶
𝑐 𝑑
You must solve the following questions and make a short report on that before the start of the
lab-
1. Different configurations of controllers and their applications
2. Get all the theoretical basics on active circuit and passive circuit realization of PI and
PD controller.
Apparatus:
Precautions:
Students should take the following precautions while conducting the experiment –
Experimental Procedure:
Problem Statement 1:
A unity negative feedback system which is operating with a closed loop response that has 58%
overshoot and the following transfer function:
𝑲
𝑮𝒖 (𝒔) = (𝒔+𝟏)(𝒔+𝟐)(𝒔+𝟏𝟎);
Now-
(a) Find the steady state error for a unit step input
(b) Design a PI controller to make the steady state error to zero.
(c) By using both theoretically and MATLAB codes show that steady state error becomes
zero?
Solution:
|ln(0.58)|
𝜉= ≈ 0.174
√|ln(0.58)|2 + 𝜋 2
164.6
It is a type – 0 system, 𝑂𝑙𝑑 𝑜𝑟 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝐾𝑃𝑜 = lim 𝑮𝒖 (𝒔) = = 8.23
𝑠→0 20
1 1
Thus, 𝑒𝑜𝑙𝑑 (∞) = 1+𝐾 = 1+8.23 = 0.1083
𝑃𝑜
Arbitrarily selecting, −𝑎 = −0.1
𝒔+𝟎.𝟏
Finally, transfer function of PI compensator, 𝑮𝑪 = 𝒔
Now, implement the controller in MATLAB Simulink and plot the output and error signal.
Find the location of compensating zero for designing a PD compensator to yield a 16%
overshoot, with a threefold reduction in settling time. [Uncompensated System has ωn= 2.391
rad/s].
Solution:
−𝜋𝜉
( ⁄ )
We know, %𝑂. 𝑆 = 𝑒𝑥𝑝 √1−𝜉 2 ×100
Hence
|ln(0.16)|
𝜉= ≈ 0.504
√|ln(0.16)|2 + 𝜋 2
Now, find dominant pole (old) from the root locus of uncompensated system,
(a) From the question, find new 𝑇𝑆𝑛𝑒𝑤 and new 𝜔𝑛 [ξ will remain unchanged which is 0.504]
3.33 ξ𝜔𝑛 ×3 1.2×3
𝑇𝑆𝑛𝑒𝑤 = = 1.11 𝑠𝑒𝑐 and new 𝜔𝑛 = = ≈ 7.14 𝑟𝑎𝑑/𝑠
3 ξ 0.504
Calculation:
Now, implement the controller in MATLAB Simulink and plot the output and error signal.
Fig. 18. Input command and output values of the designed system
In this part, students will learn how to tune a PID controller using MATLAB PID controller
tuning tool. In practice, there may be a situation where the plant transfer function is unknown.
For this type of scenario MATLAB PID controller tuning toolbox is more useful. The following
example illustrate the method of tuning a PID controller for a DC motor speed control
application.
Where,
𝑘𝑔.𝑚2
J= Moment of Inertia of the Rotor [0.01 ( 𝑠2 )]
b= Damping Ratio of the Mechanical System [0.1 𝑁𝑚𝑠]
𝑁𝑚
K= Electromotive Force Constant [0.01 𝐴𝑚𝑝]
R= Electric Resistance [1Ω]
L= Electric Inductance [0.5𝐻]
Using the above-mentioned values, the close loop feedback system of a DC motor with PID
controller is designed in MATLAB Simulink, which is shown in fig. 22.
Fig. 22. Close loop feedback system of a DC motor with PID controller in Simulink
Now click on the PID controller block. Fig. 26 represents the default values for PID controller
block.
© Dept. of EEE, Faculty of Engineering, American International University-Bangladesh (AIUB) 18
Fig. 26. PID controller block before tuning
Now, all the values of PID controller is automatically updated as shown in fig. 26.
To make the response faster, slide the Response time and Transient Behavior slider as per your
requirement. You will see the corresponding plot in the window. After tuning as per your
requirement, click ‘Update Block’.
Fig. 29 represents the desired and measured speed of DC motor after tuning for faster response.
Fig. 29. Desired and measured speed of DC motor after tuning for faster response
1. Explain and comment Fig. 8,9,11,12 and 17,18,20,21 of the experiment briefly.
2. A unity negative feedback system which is operating with a closed loop response that has
𝟏
15% overshoot, setting time 1.5 sec and the following transfer function: 𝑮(𝒔) = 𝒔(𝒔+𝟐)(𝒔+𝟕);
Now design a PI and PD controller for the system.
Interpret the data/findings and determine the extent to which the experiment was successful in
complying with the goal that was initially set. Discuss any mistake you might have made while
conducting the investigation and describe ways the study could have been improved.
Reference(s):
[1] Norman S. Nise, “Control Systems Engineering”, available Edition, John Wiley & Sons
Inc.
[2] Farid Golnaraghi, Benjamin C. Kuo, “Automatic Control Systems”, 9th Edition, Prentice-
Hall, 1982