Professional Documents
Culture Documents
ENGINEERING LABORATORY
1
CONTENTS
2
1. MARK ASSESSMENT DETAILS
ALLOTMENT OF MARKS:
Internal assessment = 60 marks
Practical examination = 40 marks
----------------------
Total = 100 marks
----------------------
Record 5 marks
Model exam 10 marks
Quiz/Viva 5 marks
Experiments 40 marks
Total 60 marks
Aim and
25 marks
Procedure
Circuit
30 marks
Diagram
Tabulation 30 marks
Result 05 marks
Viva voce 10 marks
Total 100 marks
3
2. GENERAL INSTRUCTIONS FOR LABORATORY CLASSES
iii. Theory
7. After completing the experiment, the answer to pre lab viva-voce questions should
be neatly written in the workbook.
4
3. SYLLABUS
L T P C
15EI303L Control Systems Engineering Laboratory
0 0 2 1
Co-requisite: 15EI303
Prerequisite: NIL
Data Book /
Codes/Standards NIL
Course Category P PROFESSIONAL CORE CONTROL ENGINEERING
Course designed by Department of Electronics and Instrumentation Engineering
Approval 32nd Academic Council Meeting held on 23rd July, 2016
PURPOSE To apply the concepts of control system and design and verify using software tools
INSTRUCTIONAL OBJECTIVES STUDENT OUTCOMES
At the end of the course, student will be able to
1. Analyze the first and second order systems using time domain
a b
analysis.
2. Analyze the first and second order systems using frequency domain
a b
analysis.
3. Design PID controller a b c e k
4. Design and Implement PID controller for any applications. a b c e k
Contact C-D-
Sl. No. Description of experiments IOs Reference
hours I-O
a) Step, ramp and Impulse response of first order systems.
1. b) Step, ramp and Impulse response of second order 3 C,I 1 1
systems.
2. Identification of damping in second order systems. 3 C,I 1 1
3. Time domain analysis for second order systems 3 C,I 1 1
Stability analysis of linear systems using Routh-Hurwitz
4. 3 C,I 1 1
method
5. Stability analysis of linear systems using Root Locus. 3 C,I 1 1
6. Frequency response analysis using Bode Plot. 3 C,I 2 1
7. Frequency response analysis using Polar Plot 3 C,I 2 1
Design of PID Controller for first order and second order
8. 3 C,D,I,O 3 1
systems.
Design of PID Controller for speed control of DC Motor
9. 3 C,D,I,O 3 2
System.
Design of PID Based controller for Twin Rotor Multi Input
10. Multi Output System. 3 C,D,I,O 3 3
Total contact hours 30
LEARNING RESOURCES
Sl.
REFERENCES
No.
1. LAB manual
2. Guoshinghuang, “PC – based PID speed control in DC Motor”, IEEE, ISBN-978-1-4244-1723-0,2008.
3. “Control of Twin Rotor MIMO System (TRMS) Using PID Controller”, International Journal of Advance
Engineering and Research Development, ISSN:2348-6406, 2015.
5
INTRODUCTION TO THE LABORATORY
BACKGROUND
Industrial applications of intelligent methods covering a large area from paper and
metallurgical industries to biotechnology and also electronics production and
telecommunications. Applications consist of soft sensors, advanced control and diagnostics
(lime kiln, pulp cooking, bleaching, TMP-refiner, paper machine, blast furnace, converter
plant, continuous casting, solar power plant, waste water processes, bioprocesses, fluidised
bed granulator), electronics production (testing, diagnostics, process analysis and simulation),
rotary drying (pilot-scale process, measurements, and control test bench, distributed
simulation over the web).
DESCRIPTION
Control Engineering Laboratory takes care of teaching at the graduate level in basics
of control and instrumentation, modeling, simulation, and optimization, intelligent methods,
applications in paper, metallurgical and biotechnical processes. For research students,
intelligent methods (fuzzy logic, neural networks, genetic algorithms, expert systems) are the
main area.
CURRENT EQUIPMENT:
This lab is currently equipped with 30 systems with MATLAB 2015. 21 systems
with Dell 9020, Intel core i-5 4570 3.20 GHz processor 4 GB RAM, 500 GB SATA Hard
disk drive and 9 systems with HP ELITEDESK 800 Intel core i-5 4570 processor 4
GBRAM,500 GB Hard disk.
6
Exercise Number: 1
To obtain step, ramp, impulse response of first and second order system.
Control system
3. tool box 1
b) THEORY:
Transfer function: It is the laplace of the output divided by the laplace of the input
of a system.
Step-The response of a system (with all initial conditions equal to zero at t= 0-,
i.e, zero state response) to the unit step input is called the unit step response.
Ramp : The ramp function is a unary real function whose graph is shaped like a graph.
c) PROCEDURE:
Enter the program in the editor window. If the program is typed in command
window, the functions should be typed without semi-colon.
Enter the values in the numerator & denominator depending on order of the system.
The syntax used to get transfer function is tf.
The syntax used for impulse is impulse.
Finally save the program and run it.
7
DESIGN PROCEDURE/ DESIGN CALCULATIONS:
A=input(‘enter numerator’);
B=input(‘enter denominator’);
h = tf(A,B); step(h); impulse(h);
subplot(2,1,1),plot(step(h));
subplot(2,1,2),plot(impulse(h));
Ramp Function
t = -1:0.1:1;
x1= t>0;
u = (t.*x1);
lsim(h,u,t);
STEP RESPONSE:
8
IMPULSE RESPONSE:
RAMP RESPONSE:
9
FIRST ORDER
STEP RESPONSE
IMPULSE RESPONSE:
10
RAMP RESPONSE:
11
Pre lab questions:
1. What is meant by order of a system?
The highest power of the s term in the denominator of the transfer function of the
system is called the order of the system.
12
Exercise Number: 2
To study and identify the damping in second order system using MATLAB.
FACILITIES REQUIRED:
MATLAB software
PROCEDURE:
THEORY:
Where,
ζ=Damping coefficient
=natural frequency
There are 4 conditions of :
1) When ζ=0, Undamped
2) When 0< < 1, Underdamped
As the ζ value is varied, the output graph is varied for the various inputs given be it
step, ramp or impulse.
For ‘Undamped’ system, the graph is of continuous wave w.r.t. critical line. The
amplitude differs for different values. If it is high, amplitude is high and vice versa.
For ‘Under Damped’ system, the graph is also a continuous wave but the amplitude
decreases with time and it finally merges with the critical line passing through 1.
13
For ‘Critically Damped’ system, the wave increases gradually and gets in straight line
with the value of 1. This indicates the perfect damping required in a system which is
controllable.
For ‘Over Damped’ system, the wave always remains below or critical line for any
value.
The graph always remains the same for the damping conditions. Just the nature of
waves changes w.r.t. to the
Critically damped system is the commonly used and effective.
With varying values, the amplitude changes. They don’t make any significant
changes. The important factor is ζ.
We can check the damping by using any values in the place of &ζ.
14
Undamped Condition (ramp) G(s)= +
15
Under Damped (step) G(s)=
+ +
16
Critically Damped (step) G(s)=
+ +
17
Critically Damped (ramp) ) G(s)=
+ +
18
RESULT:
Thus the importance of Damping Coefficient ζwas studied with its various conditions and for
various values for various inputs.
19
Exercise Number: 3
To Analyze the Time Domain specifications of Under damped second order system.
A) THEORY:
We can analyze the time domain of the second order under damped system. Peak value, Rise
time, overshoot, settling time and steady point.
The system has some in-built tolerance; therefore, the settling time is achieved when the
wave signal enters this tolerance range. But in some ζ conditions, the wave isn’t actually
merging with reference line but is in continuous wave motion but since it has entered the
tolerance range, it is considered as settled.
B) PROCEDURE:
C) PROGRAM /COMMAND :
1. num= [10000];
2. den =[1,20,10000];
3. y= tf(num,den);
4. stepplot(y)
20
D) CIRCUIT DIAGRAM / MODEL GRAPH:
1)
2)
3)
21
1) Here, ζ=0.1 and =5
INFERENCE:
Through the above graphs we understand that if the value is varied in between 0 and
1, the no. of waves may increase or decrease depending on value.
If is taken of very high value, then rise time as well as settling time decreases. And if
it is taken low then, the rise time and settling time are of mediocre range.
If the ζ value is very much decreased then high overshooting takes place and it takes
time to settle, i.e., high peak value is attained.
In some cases we may see that settling time is achieved much before the peak value is
attained. It is because that the ζ value is very close to achieve critical damping
condition.
RESULT:
Thus the time domain of second order underdamped system is analyzed for various
ζ and values. The graphs for the same are also plotted with step response.
PRELAB QUESTIONS:
22
Exercise Number: 4
Title of the Experiment: STABILITY ANALYSIS USING ROUTH- HURWITZ METHOD
Date of the Exercise:
AIM OF THE EXPERIMENT:
FACILITIES REQUIRED:
MATLAB software.
Computer.
THEORY:
The theory of network synthesis states that any pole of the system lies on the right hand side
of the origin of the s plane, it makes the system unstable. On the basis of this condition A.
Hurwitz and E.J.Routh started investigating the necessary and sufficient conditions of
stability of a system. We will discuss two criteria for stability of the system. A first criterion
is given by A. Hurwitz and this criterion is also known as Hurwitz Criterion for
stability or Routh Hurwitz Stability Criterion. With the help of characteristic equation, we will
make a number of Hurwitz determinants in order to find out the stability of the system. We
define characteristic equation of the system as:
PROCEDURE:
23
Program:
clear
clc
%% firstly it is required to get first two row of routh matrix
e=input('enter the coefficients of characteristic equation: '); disp('--
----------------------------------------------------------------------- ')
l=length(e);
m=mod(l,2);
if m==0
a=rand(1,(l/2));
b=rand(1,(l/2));
for i=1:(l/2)
a(i)=e((2*i)-
1); b(i)=e(2*i);
end
else e1=[e 0];
a=rand(1,((l+1)/2));
b=[rand(1,((l-1)/2)),0];
for i=1:((l+1)/2)
a(i)=e1((2*i)-
1); b(i)=e1(2*i);
end
end
%% now we genrate the remaining rows of routh
matrix l1=length(a);
c=zeros(l,l1);
c(1,:)=a;
c(2,:)=b;
for m=3:l
for n=1:l1-1
c(m,n)=-(1/c(m-1,1))*det([c((m-2),1) c((m-2),(n+1));c((m-1),1) c((m-1),(n+1))]);
end
end
disp('the routh
matrix:') disp(c)
%% now we check the stablity of system
if c(:,1)>0
disp('System is Stable')
else
disp('System is Unstable');
end
24
OUTPUT:
enter the coefficients of characteristic equation: [1 1 3 1 6] -
------------------------------------------------------------------------
the routh matrix:
1 3 6
1 1 0
2 6 0
-2 0 0
6 0 0
System is Unstable
25
Exercise Number: 5
Title of the Experiment: STABILITY ANALYSIS OF LINEAR SYSTEM USING ROOT LOCUS
Date of the Exercise:
• ROOT LOCUS
• THEORY:
The root locus technique is a powerful tool for adjusting the location of closed
loop poles to achieve the desired system performance by varying one or more system
parameters. The path taken by the roots of the characteristics equation when open
loop gain K is varied from 0 to ∞ are called root loci.
• PROCEDURE:
Problem:
The open loop transfer function of a unity feedback system G(s)=K/s (s 2 +8s+17)
Draw the root locus using MATLAB Software. (Assume K=1).
26
Matlab Program:
G(s)=1/(S^3+8S^2+17S) num=[1];
den=[1 8 17 0];
figure(1);
rlocus(num,den);
G(s)=1/(S^3+8S^2+17S)') grid;
Matlab Output:
27
Pre lab questions:
• How many roots are in the left half of s plane for the equation s 3 - 4s2 + s + 6 ?
• Discuss the effects of adding poles and zeros in a closed loop system.
• The transfer function of an unity feedback system is G(s) = k/s(s+2). Find the
centroid and breakaway point.
28
Exercise Number: 6
To analyze the stability of the given linear system using Bode plot .
• BODE PLOT :
THEORY:
The bode plot is a frequency response plot of the transfer function of a system.
A bode plot consists of two graphs. One is plot of the magnitude of a sinusoidal
transfer function versus log ω . The other is plot of the phase angle of a sinusoidal
transfer function versus logω .The main advantage of the bode plot is that
multiplication of magnitude can be converted into addition. Also a simple method for
sketching an approximate log magnitude curve is available.
Problem:
• The open loop transfer function of a unity feedback system G(s)=K/s(s 2 +2s+3)
Draw the Bode Plot. Find (i)Gain Margin (ii)Phase Margin (iii)Gain cross over
frequency (iv)Phase cross over frequency (v) Resonant Peak (vi)Resonant
Frequency (vii)Bandwidth and Check the same results using MATLAB
Software. (Assume K=1)
29
Matlab Program:
%Draw the Bode Plot for the given transfer functionG(S)=1/S(S2+2S+3) %Find (i)Gain
Margin (ii) Phase Margin (iii) Gain Cross over Frequency %(iv) Phase Cross over Frequency
(v)Resonant Peak (vi)Resonant %Frequency (vii)Bandwidth
num=[1 ];
den=[1 2 3 0];
w=logspace(-1,3,100);
figure(1);
bode(num,den,w);
title('Bode Plot for the given transfer function G(s)=1/s(s^2+2s+3)')
grid;
[Gm Pm Wcg Wcp] =margin(num,den);
Gain_Margin_dB=20*log10(Gm)
Phase_Margin=Pm
Gaincrossover_Frequency=Wcp
Phasecrossover_Frequency=Wcg
[M P w]=bode(num,den);
[Mp i]=max(M);
Resonant_PeakdB=20*log10(Mp)
Wp=w(i);
Resonant_Frequency=Wp
for i=1:1:length(M);
if M(i)<=1/(sqrt(2));
Bandwidth=w(i)
break;
end;
end;
Matlab Output:
30
Gain_Margin_dB =15.5630
Phase_Margin = 76.8410
Gaincrossover_Frequency = 0.3374rad/sec
Resonant_PeakdB = 10.4672
Bandwidth = 0.5356
• How can you analyse the stability of the system with Bode plot?
31
Exercise Number: 7
• To analyze the stability of the given linear system using polar plot.
• POLAR PLOT :
THEORY:
The Polar plot provides a simple test for stability of a closed- loop control
system by examining the open-loop system. Stability of the closed-loop control system
may be determined directly by computing the poles of the closed-loop transfer function.
The Polar Criteria can tell us things about the frequency characteristics of the system.
A Polar plot is used in automatic control and signal processing for assessing the stability
of a system with feedback. It is represented by a graph in polar coordinates in which the
gain and phase of a frequency response are plotted. The plot of these phasor quantities
shows the phase as the angle and the magnitude as the distance from the origin. This
plot combines the two types of Bode plot — magnitude and phase — on a single graph
with frequencry as a parameter along the curve.
Problem:
• The open loop transfer function of a unity feedback system G(s)=K/s(s 2 +2s+3)
Draw the Polar Plot. Find (i)Gain Margin (ii)Phase Margin (iii)Gain cross over
frequency (iv)Phase cross over frequency and Check the same results using
MATLAB Software. (Assume K=1)
32
Matlab Program:
num=[1];
den=[1 3 3 1];
figure(1);
polar (num,den)
[Gm,Pm,Wcg,Wcp] = margin(num,den)
grid;
[Gm,Pm,Wcg,Wcp] = margin(num,den);
Gain_Margin = Gm
Phase_Margin = Pm
PhaseCrossover_Frequency = Wcg
GainCrossover_Frequency = Wc
Matlab Output:
Gain_Margin = 8.0011
Phase_Margin = -180
33
PhaseCrossover_Frequency = 1.7322 rad/sec
GainCrossover_Frequency = 0 rad/sec
• What is contour?
34
Exercise Number:8
Title of the Experiment: Design of PID Controller for first order and second order systems
Date of the Exercise:
To design a PID controller for the following first order and second order system,
1. ()=
( +10)
3.6
2. ()= 2 5
+6 +5
e) THEORY:
Most PID controllers are adjusted on-site and many different types of tuning rules
have been proposed in different literatures. Using these tuning rules, delicate and fine tuning
of PID controllers can be made on-site. Also, automatic tuning methods have been developed
and some of the PID controllers may possess on-line automatic tuning capabilities. Modified
forms of PID control, such as I-PD control and two-degrees-of- freedom PID control, are
currently in use in industry
f) PROCEDURE:
35
e) BLOCK DIAGRAM:
Kp =
Ki =
36
Kd =
g) MODEL OUTPUT RESPONSE:
37
Figure 2: First order controlled closed loop response
38
Pre lab questions:
2. What is conventional controller?
39
Exercise Number: 9
Title of the Experiment: Design of PID Controller for speed control of DC Motor System.
Date of the Exercise:
To design a PID controller for the speed control of DC Motor Control System
represented by the following transfer function,
Where kt=0.01
J=0.01
B=1
Kf=1
Kb=1
Ra=1
La=0.5
And
La = Ta Electrical time constant
Ra
40
b) THEORY:
Most PID controllers are adjusted on-site and many different types of tuning rules
have been proposed in different literatures. Using these tuning rules, delicate and fine tuning
of PID controllers can be made on-site. Also, automatic tuning methods have been developed
and some of the PID controllers may possess on-line automatic tuning capabilities. Modified
forms of PID control, such as I-PD control and two-degrees-of- freedom PID control, are
currently in use in industry
c) PROCEDURE:
e) BLOCK DIAGRAM:
Kp =
Ki =
Kd =
41
g) MODEL OUTPUT RESPONSE:
42
Pre lab questions:
43
Exercise Number: 10
Title of the Experiment: Design of PID Based controller for Twin Rotor Multi Input
Multi Output System.
Date of the Exercise:
To design a PID Based controller for orientation control of Twin Rotor Multi Input
Multi Output System represented by the following transfer function,
3.6
()= 3 + 6 2+ 5
b) THEORY:
Most PID controllers are adjusted on-site and many different types of tuning rules
have been proposed in different literatures. Using these tuning rules, delicate and fine tuning
of PID controllers can be made on-site. Also, automatic tuning methods have been developed
and some of the PID controllers may possess on-line automatic tuning capabilities. Modified
forms of PID control, such as I-PD control and two-degrees-of- freedom PID control, are
currently in use in industry
c) PROCEDURE:
44
d) DESIGN PROCEDURE/ DESIGN CALCULATIONS:
e) BLOCK DIAGRAM:
Kp =
Ki =
Kd =
45
g) MODEL OUTPUT RESPONSE:
46
Pre-lab questions:
1. What is TRMS?
2. State the purpose of TRMS.
47