Beruflich Dokumente
Kultur Dokumente
Student Name:....................................................................
Student ID:..........................................................................
Major: .......................................................................... ......
Year of study: .....................................................................
Lecturer:.............................................................................
Personal Tutor:..................................................................
Subject:...............................................................................
Assignment Title/Number................................................
I declare that all material in this assignment is my own work except where there is clear
acknowledgment or reference to the work of others and I have read the University statement on
Academic Misconduct (Plagiarism) in the Student Handbook.
Signed:.............................................................. Date:..............................................................
Problem 1.
To solve this problem MATLAB software has been used. My ID number is
201493886. Last four digits 3886.
K = 3886*9/10000=3.4974
Transfer function is equal to:
2
s( s+ 1)(s+ 4)
2K
6.9948
T ( s )=
=
= 3
2
2
s ( s+1 ) ( s +4 ) +2 K s +5 s + 4 s +6.9948
1+ K
s ( s+1)(s +4)
K
Y ( s)
2K
=
R ( s ) S ( s+ 1 )( s+ 4 ) +2 K
So when s goes to 0 steady state error for step input is zero independently from
K.
Second inputs (disturbance) error is calculated in next way:
Y (s)
2
=
T D ( s) s ( s +1 ) ( s+ 4 )+ 2 K
For step disturbance input Td(s) = A/s:
lim s 0 sE ( s )= A / K
The condition for this task is to minimize the error so K should be big as much as
possible. It was given that K maximum can be 10 in order to keep the system
stable. So in our design for the value of K 10 has been chosen.
Problem 3.
In this question PID parameters should be chosen in order to obtain a system
with overshoot less 5%, also Ts 2 secconds. In this task also MATLAB has been
used.
G ( s )=
10
s (s +2)(s+4)
To command window just the transfer function has been written and simple code
pidtool automatically makes tuning process.
Input:
f = tf([0 0 0 10],[1 6 8 0]);
pidtool(f,p)
Output:
pidtool(f,pid)
Output:
1
6
s0
10Kp
6 810 Kp
6
8
10Kp
0
0
6 810 Kp
>0
6
68 10Kp>0
4.8 > Kp
So it means that Ku is equal to 4.8.
(jw)3 + 6(jw)2 + 8(jw) + 10Kp = 0
-w3j 6w2 + 8wj + 10Kp = 0
1) 10Kp = 6w2
w = 2
2) w3 = 8w
w = 0, 2
Pu = 2/w = 2.22 s
Type of Controller
P
PI
General Formula
Kp = 0.5Ku
Kp = 0.45Ku
Optimum Gain
Kp = 2.4
Kp = 2.16
Parameters
Kp = 2.4
Kp = 2.16
PID
TI = Pu/1.2
Kp = 0.6Ku
TI = 1.85
Kp = 2.88
KI = 1.17
Kp = 2.88
TI = 0.5Pu
TI = 1.11
KI = 2.59
TD = 0.125Pu
TD = 0.278
KD = 0.80
2) the second method is configuring the Kp until the system becomes oscillatory
and this value is considered as Ku. Code:
Kp=4.8;
Ki=0;
Kd=0;
C=pid(Kp,Ki,Kd);
T=feedback(C*f,1);
step(T)
Output:
The period can be obtained from the difference between two points at the top.
From this method it can be confirmed that Ku is 4.8 and Pu is 2.22. Next steps are
identical to previous one.
Conclusion
In this project we analyzed PID contoller and some tuning methods. Application
MATLAB greatly easened the work and proved to be very useful tool for designing
PID. From third tasks results show that implementing only P or PI controllers can
not satisfy initial conditions, which can be explained with their jointly effect on
the overshoot, both of them increase it. By using software, PID can be easely
adjusted to any parameter, changing the variables for settling time and rise
time.
In fourth task Ziegler-Nichols tuning method was used in two different ways. If we
compare this values with the data on 3rd problem, some divergences can be
observed. But it should be kept in mind the Ziegler-Nichols method gives only
estimate numbers.