Advanced Electrical Engineering Lab Manual PDF
Advanced Electrical Engineering Lab Manual PDF
ACKNOWLEDGEMENT
This manual is the result of contributions from the following staff members.
Mr.
Mr.
Mr.
Ms.
Mr.
Anith Krishnan
Jijo Balakrishnan
Githin Gopal
Mini M. B.
Sreekumar
INTRODUCTION
EE 707 - Advanced Electrical Engineering Lab is a part of the course study of the
students of Electrical Engineering registered under CUSAT. The lab aims in delivering
a better understanding of advanced concepts especially related to instrumentation and
control. The lab also introduces the student to various simulations softwares like MATLAB
and SPICE. The knowledge of simulation tools will empower the students with sufficient
knowledge for the simplified analysis of control systems, power systems and electronic
circuits.
INSTRUCTIONS
Discipline has to be maintained throughout the lab session.
All students should wear shoes.
Male students should tuck in their shirts.
Students should not lean on the work bench or on the computer table.
Do not switch on the supply before the circuit is verified by the concerned lab faculty.
Shutdown the computer before leaving the lab.
Use of mobile phone inside the laboratory is strictly prohibited.
Entry will be allowed only to students who have their rough record and fair record
(completed) in custody.
Students should have their identity cards in custody inside the lab.
Use of USB drives, CDs, DVDs or any other portable data storage device without
the permission of the lab in-charge is forbidden.
All the students are to strictly abide by the instructions given here and any additional
instruction given during the lab session, failing to which he/she will have to face disciplinary
action.
Contents
Strain Measurement
Synchro.
LVDT.
11
Familiarization of MATLAB I.
13
15
17
Lag Compensator.
19
Lead Compensator.
20
Familiarization of SIMULINK.
22
25
2006 Scheme
Experiment No.: 1
STRAIN MEASUREMENT
Aim:
To study the strain measurement kit and to use the kit to measure the strain.
Components Required:
Students are expected to write the components required before coming to the lab.
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
1.
2.
3.
4.
5.
Observation Table:
Sl.
No.
1
2
.
.
.
10
2006 Scheme
6P L
BT 2 E
where
P is the load applied in kg.
L is the effective length of the beam (22 cm).
B is the width of the beam (2.8cm).
T is the thickness of the beam (0.25cm).
E is the Youngs modulus (2 106 ).
S is the strain.
Sample Graph:
g
n
i
d
a
e
r
d
e
t
a
c
i
d
n
I
)
n
i
a
r
t
s
o
r
c
i
g
in
d
a
e
r
d
e
t
a
c
i
d
n
I
)
in
a
r
t
s
o
r
ic
m
n
i
(
m
n
i
(
Result:
2006 Scheme
Experiment No.: 2
SYNCHRO TRANSMITTER/RECEIVER
Aim:
To study the synchro transmitter/receiver kit and to obtain the following characteristics
1. stator output voltage vs. rotor position
2. error vs. stator position
Components Required:
Students are expected to write the components required before coming to the lab.
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
1. Connect digital voltmeter across to any of the two stator terminals of synchro transmitter.
2. Connect synchro transmitter stator outputs to the corresponding stator terminals of
synchro receiver.
3. Power ON all the switches.
4. Verify the state output voltage is 0V at 0 , if it not 0V, then adjust the pointer of
the transmitter to make it 0V.
5. Adjust the transmitter rotor position step by step by using the knob and note down
the voltage, rotor position of the transmitter and receiver in the observation table.
6. Switch off all the switches.
Observation Table:
Sl. Transmitter rotor position Stator Voltage Receiver rotor position
No.
(degree)
(V)
(degree)
1
2
.
.
.
.
2006 Scheme
Sample Graph:
t
u
p
t
u )
o V
r (
o
ta
tS
Result:
2006 Scheme
Experiment No.: 3
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Initially SW1, SW3, SW4 and SW5 SPDT switches in OFF position.
Set the switch SW2 in INT mode.
Power on the switch SW1 and SW3.
Connect the voltmeter across the bana connectors P15 and P17.
Connect the pulse 1 connectors P5 to P9, pulse 2 connectors P6 to P14, pulse 3
connectors P7 to P12 and pulse 4 connectors P8 to P11.
Motor armature winding is connected across the banana connectors P15 (A) and P17
(AA).
Motor field winding is connected to banana connector P16.
Switch ON SW5 ans SW4.
Vary the pot in steps from minimum position to maximum position and note down
the output voltage and speed in each step.
Bring the pot to minimum position and switch off the supply.
2006 Scheme
Observation Table:
Sl. Armature Voltage Speed
No.
(V)
(rpm)
1
2
.
.
.
.
Result:
2006 Scheme
Experiment No.: 4
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
1. Connections are done as per the circuit diagram. Connect a voltmeter across the
RTD terminals. Switch on the supply and keep the instrument in on condition for
10 minutes for initial warm up.
2. Pour water to about 3/4th of the kettle and place the sensor and the thermometer
inside it.
3. Note down the initial water temperature from the thermometer.
4. Adjust the initial set potentiometer in the front panel till the display shows the intial
water temperature.
5. Switch on the kettle and wait till the water boils. Note down the reading in the
thermometer and adjust final set potentiometer till the display reads the boiling
water temperature.
6. Remove the sensor from the boiling water and immerse it in cold water. If the
display reading and the thermometer reading are not the same, then adjust the inital
set potentiometer until they are equal.
7. Repeat the above process till the display reads the exact boiling and cold water
temperatures. If the correct value is displayed, it is inferred that the device has been
caliberated.
8. After caliberation, pour cold water into the kettle and adjust the thermostst setting
in steps so that the water temperature increases. Note down the temperature and
the display reading during each step. Also note down the voltmeter reading. The
thermostat is varied until the water starts boiling.
9. Switch of the kettle and the supply.
2006 Scheme
Observation Table:
Sl.
No.
1
2
.
.
.
.
Result:
2006 Scheme
Experiment No.: 5
LVDT
Aim:
To calibrate the LVDT in the range 10 mm and to plot the characteristics.
Components Required:
Students are expected to complete this section before coming to the lab.
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
1. Switch on the instrument. The display glows to indicate that the instrument is on.
Keep the instrument in the on position for ten minutes for initial warm-up.
2. Rotate the micrometer till it reads 20mm.
3. Adjust the CAL potentiometer so that the display reads 10.
4. Rotate the micrometer till it reads 10mm.
5. Adjust the ZERO potentiometer until the display shows 0 reading.
6. Rotate back the micrometer till it reads 20mm and adjust the CAL potentiometer
until the display reads 10. Now the instrument is caliberated for 10 mm range.
7. Rotate the micrometer in steps pf 1 or 2 mm and tabulate the readings. The readings
to be noted down are: actual displacement, indicated displacement and the voltage
across the output terminals.
8. Switch off the supply.
Observation Table:
Sl. Actual reading Indicated reading Voltage
No.
(mm)
(mm)
(V)
1
2
.
.
.
.
2006 Scheme
Sample Graph:
eg
alt
oV )
tu V(
pt
uO
Result:
10
2006 Scheme
Experiment No.: 6
Theory:
Students are expected to complete this section before coming to the lab.
Procedure:
Circuit set-up
1.
2.
3.
4.
5.
Open-loop controller
1.
2.
3.
4.
Closed-loop controller
1.
2.
3.
4.
5.
11
2006 Scheme
Observation Table:
Sl.
No.
1
2
.
.
.
.
Mode
Set speed
(CL or OL)
(rpm)
Process Speed
(rpm)
Result:
12
2006 Scheme
Experiment No.: 7
FAMILIARIZATION OF MATLAB I
Aim:
To familiarize with some basic commands in MATLAB.
Main Window:
To store a row matrix A = 1 2 3
>> A=[1 2 3]
13
2006 Scheme
1 2 3
To store a square matrix, A = 4 5 6
7 8 9
>> A=[1 2 3;4 5 6;7 8 9]
To find the inverse of matrix A
>> A=[1 2;3 4]
>> inv(A)
2
1
gives the answer
1.5 0.5
To find the determinant of A
>> det(A)
gives the answer 2
4 3
1 2
and B =
Multiplication two matrices, A =
2 1
3 4
>> A=[1 2;3 4]
>> B=[4 3;2 1]
>> A*B
8 5
gives the answer
20 13
2
1 2
2
Square of a matrix A =
3 4
>> A=[1 2;3 4]
>> A^2
7 10
gives the answer
15 22
Result:
14
2006 Scheme
Experiment No.: 8
FAMILIARIZATION OF MATLAB II
Aim:
To familiarize with some basic commands in MATLAB related to electrical engineering.
Commands and their usage:
Realize a transfer function G(s) =
1
s2 + 2s + 5
1
and G2(s) = 23
s2 + 2s + 5
2s + 5
1
s2 + 2s + 5
Amplitude
0.2
0.15
0.1
0.05
3
Time (sec)
15
2006 Scheme
1
s2 + 2s + 5
Magnitude (dB)
20
30
40
50
60
70
80
0
Phase (deg)
45
90
135
180
1
10
10
10
10
Frequency (rad/sec)
1
s3 + 3s2 + 5s + 4
Imaginary Axis
4
5
2
Real Axis
Result:
16
2006 Scheme
Experiment No.: 9
2. In the new window, the commands can be entered in the sequence in which they are
meant to be executed.
3. After all the necessary commands are entered, the file is saved using .m extension.
4. The file (all the commands in sequence) can be executed by clicking on the run
button on the toolbar or by pressing F5.
5. The commands will be executed, if there was no error in the code. The command
prompt will display all the errors (if any).
17
2006 Scheme
Excercise:
Obtain the unit-impulse response of the following system:
x 1
0
1
x1
0
=
+
u
x 2
1 1 x2
1
x1
y= 0 1
+ [0]u
x2
Amplitude
0.4
0.3
0.2
0.1
0
0.1
10
12
Time (sec)
Result:
18
2006 Scheme
Experiment No.: 10
LAG COMPENSATOR
Aim:
To design a lag compensator for a system whose open-loop transfer function is given by
G(s) =
5
s(s + 2)
so that the static velocity error constant kv is 20s1 , the phase margin is atleast 55 and
the gain margin is atleast 12dB.
Theory:
Students are expected to complete this section by themselves.
Procedure:
Students are expected to complete this section by themselves.
Result:
G(s)Gc (s) =
20(0.26s + 1)
s(0.5s + 1)(0.04s + 1)
19
2006 Scheme
Experiment No.: 11
LEAD COMPENSATOR
Aim:
To design a lead compensator for a system whose open-loop transfer function is given by
5
G(s) =
s(s + 2)
so that the static velocity error constant kv is 20s1 , the phase margin is atleast 55 and
the gain margin is atleast 12dB.
Theory:
Students are expected to complete this section by themselves.
Procedure:
Students are expected to complete this section by themselves.
Result:
G(s)Gc (s) =
20(8.7s + 1)
(166.7s + 1)s(0.5s + 1)
Ramp Response
5
Input
Uncompensated System
Compensated System
4.5
4
Amplitude
3.5
3
2.5
2
1.5
1
0.5
0
0.5
1.5
2.5
Time (s)
3.5
4.5
20
2006 Scheme
Ramp Response
5.3
Input
Uncompensated System
Compensated System
5.25
Amplitude
5.2
5.15
0.05
5.1
5.05
4.95
5.05
5.1
5.15
5.2
Time (s)
5.25
5.3
5.35
5.4
Magnitude (dB)
150
100
50
0
50
Phase (deg)
100
90
135
180
4
10
10
10
10
Frequency (rad/sec)
10
10
10
21
2006 Scheme
Experiment No.: 12
FAMILIARIZATION OF SIMULINK
Aim:
To familiarize with SIMULINK.
Introduction:
SIMULINK is a Graphical Users Interface (GUI) software which works directly with the
block diagram of a control system (rather than differential equations, or transfer functions)
to produce a simulation of the systems response to arbitrary inputs and initial conditions.
The basic entity in SIMULINK is a block, which can be selected from a library of commonly
used blocks. Alternatively, a user can device special blocks out of the common blocks, Mfiles, MEX files, C, or Java codes through the S-function facility.
Procedure:
1. To open the SIMULINK library browser, double click on the SIMULINK icon on the
MATLAB toolbar, or issue the following command at the MATLAB prompt
>> simulink
2. Click on the create a new model icon on the SIMULINK toolbar. A window for the
new model will open.
Department of Electrical and Electronics Engineering,
College of Engineering, Kidangoor
22
2006 Scheme
3. Open the subsystem library in the general SIMULINK library browser by doubleclicking on the appropriate icon. The subsystems are: Continuous, Discontinuous,
Sinks, Sources etc.
4. Select the required blocks from the subsystems libraries and drag them individually
to the open new model window.
5. Once the required blocks are dragged and placed in the new model window, the inports and out-ports of the adjacent blocks can be joined to create a block diagram as
desired. Double clicking on each block will open a dialog blox, in which the blocks
parameters can be set.
6. Once the block diagram is ready, it is saved into a location on the hard disk drive.
7. In order to simulate the block diagram, click on the play button on the toolbar.
If the model created was correct, the simulation will start and the results can be
viewed using any of the sink blocks in the model. However, if there was an error,
SIMULINK prompts with a diagnostics dialog box which describes what went wrong
in the simulation and also what has to be modified in the model for a successful
simulation.
8. The simulation can be further refined by adjusting the simulation parameters.
SIMULINK provides several simulation parameters that can be adjusted to achieve a
desired accuracy in a simulation. A user can select from a number of time-integration
schemes, such as Runge-Kutta, Euler, etc and as well as refine the tolerances and time
step sizes used for performing the simulation.
23
2006 Scheme
Excercise:
Realize the following block diagram using SIMULINK.
Amplitude
0.8
0.6
0.4
0.2
0
10
15
Time (s)
Result:
24
2006 Scheme
Experiment No.: 13
=
P
s
dt2
H
dt
H
H
or in terms of the standard second-order differential equation,
d2
d
+ 2n
+ n2 = u
2
dt
dt
where
f0
P
H
r
f0
n =
Ps
H
r
D f0
=
2 HPs
u =
25
2006 Scheme
E 0 is computed from
E 0 = V + jXI
where current I is
I=
S
= 0.756 36.87
V
0.6
6 cos1 0.8 = 0.756 36.87
0.8
the
Transforming to the state variable form by taking x1 = and x2 = = ,
state-space representation is given by
x 1
0
1
x1
0
=
+
u
2
x 2
n 2n x2
1
and
1 0 x1
y(t) =
0 1 x2
Matlab Code:
A=[0 1;-37.705 -2.617];
Du=3.79;
B=[0;1]*Du;
C=[1 0;0 1];
D=[0;0];
t=0:0.01:5;
[y,x]=step(A,B,C,D,1,t);
Dd=x(:,1);
Dw=x(:,2);
d=(d0+Dd)*180/pi;
f=f0+Dw/(2*pi);
subplot(2,1,1);
plot(t,d);
grid on;
subplot(2,1,2);
plot(t,f);
grid on;
where d0 is the initial and f0 is the steady state frequency.
Department of Electrical and Electronics Engineering,
College of Engineering, Kidangoor
26
2006 Scheme
Results:
25
(deg.)
30
20
15
0.5
1.5
2.5
3.5
4.5
0.5
1.5
2.5
Time (s)
3.5
4.5
f (Hz)
60.1
60.05
60
59.95
27