Control System Lab EEE 5th Sem 14092023
Control System Lab EEE 5th Sem 14092023
LABORATORY MANUAL
B.Tech. V Semester
GREATER NOIDA
Lab Experiments
12. To plot a Bode diagram of an open loop transfer function. 13. To draw a Nyquist plot of an
open loop transfers functions and examine the stability of the closed loop system
SOFTWARE BASED
LAB EXPERIMENTS
EXPERIMENT 1
Introduction to MATLAB
On the Windows desktop, the installer usually creates a shortcut icon for starting MATLAB; double-
clicking on this icon opens MATLAB desktop.
The MATLAB desktop is an integrated development environment for working with MATLAB suite of
toolboxes, directories, and programs. We see in Fig. 1 that there are four panels, which represent:
1. Command Window
2. Current Directory
3. Workspace
4. Command History
A particular window can be activated by clicking anywhere inside its borders.
Desktop layout can be changed by following Desktop --> Desktop Layout from the main menu asshown inFig.
2 (Default option gives Fig. 1).
Command Window
We type all our commands in this window at the prompt (>>) and press return to see the
results of our operations. Type the command veron the command prompt to get information about
MATLAB version, license number, operating system on which MATLAB is running, JAVA support
version, and all installed toolboxes. If MATLAB don't regard to your speed of reading and flush the entire
output at once, just type more on before supplying command to see one screen of output at atime. Clicking
the What's New button located on the desktop shortcuts toolbar, opens the release notes for release 14 of
MATLAB in Help window. These general release notes give you a quick overview of what products have
been updated for Release 14.
Working with Command Window allows the user to use MATLAB as a versatile scientific calculator for
doing online quick computing. Input information to be processed by the MATLAB commands can be
entered in the form of numbers and arrays.
As an example of a simple interactive calculation, suppose that you want to calculate the torque ( T)
acting on 0.1 kg mass ( m ) at swing of the pendulum of length ( l ) 0.2 m. For small values
of swing, T is given by the formula . This can be done in the MATLAB command window by
typing:
torque =
0.1026
MATLAB calculates and stores the answer in a variable torque (in fact, a array) as soon as the
Enter key is pressed. The variable torque can be used in further calculations. is predefined in MATLAB;
so we can just use pi without declaring it to be 3.14….Command window indicating these operations is
shown in Fig. 3.
Fig. 3 Command Window for quick scientific calculations ( text in colored boxes corresponds toexplanatory
notes ).
>> m = 0.1;
>> l = 0.2;
>> g = 9.8;
the display of the result is suppressed. The assignment of the variable has been carried out even though the
display is suppressed by the semicolon. To view the assignment of a variable, simply type the variable name
and hit Enter. For example:
>>torque=m*g*l*pi/6;
>>torque
torque =
0.1026
It is often the case that your MATLAB sessions will include intermediate calculations whose display is of
little interest. Output display management has the added benefit of increasing the execution speed of the
calculations, since displaying screen output takes time.
Variable names begin with a letter and are followed by any number of letters or numbers (including
underscore). Keep the name length to 31 characters, since MATLAB remembers only the first 31 characters.
Generally we do not use extremely long variable names even though they may be legal MATLAB names.
Since MATLAB is case sensitive, the variables Aand aare different.
When a statement being entered is too long for one line, use three periods, … , followed by to indicate that
the statement continues on the next line. For example, the following statements are identical (see Fig. 4).
>> x=3-4*j+10/pi+5.678+7.890+2^2-1.89
>> x=3-4*j+10/pi+5.678...
+7.890+2^2-1.89
+ addition, subtraction, * multiplication, / division, and ^ power are usual arithmetic operators. The
basic MATLAB trigonometric commands are sin, cos, tan, cot, sec and csc. The inverses
, etc., are calculated by asin, acos, etc. The same is true for hyperbolic functions.
Some of the trigonometric operations are shown in Fig 5.
Variables j = and i = are predefined in MATLAB and are used to represent complex
numbers.
or
The later case is always interpreted as a complex number, whereas, the former case is a complexnumber in
MATLAB only if j has not been assigned any prior local value.
or
or
In Cartesian form, arithmetic additions on complex numbers are as simple as with real numbers.
Consider two complex numbers and . Their sum is given by
For example, two complex numbers and can be added in MATLAB as:
>> z1=3+4j;
>> z2=1.8+2j;
>> z=z1+z2
z=
4.8000 + 6.0000i
Multiplication of two or more complex numbers is easier in polar/complex exponential form. Two complex
numbers with radial lengths and are given with angles and
Magnitude and phase of a complex number can be calculated in MATLAB by commands abs and
angle. The following MATLAB session shows the magnitude and phase calculation of complex
numbers and .
>>abs(5*exp(0.19*pi*j))
ans =
5
>> angle(5*exp(0.19*pi*j))
ans =
0.5969
>> abs(1/(2+sqrt(3)*j))
ans =
0.3780
>> angle(1/(2+sqrt(3)*j))
ans =
-0.7137
The following exercise will enable the readers to quickly write various mathematical formulas,
interpreting error messages, and syntax related issues.
Table 1
MATLAB desktop snapshot showing selected commands from Table 1 are shown in Fig. 8.
Workspace
Workspace window shows the name, size, bytes occupied, and class of any variable defined in the
MATLAB environment. For example in Fig.9, ‘b' is 1 X 4 size array of data type double and thus
occupies 32 bytes of memory. Double-clicking on the name of the variable opens the array editor
(Fig. 10). We can change the format of the data (e.g., from integer to floating point), size of the
array (for example, for variable A, from 3 X 4 array to 4 X 4 array) and can also modify the
contents of the array.
If we right-click on the name of a variable, a menu pops up, which shows various operations for
the selected variable, such as: open the array editor, save selected variable for future usage, copy,
duplicate, and delete the variable, rename the variable, editing the variable, and various plotting
options for the selected variable.
Table 2
For example, see the following MATLAB session for the use of who and whos commands.
>>who
Your variables are:
Ab
>>whos
Name Size Bytes Class
double
A 3x4 96
array
double
b 1x4 32
array
Grand total is 16 elements using 128 bytes
This window (Fig. 11) contains a record of all the commands that we type in the command window.
By double-clicking on any command, we can execute it again. It stores commands from one
MATLAB session to another, hierarchically arranged in date and time. Commands remain in the
list until they are deleted.
Commands can also be recalled with the up-arrow key. This helps in editing previous
commands.
Selecting one or more commands and right-clicking them, pops up a menu, allowing users to perform
various operations such as copy, evaluate, or delete, on the selected set of commands. For example, two
commands are being deleted in Fig. 12.
EXPERIMENT NO. 2
OBJECTIVE: To determine time domain response of a second order system for step input and obtain
performance parameters
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
MATLAB can conveniently be used to obtain the rise time, peak time, maximum overshoot, and settling
time. Consider the system defined by
25
2
+ 6 + 25
Program
EXPERIMENT NO. 3
OBJECTIVE: Plot bode plot of a open loop transfer function.
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
Input:-
num =
1 4
den =
4 6 8
Output:-
fun =
s+4
4 s^2 + 6 s + 8
-10
-20
Magnitude (dB)
-30
-40
-50
-60
-45
Phase (deg)
-90
-135
-1 0 1 2
10 10 10 10
Frequency (rad/s)
Command details:-
Syntax:-tf
= tf(num,den,Ts)sys
= tf(M)
sys = tf(num,den,ltisys)
tfsys = tf(sys)
tfsys = tf(sys)
Description
Use tf to create real- or complex-valued transfer function models (TF objects) or to convert state-
space or zero-pole-gain models to transfer function form. You can also use tf to createGeneralized
state-space (genss) models.
Syntax:- bode(sys)
bode(sys1,...,sysN)
bode(sys1,PlotStyle1,...,sysN,PlotStyleN)
bode(...,w)
[mag,phase] = bode(sys,w)
[mag,phase,wout] = bode(sys)
[mag,phase,wout,sdmag,sdphase] = bode(sys)
Description
bode(sys) creates a Bode plot of the frequency response of a dynamic system model sys. The plot
displays the magnitude (in dB) and phase (in degrees) of the system response as a function of
frequency.
When sys is a multi-input, multi-output (MIMO) model, bode produces an array of Bode plots,
each plot showing the frequency response of one I/O pair.
bode automatically determines the plot frequency range based on system dynamics.
Alternatives
To control the presence and appearance of grid lines on a graph, use the Property Editor, one of
the plotting tools. For details, see The Property Editor in the MATLAB Graphics documentation.
Syntax
grid on
grid off
grid
grid(axes_handle,...)
grid minor
Description
The grid function turns the current axes' grid lines on and off. grid on adds major grid lines to the
current axes. grid off removes major and minor grid lines from the current axes. grid toggles the
major grid visibility state grid(axes_handle,...) uses the axes specified by axes_handle instead of
the current axes.
EXPERIMENT NO. 4
OBJECTIVE: Plot Nyquist plot for given transfer function and to compare their relative
stability.
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
1. MATLAB SOFTWARE R2012a
1.5
0.5
Imaginary Axis
-0.5
-1
-1.5
-1.5 -1 -0.5 0.5 1.5
Command details:-
Syntax:-
nyquist(sys)
nyquist(sys,w)
nyquist(sys1,sys2,...,sysN)
nyquist(sys1,sys2,...,sysN,w)
[re,im,w,sdre,sdim] = nyquist(sys)
Description
nyquist creates a Nyquist plot of the frequency response of a dynamic system model. When
invoked without left-hand arguments, nyquist produces a Nyquist plot on the screen. Nyquist plots
are used to analyze system properties including gain margin, phase margin, and stability.
nyquist(sys) creates a Nyquist plot of a dynamic system sys. This model can be continuous or
discrete, and SISO or MIMO. In the MIMO case, nyquist produces an array of Nyquist plots, each
plot showing the response of one particular I/O channel. The frequency points are chosen
automatically based on the system poles and zeros.
nyquist(sys,w) explicitly specifies the frequency range or frequency points to be used for the plot.
To focus on a particular frequency interval, set w = {wmin,wmax}. To use particular frequency
points, set w to the vector of desired frequencies. Use logspace to generate logarithmically spaced
frequency vectors. Frequencies must be in rad/TimeUnit, where TimeUnit is the time units of the
input dynamic system, specified in the TimeUnit property of sys.
nyquist(sys1,'PlotStyle1',...,sysN,'PlotStyleN')
[re,im,w] = nyquist(sys)
[re,im] = nyquist(sys,w)
return the real and imaginary parts of the frequency response at the frequencies w (in
rad/TimeUnit). re and im are 3-D arrays (see "Arguments" below for details).0
………………………………………………………………………………..
[re,im,w,sdre,sdim] = nyquist(sys) also returns the standard deviations of re and im for theidentified
system sys.
EXPERIMENT NO. 5
OBJECTIVE: PLOT UNIT STEP RESPONSEOF GIVEN TRANSFER
FUNCTIONAND FIND PEAK OVERSHOOT, PEAK TIME.
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
%Program for unit step response to find rise time and delay time%clc
sys = tf([8 18 32],[1 6 14 24])
S = stepinfo(sys,'RiseTimeLimits',[0.05,0.95])
step(sys)
gridon
Output:-
sys =
8 s^2 + 18 s + 32
0.2393
SettlingTime: 3.4972
SettlingMin: 1.1956
SettlingMax: 1.6872
Overshoot: 26.5401
Undershoot: 0
Peak: 1.6872
PeakTime: 0.6033
Step Response
1.8
1.6
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
Command details:-
5. stepinfo = Rise time, settling time, and other step response characteristics
Syntax:-
S = stepinfo(y,t,yfinal)
S = stepinfo(y,t)
S = stepinfo(y)
S = stepinfo(sys)
S = stepinfo(...,'SettlingTimeThreshold',ST)
S = stepinfo(...,'RiseTimeLimits',RT)
Description
S = stepinfo(y,t,yfinal) takes step response data (t,y) and a steady-state value yfinal and
returns a structure S containing the following performance indicators:
Percentage undershoot
For SISO responses, t and y are vectors with the same length NS. For systems with NU inputs and
NY outputs, you can specify y as an NS-by-NY-by-NU array (see step) and yfinal as an NY-by-
NU array. stepinfo then returns a NY-by-NU structure array S of performance metrics for each I/O
pair.
S = stepinfo(y,t) uses the last sample value of y as steady-state value yfinal. S = stepinfo(y)
assumes t = 1:ns.
S = stepinfo(sys)computes the step response characteristics for an LTI model sys (see tf, zpk, or
ss for details).
S = stepinfo(...,'RiseTimeLimits',RT) lets you specify the lower and upper thresholds used inthe
rise time calculation. By default, the rise time is the time the response takes to rise from10 to 90%
of the steady-state value (RT=[0.1 0.9]). Note that RT(2) is also used to calculate SettlingMin and
SettlingMax.
EXPERIMENT NO. 6
OBJECTIVE: PLOT THE NYQUIST PLOT FOR GIVEN TRANSFER
FUNCTIONAND TO DISCUSS STABILITY, GAIN AND PHSE MARGIN
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
1. MATLAB SOFTWARE R2012a
THEORY:
The Nyquist plot of a transfer function, usually the loop transfer function GH(z), is a mapping of
Nyquist contour in z-plane onto GH(z)plane which is in polar coordinates. Thus it is sometimes
known as polar plot. Absolute and relative stabilities can be determined from the Nyquist plot
using Nyquist stability criterion. Given the loop transfer function GH(z)of a digital control system,
the polar plot of GH(z)is obtained by setting z= ejωT and varying ω from 0 to ∞.
Nyquist stability criterion: The closed loop transfer function of single input single output digital
control system is described by M(z) = GH(z)/ 1+ GH(z)
The stability of the system depends on the roots of the characteristic equation or poles of the
system. All the roots of the characteristic equation must lie inside the unit circle for the system to
be stable.
%Program to plot the Nyquist plot for given transfer function and to discuss closed loopstability,
gain and phase margin. %
clc
num= input('Enter the value numerator :')
den= input('Enter the value denominator :')
time=0.1;
h=tf([num],[den],time) nyquist(h)
[Gm,Pm,Wgm,Wpm]=margin(h)
gridon
Input:-
0.0400 0.0400
den =
Output:-
h=
0.04 z + 0.04
Gm = 2.5001
Pm = 31.6627
Wgm =
7.2274
Wpm =
6.1642
Nyquist Diagram
1.5
2 dB 0 dB -2 dB
-4 dB
4 dB
-6 dB
6 dB
0.5
10 dB -10 dB
Imaginary Axis
20 dB -20 dB
-0.5
-1
-1.5
-1 -0.8 -0.6 -0.4 -0.2 0.2 0.4 0.6 0.8
Real Axis
EXPERIMENT NO. 7
OBJECTIVE: To plot root locus diagram of an open loop transfer function and determine range of gain ‘k’
for stability.
APPARATUS REQUIRED:
Plot root loci with a square aspect ratio so that a line with slope 1 is a true 45° line. Choose the region of
root-locus plot to be where x and y are the real-axis coordinate and imaginary-axis coordinate, respectively.
To set the given plot region on the screen to be square, enter the command v = [-6 6 -6 6]; axis (v);
axis('square') With this command, the region of the plot is as specified and a line with slope 1 is at a true
45°, not skewed by the irregular shape of the screen.
For this problem, the denominator is given as a product of first- and second-order terms. So we must
multiply these terms to get a polynomial in s. The multiplication of these terms can be done easily by use of
the convolution command, as shown next.
Define
a = s (s + 1): a = [1 1 0]
b = s2 + 4s + 16: b = [1 4 16]
Then we use the following command:
c = conv(a, b)
Note that conv(a, b) gives the product of two polynomials a and b. See the following computer output
To find the complex-conjugate open-loop poles (the roots of s2+4s+16=0), we may enter the roots command
as follows:
Thus, the system has the following open-loop zero and open-loop poles:
Open-loop zero: s=–3
Open-loop poles: s=0, s=–1, s=–2 ; j3.4641
MATLAB Program 6–1 will plot the root-locus diagram for this system. The plot is shown in Figure 7.1.
den = conv ([1 1 0], [1 4 16]). The results are the same.
Figure 7.1
EXPERIMENT NO. 8
OBJECTIVE: TO CONVERT TRANSFER FUNCTION OF A SYSTEM INTO
STATE SPACE FORM AND VICEVERSA
APPARATUS REQUIRED:
S. No. Name of the software Specification Quantity
1. MATLAB SOFTWARE R2012a
PROGRAM 1:
a= input ( “Enter the values of a matrix” );
b= input ( “Enter the values of b matrix” );
c= input ( “Enter the values of c matrix” );
d= input ( “Enter the values of d matrix” );
[num , den] = SS2 tf (a,b,c,d,1)
S1=tf (num(1, : ) , den );
S2=tf (num(2, : ) , den );
[num1 , den1 ] = SS2 tf (a,b,c,d,2);
S3=tf (num1 (1, : ) , den1 );
S4=tf (num1 (2, : ) , den1 );
DISP [S1,S2,S3,S4 ];
PROGRAM 2:
Num = input (“Enter numerator polynomial values in the form of matrix
array” );
den1 = input (“Enter denominator 1 values” );
den2 = input (“Enter denominator 2 values” );
den = conv (den1,den2);
H = tf (num,den);
P = SS(H);
[a,b,c,d] = SS data(P);
HARDWARE BASED
LAB EXPERIMENTS
EXPERIMENT NO. 9
OBJECTIVE: TO DETERMINE SPEED TORQUE CHARACTERSTICS OF AN AC
SERVOMOTOR
APPARATUS:
Sr. No. Item Type Range Quantity
1 A.C Servomotor 1
Kit
2 Multimeter 1
3 Patch cords
THEORY:
An A.C servomotor is basically a two phase induction motor except for certain special design features. A
two phase induction motor consisting of two stator windings oriented 90 degrees electrically apart in space
and excited by a.c voltages which differ in time phase by 90 degrees. Generally voltages of equal
magnitude and 90 degrees phase difference are applied to the two stator phases thus making their
respective fields 90 degrees apart in both time and space at synchronous speed.
The stator windings are excited by voltages of equal r.m.s magnitude & 900 phase difference these
currents give rise to a rotating magnetic field of constant magnitude the direction of rotation depends of
on the phase relationship of the two currents (or voltages) the exciting currents produce a clock wise
rotating magnetic field & phase shift of 1800 in i1 will produce an anti clock wise rotating magnetic field.
Due to the interaction of stator &rotor flux, a mechanical force (or torque) is developed on the rotor & so
the rotor starts moving in same direction as that of rotating magnetic field.
PROCEDURE:
1. Ensure that all control pots are in minimum position and motor brake drum is free to rotate.
2. Switch on the power supply and adjust the control voltage to a certain value and fix it.
3. Note down the No-load speed 4. Now load the motor by tightening the wheels of spring balance. Note down
speed, S1, & S2 values.
5. Repeat step 4 by increasing the load for 4 different set of loads.
6. Now remove the brake on the motor by loosening the wheels
7. Fix the control voltage at 4 different values and for each value perform steps 3,4,5.
8. Calculate torque and plot Torque VS speed characteristic for different control voltages.
OBSERVATIONS:
PRECAUTION:
1. Before switching on the speed, adjust & had control pot should always at the most anticlockwise position
& should be operated in gentle position.
2. Loose connections are to be avoided.
3. Circuit connections should not be made while power is on.
4. Readings of meters must be taken without parallax error.
ASSESMENT QUESTIONS:
1. What is a servomotor?
2. What are the applications of servomotor?
3. How can we get the feed back characteristics of A.C Servomotor?
4. How do you load the A.C Servomotor?
5. Why a servomotor should not be switched on load?
6. How can a A.C servomotor be controlled?
EXPERIMENT NO. 10
OBJECTIVE: TO DETERMINE RESPONSE OF FIRST ORDER AND SECOND
ORDER SYSTEMS FOR STEP INPUT FOR VARIOUS VALUES OF CONSTANT K
USING LINEAR SIMULATOR AND COMPARE THEORITICAL AND
PRACTICAL RESULTS
APPARATUS:
THEORY:
1. Delay Time (td): - It is the value of time required for the response to reach 50% of final value in first
attempt.
2. Rise Rime (tr):- It is the time required for the response to rise from 10% to 90% of the final value for the
over damped system and 0 to 100% value for under damped system.
3. Peak Time (tp) : - It is the time required for the response to reach the peak of the time response or the peak
overshoot.
4. Peak Overshoot (MP): - It indicates the normalized difference between the time response peak & steady
state output. It is defined as peak percent overshoot.
OBSERVATIONS:
PROCEDURE :
PRECAUTIONS :
ASSESMENT QUESTIONS :
EXPERIMENT NO. 11
OBJECTIVE: TO STUDY (i) SYNCHRO TRANSMITTER CHARACTERSTICS
(ii) OBTAIN SYNCHRO TRANSMITTER – RECEIVER CHARACTERSTICS
APPARATUS:
THEORY :
The term synchro is a generic name for a family of inductive devices which works on the principle of a
rotating transformer basically they are electro- mechanical devices or electromagnetic transducers which
produces an o/p voltage depending upon angular position of the rotor a synchro system is formed by
inter connection. The basic synchro is usually called asynchro transmitter. Its construction is similar to
that of a three phase alternator. The stator (stationary member) is of laminated silicon steel and is slotted
to accommodate a balanced three phase winding which is usually of concentric coil type f (three identical
coils are placed in the stator with their axis 120 degree apart) and is Y connected. The rotor is a dumb
bell shape type in construction and wound with a concentric coil. An a.c. voltage is applied to the rotor
winding through slip rings. The system set up is consists of synchro transmitter and synchro receiver on
a single rigid panel housed in MS cabinet plates, Rotor position of Tx and Rx is marked by graduated
angular scale with pointer arrangement. AC input excitation supply for rotor of Tx andRx is provided
internally and panel switches are provided to make it On and Off independently. Test points for Tx and
Rx stator and Rotor points are provided on panel.
PROCEDURE :
GRAPHS:
RESULT :
PRECAUTIONS :
ASSESMENT QUESTIONS :
1. What is a synchro?
2. What is the use of synchro?
3. What is the constructional difference between synchro transmitter
& synchro receiver?
4. What is the relation between a synchro & a transformer?
5. Where do we get maximum e m f in a synchro?
EXPERIMENT NO. 12
OBJECTIVE: TO STUDY P, PI AND PID TEMPERATURE CONTROLLER FOR
AN OVEN AND COMPARE THE CHARACTERSTICS
APPARATUS:
THEORY :
This is proportional to the integral of error, thus is dependent on the history of the out put and not only
the current value. thus, the value of integral action contribution is not as obvious from the apparent output
plot as in case of proportional contribution. The effect of 1 action is to reduce average value of the steady
state error. Note that if steady state error is not constant( for example steady state error of sinusoidal +
some constant value) then PI controller reduces the dc part ( the average value) to zero and now sinusoidal
variation about zero dc value remains. The disadvantage of integral action is that it increases system’s
setting time. A typical output plot with PI action (proportional+ integral) is shown below. For this Kd is
set to zero.
The third term of PID controller transfer equation contributes proportional to the time derivative of error
(or rate of change of error). This part is introduced to compensate against the output variations with respect
to time. If steady state error is not constant (for example steady state error of sinusoidal+ some constant
value) then PD controller reduces the varying part to zero and the constant steady error of average value
remains. The D action depends on few past and the current error value and not the complete history as in
case of integral action. The contribution is high - speed changes in output that may occur because of
various reasons. This also responds to the output variations that may rise due to noise in the sensing,
conditioning and feedback network which is unnecessary and hence these parts must be precision type.
PROCEDURE :
PD Controller:
5. Switch ON derivative stage keeping integeral stage OFF and fix KP at certain value.
6. Vary Derivative gain Dt for 3 to 4 values and Note down the Output C(S) waveforms for each value
PI Controller:
7. Switch OFF Dt stage, Switch ON Integral stage and Fix KP at certain value.
8. Vary Integral gain Int for 3 to 4 values and note down the output C(S) waveforms for each value.
PID Controller:
9. Switch ON all the three controllers fix derivative, Integral controller at certain values.
10. Vary proportional controller gain KP and note down output C(S)waveforms.
11. Compare the output waveforms for different controller gains and write remarks on the effects of
various controller gains on 2nd order system time response specifications.
RESULT :
PRECAUTIONS :
ASSESMENT QUESTIONS:
EXPERIMENT NO. 13
OBJECTIVE: TO SIMULATE AND COMPARE THE RESPONSE OF 2nd ORDER
SYSTEMS WITH AND WITHOUT LEAD, LAG, LEAD-LAG COMPENSATORS/
SIMULATE PID CONTROLLER FOR TRANSPORTATION LAG
APPARATUS:
Theory :
Passive electric components –resistors, capacitors and inductors are used for implementation of a
compensator. However the inductor is a very bulky component at low frequencies, passive networks are
made up of only resistors and capacitors are used in practice. Condition for reliability of transfer function
D(s) with passive resistor capacitor (RC) networks is that all finite poles of D(s) may lie anywhere in s-
plane. By taking an operational amplifier to the output of passive RC network, it is possible to realize a
specified gain of the compensator.
Lead compensator has a single pole and a single zero with the pole lying to the left of the zero on the
negative real axis of the complex plane. The first order compensator is a lead compensator if p>z.
A lag compensator has a single pole and a single zero with the pole lying to the right of zero on negative
real axis of the complex plane. The first order compensator is therefore a lag compensator if p<z.
PROCEDURE:
1. Connect the circuit as per circuit diagram for phase lag network.
2. Switch ON the power supply to function generator and adjust input sine wave to say 5V.
3. C.R.O. is to be connected in X-Y made for phase displacement measurement connect X-input of CRO
to input of lag network and Y- input of C.R.O to output of lag network.
4. Slowly vary the input frequency and note down the output magnitude to calculate gain │T (jw)│ and
change in phase shift T(jw) using lassjous figures concept
5. Calculate the theoretical values of [T (jw) ] and θ from the formula given above.
6. Plot the graphs of [T(jw) ] and θ adjusting frequency. Find the common frequency.
7. Repeat the above procedure for lead network, lead compensator, lag compensator.
8. Draw bode plot for all the system.
GRAPHS:
LAG COMPENSATOR
PRACTICAL THEORITICAL
Sr. No. f(Hz) Vo Vi IT(jw)|db =20 log ɵ IT(jw)| ɵ
|T(jw)|)
LEAD COMPENSATOR
PRACTICAL THEORITICAL
Sr. No. f(Hz) Vo Vi IT(jw)|db =20 log ɵ IT(jw)| ɵ
|T(jw)|)
LEAD-LAG COMPENSATOR
PRACTICAL THEORITICAL
Sr. No. f(Hz) Vo Vi IT(jw)|db =20 log ɵ IT(jw)| ɵ
|T(jw)|)
RESULT:
Thus the design of lag lead compensator network has been verified.
PRECAUTIONS :
ASSESMENT QUESTIONS:
Crosschecked By
HOD EEE
Verified By
Director, DGI Greater Noida