22ECU403 Integrated Lab
22ECU403 Integrated Lab
Student Name :
___________________________
USN :
___________________________
Semester :
___________________________
Section and Batch :
___________________________
Academic Year :
___________________________
Preface
The control systems deals with the design of various autonomous systems to operate under desired
specifications, like Safety in industry, optimal production of goods, noise elimination, stability of the
systems, smooth movement of objects, regulations of drug administration, level control, etc.
This manual is designed to understand the basic principles of control systems, and this manual covers
the practical component of control systems (22ECU403) course prescribed by the Department of Electronics
This manual endeavors to prepare the reader to solve and simulate realistic problems involving on
control systems. The control systems experiments can be simulated using MATLAB.
Prepared by
Dr. Mohankumar V.
Assistant Professor
Department of Electronics and Communication Engineering
Dr. Ambedkar Institute of Technology
Bengaluru-560056
Dr. Ambedkar Institute of Technology, Bengaluru-56
(An Autonomous Institution Affiliated to VTU, Belagavi)
Department of Electronics and Communication Engineering
Manual
Certificate
the academic year _______________ for the partial fulfillment for the award for B.E.
Degree.
Faculty In-charge
Marks Obtained Name:
/50 Signature
with date:
III Rubrics--------------------------------------------------------------------------------- 11
VI References------------------------------------------------------------------------------- 68
******
Vision and Mission of Dr. Ambedkar Institute of Technology, Benagaluru-
560056
VISION:
To create Dynamic, Resourceful, Adept and Innovative Technical professionals to meet global challenges.
MISSION:
To offer state-of-the-art under graduate, post graduate and doctoral programs in the fields of
Engineering, Technology and Management
To generate new knowledge by engaging faculty and students in research, development and
innovation.
To provide strong theoretical foundation to the students, supported by extensive practical training to
meet the industrial requirements.
To instil moral and ethical values with social and professional commitment.
VISION:
"To excel in education and research in Electronics and Communication Engineering and its related areas
through its integrated activities”
MISSION:
To provide students a strong foundation in Electronics and Communication Engineering.
To provide high quality technical education in Electronics and Communication Engineering
discipline and its related areas to meet the growing needs and challenges of industry and society.
To be a contributor to the technology through the process of skill development, value based
education, research and innovation.
Program Outcomes (POs)
Problem analysis: Identify, formulate, review research literature, and analyze complex
PO2: engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
Modern tool usage: Create, select, and apply appropriate techniques, resources, and
PO5: modern engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations.
The engineer and society: Apply reasoning informed by the contextual knowledge to
PO6: assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.
Ethics: Apply ethical principles and commit to professional ethics and responsibilities
PO8:
and norms of the engineering practice.
Life-long learning: Recognize the need for, and have the preparation and ability to
PO12: engage in independent and life-long learning in the broadest context of technological
change.
Capability to use mathematical Techniques to model the real time problems, to optimize
PSO1:
the implementation using mathematical techniques and to analyse the system performance.
Ability to Understand, Analyse and Apply the Electronic Circuits, Digital Circuits, VLSI
PSO2: Circuits, Antennas, Microwaves, Microcontrollers and Embedded Controllers,
Communication Systems concepts to design and implement the real time applications.
Ability to identify and have the social and ethical responsibilities for the betterment of
PSO3: Society and to become an entrepreneur.
******
Syllabus Copy
Control Systems
Integrated Laboratory Component
Course Code: 22ECU403 CIE Marks:20
4 Find the Time Response Specifications of unit step response of 2nd order System
******
Assessment Details
The maximum Marks prescribed for CIE is 50. CIE includes theory tests components (30 Marks)
and Laboratory components (20 Marks).
a. There shall be two tests (each 25 Marks). Each test includes descriptive questions (20 Marks) and
Quiz (05 Marks).
b. The sum of the two tests performances maximum of 50 Marks scale down to 30 Marks shall be
considered for theory component.
c. The minimum marks to be secured in CIE to appear for SEE shall be 12 (40% of maximum
marks) in the theory component.
d. A makeup test shall be conducted with valid reasons acceptable to the institute, duly
recommended by the Faculty/Mentor and HOD.
a. Final CIE Marks shall include 30 Marks from two CIE tests component and 20 Marks from
Laboratory component.
b. The following formula is used to award final CIE Score: CIE Score = (Test 1+ Test 2) X 0.6 +
Laboratory component
2. Passing Standard in CIE:
The minimum marks to be secured in CIE to appear for SEE shall be 12 (40% of maximum marks-30)
in the theory component and 08 (40% of maximum marks -20) in the practical component.
Theory SEE will be conducted for 100 Marks (3 Hours duration) by Institute as per the scheduled
time table, with common Question papers for the course (duration 03 hours)
The Question paper will have TEN questions. Each question is set for 20 marks.
There will be TWO questions from each UNIT (with a maximum of 3 sub-questions).
The students have to answer 5 full questions, selecting one full question from each unit.
In SEE, the questions from the laboratory component shall be included. The maximum of 04/05
questions to be set from the practical component of IPCC, the total marks of all questions should
not be more than 20 marks.
SEE will be conducted for 100 marks and students shall secure 35% of the maximum marks to qualify
for the SEE. Marks secured will be scaled down to 50.
******
Control Systems
Integrated Laboratory Component
Course Code: 22ECU403 CIE Marks:20
Rubrics (CIE)
Learning
Aspects of Assessment Excellent Average Poor
Outcome
Understand some concepts /
Recall the concepts, draw the Complete understanding of the concepts / Student lacks clear understanding of the
Participates less in class / read
Write-up diagrams with clear actively participate during lecture /read basic concepts of control systems and
diagrams but unable to interpret
(10) specifications and interpret diagrams. unable to interpret completely.
them accurately.
(4-5 Marks) (0-1 Marks)
(2-3 Marks)
A complete solution / Explain necessary Solution is complete but need minor Solution is complete but did not work,
Design or Develop solution for
Design and theories according to task description modifications / student could have needed several modifications / did not
problem that meet specified
Development with great use of time and followed Specification more make correct use of resource material or
needs by using the concept of
(10) resource/material. closely. instructions.
control systems
(9-10 Marks) (5-8 Marks) (0-4 Marks)
Tool
Software tool usage for Does not know completely how to use
Utilization and Effectively use software tools to collect Use software tools to collect data
constructing various software tools to collect and analyze
Conduction of readings of control systems with minor error.
application of control systems data.
experiment (15-20 Marks) (08-14 Marks)
using MATLAB (0-7 Marks)
(20)
Student answers few questions Student did not answer any question/
Student answers all the questions asked
asked by the teacher with correct maximum questions or students know
Viva-Voce Student has to answer the by the teacher comfortably/fluently with
answer, or student knows the the little bit answers and unable to
(10) questions asked orally correct answer.
answer but unable to answer orally. answer in a proper way.
(9-10 Marks)
(5-8 Marks) (0-4 Marks)
Total=50 Marks
******
Control Systems
Integrated Laboratory Component
Course Code: 22ECU403 CIE Marks:20
Total= 30 Marks
******
Dr. Ambedkar Institute of Technology, Bengaluru-56
(An Autonomous Institution Affiliated to VTU, Belagavi)
Department of Electronics and Communication Engineering
Tool
Utilization
Exper Integration Record Viva- Faculty
Write-up and Total
-iment of Results Writing Voce Signature
(5) Conduction of (30)
No. (5) (7) (5) with date.
Experiment
(8)
1
10
Average
Introduction to Control
Systems and MATALB
The term "control system" may be applied to the essentially manual controls that allow an operator,
for example, to close and open a hydraulic press, perhaps including logic so that it cannot be moved
unless safety guards are in place.
An automatic sequential control system may trigger a series of mechanical actuators in the correct
sequence to perform a task. For example, various electric and pneumatic transducers may fold and glue a
cardboard box, fill it with product and then seal it in an automatic packaging machine. Programmable logic
controllers are used in many cases such as this, but several alternative technologies exist.
In the case of linear feedback systems, a control loop, including sensors, control algorithms and
actuators, is arranged in such a fashion as to try to regulate a variable at a set point or reference value.
MATLAB
MATLAB (an abbreviation of MATrix LABoratory) registered trademark of computer software,
developed by the Math Works Inc. The software is widely used in many of science and engineering fields.
MATLAB is an interactive program for numerical computation and data visualization. MATLAB is
supported on UNIX, Macintosh, and Windows environments. A Windows version of MATLAB is assumed
here. The syntax is very similar for the DOS version.
MATLAB integrates mathematical computing, visualization, and a powerful language to provide a flexible
environment for technical computing. The open architecture makes it easy to use MATLAB and its
companion products to explore data, create algorithms, and create custom tools that provide early insights
and competitive advantages. Known for its highly optimized matrix and vector calculations, MATLAB
offers an intuitive language for expressing problems and their solutions both mathematically and visually.
Typical uses include:
• Numeric computation and algorithm development
• Symbolic computation (with the built-in Symbolic Math functions)
• Modeling, simulation, and prototyping
• Data analysis and signal processing
• Engineering graphics and scientific visualization
Display Windows
MATLAB has three display windows. They are
1. A Command Window which is used to enter commands and data to display plots and graphs.
2. A Graphics Window which is used to display plots and graphs
3. An Edit Window which is used to create and modify M-files. M-files are files that contain a program or
script of MATLAB commands.
Entering Commands
Every command has to be followed by a carriage return <cr> (enter key) in order that the command
can be executed. MATLAB commands are case sensitive and lower case letters are used throughout.
To execute an M-file (such as Project_1.m), use short cut function key F5 or go to debug and select run.
MATLAB Expo
In order to see some of the MATLAB capabilities, enter the demo command. This will initiate the
MATLAB EXPO. MATLAB Expo is a graphical demonstration environment that shows some of the
different types of operations which can be conducted with MATLAB.
Abort
In order to abort a command in MATLAB, hold down the control key and press c to generate a
local abort with MATLAB.
Typing %
When percent symbol (%) is typed in the beginning of a line, the line is designated as a comment.
When the enter key is pressed the line is not executed.
Help
Arithmetic Operations
The symbols for arithmetic operations with scalars are summarized in Table.1
MATLAB has several different screen output formats for displaying numbers. These formats can
be found by typing the help command: help format in the Command Window. A few of these formats are
shown in Table.2.
Function Description
abs(x) Computes the absolute value of x.
sqrt(x) Computes the square root of x.
round(x) Rounds x to the nearest integer.
fix(x) Rounds (or truncates) x to the nearest integer toward 0.
floor(x) Rounds x to the nearest integer toward – ∞
ceil(x) Rounds x to the nearest integer toward ∞
sign(x) Returns a value of – 1 if x is less than 0, a value of 0 if x equals 0, and a value of 1
rem(x,y) otherwise.
Returns the remainder of x/y. for example, rem(25, 4) is 1, and rem(100,21) is 16. This
exp(x) function is also called a modulus function.
log(x) Computes ex, where e is the base for natural logarithms, or approximately 2.718282.
log10(x) Computes ln x, the natural logarithm of x to the base e.
Computes log10 x, the common logarithm of x to the base 10.
Table.3: list of mathematical built in functions with description
Variable names
A variable is a name made of a letter or a combination of several letters and digits. Variable names
can be up to 63 (in MATLAB 7) characters long (31 characters on MATLAB 6.0). MATLAB is case
sensitive. For instance, XX, Xx, xX, and xx are the names of four different variables. It should be noted
here that not to use the names of a built-in functions for a variable. For instance, avoid using: sin, cos, exp,
sqrt, ..., etc. Once a function name is used to define a variable, the function cannot be used.
Predefined variables
MATLAB includes a number of predefined variables. Some of the predefined variables
that are available to use in MATLAB programs are summarized in Table.4
Variable Explanation
i or j
The complex number with the property that .
pi 3.1415...
Inf This is the value infinity. When one divides 1 by 0, 1/0, the result will be Inf.
NaN This variable is a representation of `Not a Number'. A calculation with NaN always
results in NaN. The command 0/0 produces NaN.
Table.4: Predefined variables with explanation
Commands for managing variables
Table.5 lists commands that can be used to eliminate variables or to obtain information about variables that
have been created. The procedure is to enter the command in the Command Window and the Enter key is
to be pressed.
Command Explanation
who Gives a list of the variables in use.
whos Gives a list of the variables in use as well as some extra information.
clear Removes all variables.
clear x y Removes the variables x and y.
Function Description
area Creates a filled area plot.
bar Creates a bar graph.
barh Creates a horizontal bar graph.
comet Makes an animated 2-D plot.
compass Creates arrow graph for complex numbers.
contour Makes contour plots.
contourf Makes filled contour plots.
errorbar Plots a graph and puts error bars.
feather Makes a feather plot.
fill Draws filled polygons of specified color.
fplot Plots a function of a single variable.
hist Makes histograms.
loglog Creates plot with log scale on both x and y axes.
pareto. Makes pareto plots
pcolor Makes pseudo color plot of matrix
pie Creates a pie chart.
plotyy Makes a double y-axis plot.
plotmatrix Makes a scatter plot of a matrix.
polar Plots curves in polar coordinates.
quiver Plots vector fields.
rose Makes angled histograms.
scatter Creates a scatter plot.
semilogx Makes semilog plot with log scale on the x-axis.
semilogy Makes semilog plot with log scale on the y-axis.
stairs Plots a stair graph.
stem Plots a stem graph.
The MATLAB Supports control system operations and the commands used in control systems/ engineering
is summarized in table.8.
Command Description
abs Absolute value
acker Compute the K matrix to place the poles of A-BK, see also place
Experiments on
Control Systems
AIM: Write MATLAB code to find the transfer function for the given block diagram, simulate it and record
the results.
Theory: Control systems can be represented pictorially by block diagram, i.e., block diagram is a pictorial
representation of control system elements or the whole system. The transfer function of an element or a
whole system to be mentioned inside the block.
Example:
Consider a resistive element (R).
𝑉(𝑠)
Its transfer function =𝑅
𝐼(𝑠)
The block diagram representation is shown in figure (1.1)
In a control system, the elements may be interconnected in the form of cascade, parallel, or feedback loop.
According to block diagram algebra, possible to reduce the interconnected blocks into a single block.
The resultant transfer function is the product of the block transfer functions, if the blocks are in series. The
resultant transfer function is the sum or difference of the block transfer functions, if the blocks are in
parallel. For feedback loop, consider the canonical form shown in figure (1.2).
In MATLAB, commands are available to obtain the resultant transfer function for the above
configurations.
Example:
12
𝐺1 (𝑠) = , 𝑎𝑛𝑑 𝐺2 (𝑠) = 𝑠 + 4
𝑠+3
MATLAB Code:
feedback (G1, G2) // MATLAB Command to obtain the TF if the blocks are connected in feedback
Example:
Given block diagram
Figure 1.3: Given block diagram to find the resultant transfer function
Manual Calculations:
Step1: Block 𝒔 and 𝟏 are connected in parallel, equivalent transfer function (𝒔 + 𝟏)
𝟏 𝟏
Step2: Blocks 𝒔+𝟒 and 𝟐𝒔 are connected in the feedback form, equivalent transfer function 𝟑𝒔+𝟒
Step3: Blocks 𝒔 + 𝟐 and 𝟒𝒔 are connected in the feedback form, equivalent transfer function 𝟓𝒔 + 𝟐.
Step5: The block obtained from step4 is connected with unity feedback, therefore the resultant transfer
𝟓𝒔𝟐 +𝟕𝒔+𝟐
function is 𝟓𝒔𝟐 +𝟏𝟎𝒔+𝟔
𝐶[𝑠] 𝟓𝒔𝟐 + 𝟕𝒔 + 𝟐
=
𝑅[𝑠] 𝟓𝒔𝟐 + 𝟏𝟎𝒔 + 𝟔
MATLAB Code:
clear all
close all
clc
num1=[1 2]
den1=[1];
tf1=tf(num1, den1); % transfer function s+2
num2=[4 0]
den2=[1]
tf2=tf(num2, den2); % transfer function 4s
num3=[1 0]
den3=[1]
tf3=tf(num3, den3);% transfer function s
num4=[1]
Result:
NOTE: show the manual calculations on the space provided in the report, paste the MATLAB
Code and result.
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
AIM: Write a MATLAB code to convert the given transfer function into state space representation and
vice-versa, simulate it and record the results.
Theory:
The ratio of output quantity to the input quantity with zero initial conditions in frequency domain is called
transfer function. The transfer function is a mathematical model of a system, sub-system, or a component.
It is a convenient representation of a linear time invariant system, used for the analysis and design of control
systems.
Mathematically,
𝑌(𝑠)
𝑇𝐹 = / 𝐼𝑛𝑖𝑡𝑖𝑎𝑙 𝐶𝑜𝑛𝑑𝑖𝑡𝑖𝑜𝑛𝑠 = 0
𝑋(𝑠)
State space models is a mathematical model of the system, can be used to analyze and design Linear, Non-
linear, Time Variant, Time Invariant, and MIMO systems. State space model incorporates the initial
conditions of the system.
State model
State Equation X(t) =̇ A X(t) + B U(t) − − − −(2.1)
Output Equation Y(t) = CX(t) + DU(t) − − − −(2.1)
Example-1:
Given transfer function
𝒀(𝒔) 𝟒
𝑻𝑭 = = 𝟑
𝑼(𝒔) 𝒔 + 𝟒𝒔𝟐 + 𝟐𝒔 + 𝟏
Manual calculations:
Given transfer function in time domain
𝑑3 𝑦(𝑡) 𝑑2 𝑦(𝑡) 𝑑𝑦(𝑡)
3
+ 4 2
+2 + 𝑦(𝑡) = 4𝑢(𝑡) − − − (1)
𝑑𝑡 𝑑𝑡 𝑑𝑡
𝑋1 (𝑡) = 𝑦(𝑡)
̇
𝑋1 (𝑡) = 𝑋2 (𝑡) = 𝑦̇ (𝑡)
𝑋̈2 (𝑡) = 𝑋3 (𝑡) = 𝑦̈ (𝑡)
𝑋⃛3 (𝑡) = 𝑦⃛(𝑡) = −𝑋1 (𝑡) − 2𝑋2 (𝑡) − 4𝑋3 (𝑡) + 4𝑢(𝑡)
State Model
State equation
̇
𝑋1 (𝑡) 0 1 0 𝑋1 (𝑡) 0
[𝑋2 (𝑡)̇ ]=[ 0 0 1 ] [𝑋 2 (𝑡) ] + [0] 𝑢(𝑡)
𝑋3 (𝑡) ̇ −1 −2 −4 𝑋3 (𝑡) 4
Output Equation
𝑋1 (𝑡)
𝑦(𝑡) = [1 0 0] [𝑋2 (𝑡)] + [0][𝑢(𝑡)
𝑋3 (𝑡)
Electronics and Communication Engineering Dr.AIT Page 31
Lab Component of Circuit Analysis and Control Systems (22ECU403)
MALAB Code:
clear all
close all
clc
num=[4]
den=[1 4 2 1]
G=tf(num,den)
RG=order(G)
[Aa,Bb,Cc,Dd]=tf2ss(num,den) % Controllable form
% phase variable form
V=fliplr(eye(RG))
A=inv(V)*Aa*V
B=Cc'
C=Bb'
D=Dd
Result:
𝒀(𝒔) 𝒔 + 𝟏𝟎
𝑻𝑭 = = 𝟑
𝑼(𝒔) 𝒔 + 𝒔𝟐 + 𝒔 + 𝟒
Manual Calculations:
clear all
close all
clc
num=[1 10]
den=[1 1 1 4]
G=tf(num,den)
RG=order(G)
[Aa,Bb,Cc,Dd]=tf2ss(num,den) % Controllable form
% phase variable form
V=fliplr(eye(RG))
A=inv(V)*Aa*V
B=inv(V)*Bb
C=Cc*V
D=Dd
Result:
Practice :
𝑌(𝑠) 10
1. =
𝑈(𝑠) 𝑠3 +2𝑠2 +3𝑠+1
𝑌(𝑠) 𝑠2 +2𝑠
2. =
𝑈(𝑠) 𝑠3 +2𝑠2 +𝑠+10
Observations:
𝑠 −1 0
(𝑠𝐼 − 𝐴) = [0 𝑠 −1 ]
1 2 𝑠+4
𝑠 2 + 4𝑠 + 2 𝑠+4 1
[ −1 𝑠 2 + 4𝑠 2 ]
(𝑠𝐼 − 𝐴)−1 = −5 −2𝑠 − 1 𝑠 2
3 2
𝑠 + 4𝑠 + 2𝑠 + 1
𝑠 2 + 4𝑠 + 2 𝑠+4 1
𝐶[𝑠𝐼 − 𝐴]−1 = [ ]
𝑠 3 + 4𝑠 2 + 2𝑠 + 1 𝑠3 + 4𝑠 2 + 2𝑠 + 1 𝑠3 + 4𝑠 2+ 2𝑠 + 1
4
𝐶[𝑠𝐼 − 𝐴]−1 𝐵 =
𝑠3 + 4𝑠 2+ 2𝑠 + 1
4
𝐶[𝑠𝐼 − 𝐴]−1 𝐵 + 𝐷 = +0
𝑠3 + 4𝑠 2+ 2𝑠 + 1
𝑌(𝑠) 4
= 3 2
𝑈(𝑠) 𝑠 + 4𝑠 + 2𝑠 + 1
MATLAB Code:
clear all
close all
clc
A = [ 0 1 0; 0 0 1; -1 -2 -4];
B = [0;0;4];
C = [1 0 0];
D = [0];
[num,den] = ss2tf(A,B,C,D)
G=tf(num, den)
Results:
Practice:
1. State Model
State equation
̇
𝑋1 (𝑡) 0 1 0 𝑋1 (𝑡) 0
̇
[𝑋2 (𝑡)] = [ 0 0 1 ] [𝑋2 (𝑡)] + [0] 𝑢(𝑡)
𝑋3 (𝑡) ̇ −4 −1 −1 𝑋3 (𝑡) 1
Output Equation
𝑋1 (𝑡)
𝑦(𝑡) = [10 1 0] [𝑋2 (𝑡)] + [0][𝑢(𝑡)
𝑋3 (𝑡)
2. State Model
State equation
̇
𝑋1 (𝑡) 0 1 0 𝑋1 (𝑡) 0
[𝑋2 (𝑡)̇ ]=[ 0 0 1 ] [ 𝑋2 (𝑡) ] + [ 0 ] 𝑢(𝑡)
𝑋3 (𝑡) ̇ −1 −1 −1 𝑋3 (𝑡) 10
Output Equation
𝑋1 (𝑡)
𝑦(𝑡) = [1 0 0] [𝑋2 (𝑡)] + [0]𝑢(𝑡)
𝑋3 (𝑡)
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
AIM: Write a MATLAB code to obtain 2D and 3D plots of unit step response of the given 2nd order system,
simulate it and record the results.
Theory:
2
𝜔𝑛
An open loop transfer function is connected with a unity feedback. The resultant closed loop
𝑠(𝑠+2𝜉𝜔𝑛 )
2
𝜔𝑛
transfer function is 2 2 , a second order system. Here, 𝜔𝑛 is the natural frequency, 𝜉 is the
𝑠 +2𝜉𝜔𝑛𝑠+𝜔𝑛 )
damping ratio. The step response of 2nd order system will be exponential, oscillatory with constant
amplitude, and damped oscillation, depending on the values of damping factor.
Case(i): 𝜉 > 1
𝜔𝑛 √𝜉 2 √𝜉 2
𝑐(𝑡) = (𝑒 −(𝜉𝜔𝑛−𝜔𝑛 −1)𝑡 − 𝑒 −(𝜉𝜔𝑛+𝜔𝑛 −1)𝑡 )
2√𝜉 2 − 1
Case (ii): 𝜉 = 1
𝑐(𝑡) = 𝜔𝑛2 𝑡𝑒 −𝜔𝑛𝑡
Case (iii): 𝜉 = 0
𝑐(𝑡) = 𝜔𝑛 sin(𝜔𝑛 𝑡)
Example
𝐶(𝑠) 1
= 2 ; 𝜉 = 0, 0.3, 0.7 1.0
𝑅(𝑠) 𝑠 + 2𝜉𝑠 + 1
MATLAB Code:
clear all
close all
clc
t = 0:0.2:20;
zeta = [0 0.3 0.7 1 ];
for n = 1:4;
num = [1];
den = [1 2*zeta(n) 1];
[y(1:101,n),x,t] = step(num,den,t);
end
plot(t,y)
Results:
MATLAB Code:
clear all
close all
clc
t = 0:0.2:20;
zeta = [0 0.3 0.7 1 ];
for n = 1:4;
num = [1];
den = [1 2*zeta(n) 1];
[y(1:101,n),x,t] = step(num,den,t);
end
mesh(t,zeta,y')
title('3D plot of unit step response of 2nd order system')
xlabel('t Sec')
ylabel('\zeta')
zlabel('Response')
Results:
Practice:
𝑪(𝒔) 𝟏
1. = 𝒔𝟐 +𝟐𝝃𝒔+𝟏
𝑹(𝒔)
𝝃 = 𝟎, 𝟎. 𝟏, 𝟎. 𝟐, 𝟎. 𝟑, 𝟎. 𝟒,
𝝃 = 𝟎. 𝟓, 𝟎. 𝟔, 𝟎. 𝟕, 𝟎. 𝟖, 𝟎. 𝟗, 𝟏. 𝟎
𝝃 =, 𝟎. 𝟒, 𝟎. 𝟓, 𝟎. 𝟔, 𝟎. 𝟕, 𝟎. 𝟖
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
AIM: Obtain the time response of given second order system and find all the time response
specifications and verify the same using MATLAB.
Example:
130
Given Close Loop Transfer Function, 𝑇(𝑠) = 𝑠2 +15𝑠+130
Time Response Specifications:
Hence,
wn2= 11.4 rad/sec.
ζ=0.6578.
Rise time (Tr) = 0.26 secs.
Peak time (Tp) =0.36 secs.
Settling time (Ts) = 0.53 secs.
Percentage overshoot (%Mp)= 6.43 %
Practice:
1
1. 𝑇(𝑠) = 𝑠2 +15𝑠+1
1
2. 𝑇(𝑠) = 𝑠2 +1
10
3. 𝑇(𝑠) = 𝑠2 +2𝑠+10
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
Experiment-05: ROOT-LOCUS
AIM: Draw the Root-Locus for the given system and verify the same using MATLAB.
Example:
𝑲
Given Open Loop Transfer Function, 𝑮(𝒔)𝑯(𝒔) = 𝒔(𝒔+𝟓)(𝒔+𝟏𝟎)
Solution:
1. P=3, Z=0, N=P=3 Branches
2. P-Z=3 Branches approaching to ∞
Starting points (open-loop poles) =0, -5, -10
Terminating points (open-loop zeros) =∞, ∞, ∞
3. Pole zero plot:
clear all
close all
clc
G=zpk([], [0 -5 -10], 1)
GH=tf(G)
rlocus(GH)
axis("square")
grid off
title("Root-locus plot of G(s)")
Results:
Practice:
𝑲
1. 𝑮(𝒔)𝑯(𝒔) = 𝒔𝟐 (𝒔+𝟓)(𝒔+𝟏𝟎)
𝑲(𝒔+𝟑)
2. 𝑮(𝒔)𝑯(𝒔) = (𝒔+𝟏)(𝒔+𝟐)
𝑲(𝒔+𝟏)(𝒔+𝟐)
3. 𝑮(𝒔)𝑯(𝒔) = 𝒔(𝒔+𝟑)
𝑲(𝒔+𝟏)
4. 𝑮(𝒔)𝑯(𝒔) = (𝒔𝟐 +𝟒𝒔+𝟏𝟑)
𝑲
5. 𝑮(𝒔)𝑯(𝒔) = 𝒔(𝒔𝟐 +𝟖𝒔+𝟑𝟐)
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
AIM: Draw the BODE PLOT for the given system and verify the same using MATLAB.
Example:
𝑲
Given Open Loop Transfer Function, 𝑮(𝒔)𝑯(𝒔) = 𝒔(𝒔+𝟐)(𝒔+𝟏𝟎)
Manual Calculations:
1. Given open-loop Transfer function in time constant form
𝐾
𝑖. 𝑒. , 𝐺(𝑠)𝐻(𝑠) = 20
𝑠(0.5𝑠 + 1)(0.1𝑠 + 1)
. 𝐾′
. . 𝐺(𝑠)𝐻(𝑠) = 𝑠(0.5𝑠+1)(0.1𝑠+1)
K
Where K’ =
20
2. In frequency domain
𝐾′
𝐺(jω)𝐻(jω) = jω(0.5jω+1)(0.1jω+1)
Assume K=1 and Draw the Bode Plot
For Marginally stable condition the phase and gain cross over frequencies are equal.
After drawing the bode plot for K= 1 shift the magnitude plot to get ωgc=ωpc [phase plot not affected because
MATLAB Code:
clc
clear all
G = zpk ([], [0 -2 -10], 251.78)
S = tf (G)
bode (G), grid on
title ('BODE PLOT')
[Gm, Pm, Wgc, Wpc] = margin (G);
fprintf('Gain Margin(GM)=%g dB \n', Gm)
fprintf('Phase Margin(PM)=%g Degrees \n',Pm)
fprintf('Gain Cross Over Frequency(wgc)=%g rad/sec \n',Wgc)
Results:
Practice:
𝟐𝟎
1. 𝑮(𝒔)𝑯(𝒔) = 𝒔(𝟏+𝟑𝒔)(𝟏+𝟒𝒔)
𝟓𝟎𝟎𝟎(𝒔+𝟏𝟎)
2. 𝑮(𝒔)𝑯(𝒔) = (𝒔+𝟏)(𝒔+𝟓𝟎𝟎)
𝒔
𝟏𝟎𝟎(𝟏+ )
𝟏𝟎
3. 𝑮(𝒔)𝑯(𝒔) = 𝒔 𝟐
𝒔(𝟏+ )
𝟏𝟎𝟎
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
Experiment-07: PI Controller
Example: Obtain the step response of the given system by introducing PI controller using
MATLAB.
1
Given, transfer function of a plant is 𝑃(𝑠) = 𝑠2 +20𝑠+30
Solution:
Block Diagram
MATLAB Code:
clf
clc
clear all
kp=20;
ki=50
num1=[kp, ki];
den1=[1 0];
controller_tf = tf (num1, den1);
num2=1;
den2=[1 20 30];
plant_tf=tf(num2, den2);
overall_tf=feedback(controller_tf*plant_tf, 1);
t=0:0.01:2;
step (overall_tf, t);
Results:
Practice:
1
1. 𝑃(𝑠) = 𝑠2 +10𝑠+20
1
2. 𝑃(𝑠) = 𝑠+10
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
Experiment-08: PD Controller
Example: Obtain the step response of the given system by introducing PD controller using
MATLAB.
1
Given, transfer function of a plant is 𝑃(𝑠) = 𝑠2 +20𝑠+30
Solution:
MATLAB Code:
clf
clc
clear all
kp=300;
kd=10
num1=[kd, kp];
den1=1;
controller_tf = tf (num1, den1);
num2=1;
den2=[1 20 30];
plant_tf=tf(num2, den2);
overall_tf=feedback(controller_tf*plant_tf, 1);
t=0:0.01:2;
step (overall_tf, t);
Results:
Practice:
1
1. 𝑃(𝑠) = 𝑠2 +10𝑠+20
1
2. 𝑃(𝑠) =
𝑠+10
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
Example: Obtain the step response of the given system by introducing PID controller using
MATLAB.
1
Given, transfer function of a plant is 𝑃(𝑠) = 𝑠2 +20𝑠+30
Solution:
Block Diagram
MATLAB Code:
clf
clc
clear all
kp=300;
ki=250;
kd=40;
num1=[kd, kp, ki];
den1=[1 0];
controller_tf = tf (num1, den1);
num2=1;
den2=[1 20 30];
plant_tf=tf(num2, den2);
overall_tf=feedback(controller_tf*plant_tf, 1);
t=0:0.01:2;
step (overall_tf, t);
Results:
Practice:
1
1. 𝑃(𝑠) = 𝑠2 +10𝑠+20
1
2. 𝑃(𝑠) =
𝑠+10
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
Circuit configuration:
MATLAB Code:
clear all;
close all;
clc;
Speed=0:50:1000;
V=input ("Enter the supply voltage :")
N=input ("Enter the motor's constant speed value :")
Ra=input ("Enter the armature resistance value :")
EMF=1;
K=((EMF*60)/(N*2*3.14));
T=((V*K)/Ra)-(((K)^2 /Ra)*Speed);
%plot (speed, T)
plot(Speed,T,'color','b','linewidth',2);
xlabel ("Speed (RPM)");
ylabel ("Torque (Nm)");
title ("DC motor Speed Vs Torque Charactersitics");
axis ([0 500 0 250]);
Electronics and Communication Engineering Dr.AIT Page 64
Lab Component of Circuit Analysis and Control Systems (22ECU403)
Example Run:
Enter the supply voltage: 30
Enter the motor’s constant speed value: 100
Enter the armature resistance value: 0.015
Expected Characteristics:
Results:
Observations:
Evaluation:
Maximum Obtained
Particulars
Marks Marks
Write-up : system design with specifications 05
Tool Utilization and Conduction of Experiment 08
Interpretation of Results 05
Report / observations 07
Viva-Voce 05
Total 30
******
References
1: Modern Control Systems, Richard C. Dorf and Robert H. Bishop, Pearson, 13th Edition, 2017.
2: Modern Control Engineering, Katsuhiko Ogata, Prentice Hall, 5th Edition, 2010.
3: Control Systems Engineering, I J Nagrath and M Gopal, New Age International Publishers, 4th
edition, 2006.
******