10 Dayschool 1 2
10 Dayschool 1 2
10 Dayschool 1 2
Engineering
Course Coordinators –
Mr. Hiran Wijesuriya (Dept. of Mechanical Eng.))
Email:[email protected]
2
DMX4543
CA mark
CA mark = 1B(CAT)0.4 + 2B(CAT)0.3 + AVG(TMA,OQ)0.1 + AVG(LAB,MP)0.2
>= 40
&
LAB>=50
MP>=50
Eligibility criteria :
If [LAB] ≥ 50% AND [CA] ≥ 40%
Virtual Class :
You can access the moodle class from:
http://elearn.ou.ac.lk/
User name: S-ID Password-NIC
Very Important:
# Late submissions will not be accepted.
# Labs are compulsory.
3
DMX4543
In this course …
• Introduction to control systems
• Modeling of control systems
– Mathematical equations, Signal Flow Graphs,
Transfer function representation, Block diagram
representation, State Space Representation
• Time and Frequency domain analysis
– Transient analysis, Steady state analysis
• Stability of control systems
– Routh Hurwitz criteria, Root Locus plots
– Bode plots, Nyquist plots, Nichol's charts
• Design of control systems using classical
methods
– PI, PD, PID controllers etc.
• Use of MATLAB & Simulink in control systems
4
DMX4543
References:
You may also use some other books/ web sites of your choice.
5
DMX4543
Contents:
• Overview
• Introduction to Control Systems
• Mathematical Modelling and
Transfer Functions
• Transfer Function Calculations
• Block Diagrams
• Signal Flow Graphs
• State Space Representation
• Transient Analysis
• Steady state Analysis
6
DMX4543
Overview
7
DMX4543
Introduction
In a system there are three major stages
as follows:
Sensor
11
DMX4543
Example
12
DMX4543
•When eyes are open – closed loop control system
Input Output
Controller Actuator Process
Desired Brain Legs Walking
Actual
Destination
destination
Sensor
Eyes
Input Controller
Actuator Process
Output
13
DMX4543
• Note that a typical control system
includes the sensors, actuators, and the
control law.
– The sensors and actuators need not
always be physical devices.
– A good selection of the sensor and
actuator can greatly simplify the control
design process.
– The design of the control law given the
rest of the system (although we will need to
model the system).
14
DMX4543
Why Use Control?
• Typically easy question to answer for
aerospace because many vehicles
(spacecraft, aircraft, rockets) and
aerospace processes (propulsion) need
to be controlled just to function.
17
DMX4543
• Select sensors & actuators
– What aspects of the system are to be
sensed and controlled?
– Consider sensor noise and linearity as key
discriminators.
– Cost, reliability, size, . . .
• Obtain model
– Analytic (FEM) or from measured data
– Evaluation model → reduce size/
complexity → Design model
– Accuracy? Error model?
18
DMX4543
• Design controller
– Select technique (SISO, MIMO), (classical,
state-space)
– Choose parameters (ROT, optimization)
19
DMX4543
Example: Blimp Control
• Control objective
– Stabilization
– Red blimp tracks the motion of the green blimp
• Sensors
– GPS for positioning
– Compass for heading
– Gyros/GPS for roll altitude
20
DMX4543
• Actuators
– electric motors (propellers) are very
nonlinear.
• Dynamics
– “rigid body” with strong apparent mass
effect.
– Roll modes.
• Modeling
– Analytic models with parameter
identification to determine “mass”.
• Disturbances
– wind
21
DMX4543
22
DMX4543
23
DMX4543
As an example: Manual control system for regulating
the level of the fluid in a tank
Visual (Sensor)
Operator
(Controller)
Desired level
(Reference)
Valve (Actuator)
24
DMX4543
Desired Controller Actuator Process
level Actual
level
Operator Valve Tank
Visual
Sensor
25
DMX4543
How model a system?
Mathematical representation
-Transfer functions
- State space representation
Graphical representation
-Block diagrams
-Signal Flow Graph
26
DMX4543
Mathematical Modelling and
Transfer Functions
output
t. f
input
C(s) Output in Laplace domain
=
R(s) Input in Laplace domain
27
DMX4543
Properties of the Transfer Function
1. Transfer function is defined only for a
linear time-invariant system. It is not
defined for non-linear systems.
2. The transfer function can be defined:
LaplaceTransformoutput variable
Transfer function
LaplaceTransforminput variable
29
DMX4543
• Basic Building blocks – Mechanical systems
Impedance
Component Force - velocity Force - displacement
Z M (s) F (s) / X (s)
Spring
x(t )
t
f (t ) K v( )d f (t ) Kx (t ) K
f (t ) 0
K
Viscous damper
x(t )
dx(t ) fvs
f (t ) Fv v(t ) f (t ) f v
f (t ) dt
fv
Mass
x(t )
dv(t ) d 2 x(t ) Ms 2
f (t ) M f (t ) M
M f (t ) dt dt 2
30
DMX4543
Eg:
Find the transfer function X(s) F(s) of the
following Spring-mass damper system.
K
M f (t )
c x(t )
Ms X ( s ) csX ( s ) KX ( s ) F ( s )
2
2
( Ms cs k ) X ( s ) F ( s )
X ( s) 1
G ( s)
F ( s ) Ms cs K
2
33
DMX4543
We can obtain the following equations:
2
For the mass, F (s) Ms X (s)
34
DMX4543
Block Diagrams
Block diagram of a feedback control system
+
R E C
G
G3
R G1 G4 G2 C
H1
H2
36
DMX4543
Step 1:
Combine all cascade block.
G1 G4 G1G4
Step 2:
Combine all parallel blocks.
37
DMX4543
Step 3: Eliminate all minor feedback loops
H2
38
DMX4543
Finally we get the following canonical form.
G1G4 G1 G2
1 G1G4 H 1
H2
39
DMX4543
Signal Flow Graphs
Signal Flow Graph from block diagrams
H(s)
40
DMX4543
Eg. Draw the signal flow graph of the
following block diagram.
41
DMX4543
Solution
42
DMX4543
Mason’s Gain Formula Yout M k k
N
M
Yin k 1
Where,
y in i p node variable. yout o p node varible.
M = gain between and
N = total number of forward paths between &
Mk = gain of the kth forward path between &
1 Li1 L j 2 Lk 3 ......
i j k
Solution
46
DMX4543
Transient Analysis
After we obtain a mathematical representation
of a subsystem, it is then analysed for its time-
domain response (transient and steady-state
responses) to see if these characteristics yield
the desired behaviour.
Response Characteristics
A control system provides an output or response
for a given input or stimulus.
Input - represents a desired response
Output - represents the actual response
47
DMX4543
Consider the operation of an elevator system.
50
DMX4543
First order systems
51
DMX4543
Time Constant –
We call 1 a as the time constant of the response.
Rise Time –
Rise time can be defined as the time taken for
the waveform to go from 0.1 to 0.9 of its final
value.
Settling Time -
Settling time is the time for the response to
reach and stay within 2% of its final value.
52
DMX4543
Second order systems
Over damped response -
9 9
C (s)
s s 9 s 9 ss 7.854 s 1.146
2
7.854 t 1.146 t
The output, c(t ) 1 0.171e 1.171e
53
DMX4543
Under damped response -
9 9
The output response C(s) =
s(s 2s 9)
2
s(s 1 j 8)
c(t )
s 1 j 8
54
DMX4543
Un-damped response -
9 9
The transfer function, C ( s )
ss 9 ss 3 j 2
2
55
DMX4543
Critically Damped Response -
9 9
The transfer function, C ( s )
s s 6 s 9 s s 3
2 2
56
DMX4543
Under damped second order systems
The two parameters associated with
second order systems, and n
- Damping ratio n - Natural frequency
Transient Specifications
.
57
DMX4543
Note :
All these definitions are also valid for systems of higher order.
58
DMX4543
This information can be used to
determine whether the nature
of the response do or do not
degrade the performance of the
system.
59
DMX4543
Steady state Analysis
What is steady state error?
We can define the steady state error as the
difference between the input and the output
for a given test input as, t
60
DMX4543
Name Physical Time Laplace
interpretation Function Transform
Step constant
position 1 1/s
Parabola constant
accelerator 1/t2 1/s3
61
DMX4543
Type of a control system
Consider a unity feed back control system
with the following open loop transfer function:
K(Ta s 1 )(Tb s 1 ).....(Tm s 1 )
G s N
S T1 s 1)(T2 s 1)......(T p s 1
N
The term S in the denominator represents
a pole of multiplicity N at the origin.
A system is called ‘Type 0’ when N = 0
‘Type 1’ when N = 1
‘Type 2’ when N = 2 etc.
Note that this is different from the ‘order’ of a system.
62
DMX4543
Sensitivity of a control system
Sensitivity means the degree to which changes
in the system parameters affect system transfer
function and hence performance.
Assuming a function F and a parameter P;
63
DMX4543
Eg. Consider the system
64
DMX4543
Solution
K
Closed Loop Transfer Function
s 2 as K
a δT
sensitivity s T:a
T δa
a Ks
. 2
K (s as K) 2
2
s as K
as
s 2 as K
66
DMX4543
MATLAB : Text mode
x = -pi:.1:pi;
y = sin(x); 1
plot(x,y) 0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
-4 -3 -2 -1 0 1 2 3 4
67
DMX4543
MATLAB : GUI mode
68
DMX4543
Simulink is a software package for
modeling, simulating, and analyzing
dynamic systems.
Eg: Automotive Suspension
69
DMX4543
70
DMX4543
Running the
Simulation
71
DMX4543
A contour plot with
gradient arrows shows the
temperature & heat flux.
The temperature
gradient is displayed
using 3-D plot tools.
www.mathworks.com
72
DMX4543
Why MATLAB/ Simulink?
• Accuracy
• Extremely fast
• Can apply to Complex systems
• Algorithm development
• Modeling, simulation, and prototyping
• Data analysis, exploration, and
visualization
• Scientific and engineering graphics
73
DMX4543
In next sessions…
• Analysis of systems
– Transient analysis
– Steady state analysis
• Stability of systems
– How it is check?
– Time domain & frequency domain
• Design of control systems
– Using classical Controllers
74
DMX4543
Thank you.
75
DMX4543