EEE 3106 Control Systems Lab Manual
EEE 3106 Control Systems Lab Manual
1.3 Objectives
To gain basic knowledge about the Simulink platform.
To know about the blocks associated with different operations on signals.
To know how to use the basic functions related to control system.
1.4 Theory
Simulink is a graphical programming environment for modeling, simulating and
analyzing multi-domain dynamical systems. Before implementing a controller on a system, one
must have to analyze the particular system to find out which controller will be suitable for the
system. Simulation is performed on this purpose and to know about the characteristics
parameter of the system. To perform the simulation process, we need to use different
components based on our requirement which is available on Simulink library.
1.4.1.6 Gain
When using waveform function generation channels, Gain represents the value by which
the scaled waveform data is multiplied to get the output data. It is available on commonly used
blocks.
Fig. 1.6. Simulink block representation of gain.
1.4.1.7 Integrator
While dealing with the dyna\mics of a system necessity of integrator arises. It is available
in “Continuous” block.
2.3 Objectives
To know about the dynamics of a physical system.
To know how to model a physical system in Simulink platform.
To observe different behavior such as displacement, velocity, acceleration etc. of a
system if any source of excitation is applied to the system.
2.4 Theory
Systems involved in our day to day life can be considered as physical systems such as
driving a car, pulling a block, mass spring system etc. Here a mass spring system is considered
to carry out the experiment.
The physical model is represented on Fig.2.1.
3.3 Objectives
To know about the dynamics and characteristics of a DC motor.
To know how to model a DC motor in Simulink platform.
To observe different behavior such as angular displacement, angular velocity, armature
current etc. of a DC motor if any source of excitation is applied to the motor.
3.4 Theory
DC motor which operates on the basis of the motor action i.e. a current carrying conductor
in presence of a magnetic field has a force induced on it, converts the dc electrical energy into
mechanical energy. The DC motor consists of two parts among which one is static and another
one is rotating part. Static part consists of field winding and rotating part consists of rotor
winding known as armature. Field winding is excited by DC source and DC voltage is supplied
to armature through brush. Starter is used as the resistance of the dc motor is very low since
there is no back emf at the starting. The general circuit diagram of a dc motor is shown below:
ω =Angular velocity,
Vi=Input voltage,
Vb=Back emf and
ia=Armature current.
The governing equations of a DC motor is as follow
𝑑𝑖𝑎 𝑉𝑖 𝑅𝑖 ω
= - - Kb …….......................................................(1)
𝑑𝑡 𝐿 𝐿 𝐿
𝑑ω 𝐾𝑡 𝐵ω
= ia - ..............................................................(2)
𝑑𝑡 𝐽 𝐽
𝑑𝜗
= ω ...............................................................(3)
𝑑𝑡
4.3 Objectives
To know about the dynamics and characteristics of a DC motor.
To know how to model a DC motor in Simulink platform.
To observe different behavior such as angular displacement, angular velocity, armature
current etc. of a DC motor if any source of excitation is applied to the motor.
To know about the basic knowledge about PID controller.
To know how to implement a PID controller on a closed loop system.
To compare between the controlled and uncontrolled response on the system
4.4 Theory
DC motor which operates on the basis of the motor action i.e. a current carrying conductor
in presence of a magnetic field has a force induced on it, converts the dc electrical energy into
mechanical energy. The DC motor consists of two parts among which one is static and another
one is rotating part. Static part consists of field winding and rotating part consists of rotor
winding known as armature. Field winding is excited by DC source and DC voltage is supplied
to armature through brush. Starter is used as the resistance of the dc motor is very low since
there is no back emf at the starting. The general circuit diagram of a dc motor is shown below:
where
A=System Matrix,
B=Input Matrix,
C=Output Matrix,
D=Direct Feedthrough Matrix.
Now for a DC motor
Fig.4.2. Comparison of angular velocity with open-loop and closed loop control using PID on
a DC motor.
Fig.4.3. Comparison of angular velocity response of DC motor using PID and open-loop
response.
Homework
i. Check the system response using PI, PD and ID controller and observe the changes in
the response.
ii. Control the speed of DC motor using Transfer Function approach.
iii. Control the displacement of a mass-spring system using PID controller.
***Perform the above home tasks on the next day in your laboratory.
Experiment 5
5.1 Experiment No.: 05
5.2 Experiment Name
Formation of transfer function, domain conversion and block diagram reduction
5.3 Objectives
To know how to represent a system in time domain and frequency domain approach.
To convert a system from time domain to frequency domain and vice-versa.
To reduce the block diagram of a system connecting in cascade, parallel and feedback.
5.4 Theory
Transfer function of a linier, time-invariant system is defined as the ratio of the Laplace
transform of the output to the Laplace transform of the input under the assumption that all
initial condition are zero.
𝐿[𝑂𝑢𝑡𝑝𝑢𝑡] 𝑌(𝑠)
Transfer function=G(s)= = .
𝐿[𝐼𝑛𝑝𝑢𝑡] 𝑋(𝑠)
G1(S)
Input
Output
G
G2(S)
B=
u1
x1 0
x2 1
C=
x1 x2
y1 1 0
D=
u1
y1 0
num1 =
1 1
den1 =
1 2
num2 =
0 1
den2 =
500 0 0
sys1 =
s+1
-----
s+2
sys2 =
1
-------
500 s^2
sys3 =
s+1
------------------
500 s^3 + 1000 s^2
sys4 =
sys5 =
6.3 Objectives
To know about frequency response analysis.
To know how to plot a bode plot and root locus in MATLAB/Simulink.
6.4 Theory
A Bode diagram consists of two graphs. One is a plot of the logarithm of the magnitude
of a sinusoidal transfer function and the other is a plot of the phase angle; both are plotted
against the frequency on a logarithmic scale. The standard representation of the logarithmic
magnitude of G(jω) is 20log|G(jω)|.
Under this Bode plot,
Condition 1: Phase Margin=+ve, Gain Margin=+ve ,
i) Input:
clc
clear all;
n1=[50]
d1=[1 3 2]
sys1=tf(n1,d1)
bode(n1,d1)
Output:
n1 =
50
d1 =
1 3 2
sys1 =
50
-------------
s^2 + 3 s + 2
ii) Input:
clc
clear all;
n1=[1]
d1=[1 -2 -3]
sys1=tf(n1,d1)
bode(n1,d1)
Output:
n1 =
d1 =
1 -2 -3
sys1 =
1
-------------
s^2 - 2 s - 3
Continuous-time transfer function.
Bode plot figure:
2. Root locus
i) Input:
clc
clear all;
n1=[1]
d1=[1 -2 -3]
sys1=tf(n1,d1)
rlocus(n1,d1)
Output:
n1 =
d1 =
1 -2 -3
sys1 =
-------------
s^2 - 2 s - 3
ii) Input:
clc
clear all;
n1=[50]
d1=[1 3 2]
sys1=tf(n1,d1)
rlocus(n1,d1)
Output:
n1 =
50
d1 =
1 3 2
sys1 =
50
-------------
s^2 + 3 s + 2