Control Lab 9
Control Lab 9
Criteria (Taxonomy Excellent (4) Proficient (3) Basic (2) Below Basic (1) Student’s
Level) Score
guidelines
The report
completely
discusses the The report
discusses the
required experiment/lab
The report The report is
discusses the work but have totally
experiment/lab
To discuss the actual required
work in own words irrelevant
experiment/task irrelevant to the
with some relevant experiment/lab work information experiment/lab
additional
work
information
Calculations and
data analysis were
performed
accurately, but Most data and
minor errors were observations were
Calculations and recorded Calculations
data analyses were and data
performed clearly, made both in
adequately, but
To perform calculations with several analyses of lab
concisely, and calculations and in
and data analysis applying correct were missing
significant errors
accurately, with units or omissions.
correct units.
Graphs, if
necessary, were
drawn accurately Graphs, if Major
Graphs, if
necessary, were necessary, were components of
and neatly and
To present results in the drawn adequately drawn but lab were
were clearly
form of graphs inadequately. missing
labelled.
1
DEPARTMENT OF MECHATRONICS ENGINEERING
LAB NO: 09
SOFTWARE OR TOOL:
MATLAB (with control toll box)
THEORY:
CONTROLLER:
A controller is a mechanism that seeks to minimize the difference between the actual value of a
system (i.e. the process variable) and the desired value of the system (i.e. the set point). Controllers
are a fundamental part of control engineering and used in all complex control systems.
WHY CONTROLLER:
1. Controllers improve the steady-state accuracy by decreasing the steady state error.
3. Controllers also help in reducing the unwanted offsets produced by the system.
5. Controllers can help in reducing the noise signals produced by the system.
2
DEPARTMENT OF MECHATRONICS ENGINEERING
OBJECTIVES OF A CONTROLLER:
TYPES OF CONTROLLERS:
There are two main types of controllers: continuous controllers, and discontinuous controllers.
The main feature of continuous controllers is that the controlled variable (also known as the
manipulated variable) can have any value within the controller’s output range. Now in the
continuous controller theory, there are three basic modes on which the whole control action takes
place, which are:
1. Proportional controllers.
2. Integral controllers.
3. Derivative controllers.
We use the combination of these modes to control our system such that the process variable is
equal to the setpoint (or as close as we can get it). These three types of controllers can be combined
into new controllers:
1. Proportional and integral controllers (PI Controller)
2. Proportional and derivative controllers (PD Controller)
3. Proportional integral derivative control (PID Controller)
3
DEPARTMENT OF MECHATRONICS ENGINEERING
With proportional controller we reduced the rise time, reduce the steady-state error, and
decreased the settling time by a small amount but Maximum overshoot occur.
With proportional Derivative controller we reduce the overshoot, the settling time but it have negligible
effect on the rise time and steady state error.
With proportional integral controller we reduce the rise time, the steady state error but it Increases the
maximum overshoot.
P, PD AND PI CONTROLLER:
The proportional controller (KP) will have the effect of reducing the rise time and will reduce, but
never eliminate, the steady state error. An integral controller (KI) will have the effect of
eliminating the steady state error, but it may make the transient response worse. A derivative
control (KD) will have the effect of increasing the stability of the system, reducing the overshoot
and improving the transient response.
Table: 9.1
4
DEPARTMENT OF MECHATRONICS ENGINEERING
Fig: 9.1
METHEMATICAL MODELLING:
Let:
m = 1[kg]
b = 10[Ns/m]
k = 20[N/m]
𝑋(𝑠) 1
=
𝐹(𝑠) 𝑠 + 10𝑠 + 20
5
DEPARTMENT OF MECHATRONICS ENGINEERING
step(system)
stepinfo(system)
Fig: 8.1
= 1- 0.05=0.95
The error is too large so using proportional will minimize the SS error.
6
DEPARTMENT OF MECHATRONICS ENGINEERING
Fig: 9.2
clear all
clc
clear
num=[1];
dnum=[1 10 20];
system=tf(num,dnum)
Kp = 1;
C = pid(Kp)
T = feedback(C*system,1)
linearSystemAnalyzer(T)
clear all
clc
clear
num=[1];
dnum=[1 10 20];
system=tf(num,dnum) ;
Kp1 =1;
C1 = pid(Kp1);
T1 = feedback(C1*system,1);
Kp2 =10;
C2 = pid(Kp2);
7
DEPARTMENT OF MECHATRONICS ENGINEERING
Fig: 9.3
9
DEPARTMENT OF MECHATRONICS ENGINEERING
Fig: 9.5
RESULT:
Fig: 9.6
10
DEPARTMENT OF MECHATRONICS ENGINEERING
DISCUSSION:
The above experimentation shows that with PID controller we can
IN LAB TASK:
PART A AND B:
Table: Part b
11
DEPARTMENT OF MECHATRONICS ENGINEERING
GRAPH:
12
DEPARTMENT OF MECHATRONICS ENGINEERING
DISCUSSION:
By increasing Kp, Ki is also increasing. Investigating the results shows that rise time has decreased
and overshoot has increased while settling time and steady state error has slightly decreased.
PART C:
Table: Part c
13
DEPARTMENT OF MECHATRONICS ENGINEERING
DISCUSSION:
By increasing Kd, the results shows that rise time has decreased and overshoot has decreased while
settling time has decreased and steady state error has slightly increased.
References
[1] "https://www.electrical4u.com/types-of-controllers-proportional-integral-derivative-controllers/,"
[Online]. [Accessed 11 June 2021].
14