Documente Academic
Documente Profesional
Documente Cultură
EE 391
Stream: EE
LIST OF EXPERIMENTS
1. Transient response of R-L and R-C network: simulation with PSPICE/MATLAB
/Hardware
2. Transient response of R-L-C series and parallel circuit: Simulation with
PSPICE/MATLAB / Hardware
3. Study the effect of inductance on step response of series RL circuit in
MATLAB/HARDWARE.
4. Determination of Impedance (Z) and Admittance (Y) parameter of two port network:
Simulation / Hardware.
5. Frequency response of LP and HP filters: Simulation / Hardware.
6. Frequency response of BP and BR filters: Simulation /Hardware.
7. Generation of Periodic, Exponential, Sinusoidal, Damped Sinusoidal, Step, Impulse,
Ramp signal using MATLAB in both discrete and analog form.
8. Determination of Laplace transform and Inverse Laplace transform using MATLAB.
Page | 2
EE 391 CIRCUIT THEORY LAB. MANUAL
EE 391
EXPERIMENT NO : CKT /1
TITLE : TRANSIENT RESPONSE OF R-L AND R-C NETWORK: SIMULATION
WITH PSPICE/MATLAB /HARDWARE
OBJECTIVE : Study and obtain the transient response of a series R-C and series R-L circuit
using MATLAB.
THEORY:
Page | 3
CIRCUIT THEORY LAB. MANUAL EE 391
Now as all initial conditions set equal to zero, i.e. i(0 _) 0 , so the equation
becomes
V (s) 1 V ( s)
I ( s) .
or, R sL L s R
L
Page | 4
EE 391 CIRCUIT THEORY LAB. MANUAL
EE 391
Example 1: To simulate and study the transient response of a series R-C circuit using
MATLAB where R=200Ω, C=10µF for the following conditions:
1) source voltage is 40V DC with all initial conditions set equal to zero.
2) source voltage is a pulse signal with a period of 0s, width of 5ms, rise and fall
times of 1µs, amplitude of 20V and an initial value of 0V and all initial
conditions set equal to zero.
sC 40 40 1
I ( s) . .
Therefore, 1 R (s 1 )
RC ( s ) s
RC RC
Taking Inverse Laplace transform on both sides of the above equation,
1
40 RC .t
i (t ) e
R
40
At t 0 , i(t ) A 200mA
200
At t , i(t ) 0
At t RC 2ms , i(t ) 200 (37%) 74mA
Page | 5
CIRCUIT THEORY LAB. MANUAL EE 391
Page | 6
EE 391 CIRCUIT THEORY LAB. MANUAL
EE 391
s s
20sC (1 e ) 1 20 1 e
I ( s) . .
and, 1 s R 1 1
sRC ( s ) (s ) (s )
RC RC RC
Taking Inverse Laplace transform on both sides of the above equation,
20 RC .t
1 1
.(t 1)
i (t ) e u (t ) e RC u (t 1)
R
Putting R 200 and C 10 F , we get
20 500.t
i(t ) e u (t ) e500.(t 1)u (t 1)
200
20
At t 0 , i (t ) A 100mA
200
At t , i(t ) 0
Voltage drop across the resistor R is,
20 500.t
VR (t ) Ri(t ) 200 e u (t ) e500.(t 1)u (t 1)
200
VR (t ) 20 e500.t u(t ) e500.(t 1)u (t 1)
or,
At t 0 , VR (t ) 20V
At t , VR (t ) 0
Voltage drop across the capacitor C is,
At t 0 , VC (t ) 0
At t , VC (t ) 0
At t T 5ms , VC (t ) 18.36V
Page | 7
CIRCUIT THEORY LAB. MANUAL EE 391
SIMULATION DIAGRAM:
Simulate the individual circuits and draw the plot of i (t ) vs. t , VR (t ) vs. t and VC (t ) vs. t .
Page | 8
EE 391 CIRCUIT THEORY LAB. MANUAL
EE 391
Example 2: To simulate and study the transient response of a series R-L circuit using
PSPICE where R=100Ω, L=10mH for the following conditions:
1) source voltage is 10V DC with all initial conditions set equal to zero.
2) source voltage is 10V DC with initial condition iL (0 _) 20mA .
10 .t
R
i(t ) 1 e L
R
Putting R 100 and L 10mH , we get
10
i(t ) 1 e10 t
4
100
At t 0, i(t ) 0
10
At t , i (t ) A 100mA
100
L
At t 100μs , i(t ) 100 (63%) 63mA
R
Voltage drop across the resistor R is,
10
VR (t ) Ri(t ) 100 (1 e10 .t ) 10(1 e10 .t )
4 4
100
At t 0 , VR (t ) 0
At t , VR (t ) 10V
Page | 9
CIRCUIT THEORY LAB. MANUAL EE 391
VL (t ) v(t ) VR (t ) 10e10 .t
4
At t 0 , VL (t ) 10V
At t , VL (t ) 0
Page | 10
EE 391 CIRCUIT THEORY LAB. MANUAL
EE 391
At t 0, i(t ) 20mA
At t , i(t ) 100mA
Voltage drop across the resistor R is,
At t 0 , VR (t ) 2V
At t , VR (t ) 10V
Voltage drop across the inductor L is,
VL (t ) v(t ) VR (t ) 8e10 .t
4
At t 0 , VL (t ) 8V
At t , VL (t ) 0
Page | 11
CIRCUIT THEORY LAB. MANUAL EE 391
SIMULATION DIAGRAM:
Simulate the individual circuits and draw the plot of i (t ) vs. t , VR (t ) vs. t and VL (t ) vs. t .
Simulate the individual circuits and draw the plot of i (t ) vs. t , VR (t ) vs. t and VL (t ) vs. t
Page | 12
EE 391 CIRCUIT THEORY LAB. MANUAL
EXPERIMENT NO : CKT/2
OBJECTIVE : To determine
I. Transient response of a series R-L-C circuit, excited by a unit step input
using MATLAB.
II. Transient response of a R-L-C parallel circuit, excited by a unit step input
using MATLAB.
I ( s) vC (0 _)
V ( s) RI (s) L[sI (s) i (0 _)]
sC s
Now as all initial conditions set equal to zero, i.e. i(0 _) 0 and vC (0 _) 0 , so
the equation
becomes,
1
V ( s) I ( s) R sL
sC
Page | 13
CIRCUIT THEORY LAB. MANUAL EE 391
1
Here, v(t ) u(t ) V ( s)
s
1 1
I ( s ) R sL
Therefore,
s sC
1
I (s) L
R 1
s2 L s
or,
L LC
The roots of the denominator polynomial of the above equation are,
R 1
s2 L s 0
L LC
R R2 1
or,
s1 and
2L 4 L2 LC
R R2 1
s2
2L 4 L2 LC
1 R
Let
0 and
0
LC 2L
R C
2 L
Now,
1 1
1
L L( s1 s2 ) L( s2 s1 )
I ( s)
( s s1 )( s s2 ) ( s s1 ) ( s s2 )
1 1 1
I ( s)
or,
20 L 1
2 ( s s1 ) ( s s2
)
Page | 14
EE 391 CIRCUIT THEORY LAB. MANUAL
i(t )
1
e
0t e0t 2 1
e
0t 2 1
20 L 1 2
Case - 1:-
L
R2
C
i.e. 1
i(t )
1
0 L 1 2
e
0t
sin 0t 1 2
The network is then said to be Under Damped or Oscillatory.
Case - 2:-
L
R2
C
i.e. 1
1 0t
i(t ) t.e
L
The network is then said to be Critically Damped.
Case - 3:-
L
R2
C
i.e. 1
i(t )
1
0 L 2 1
e
0t
sinh 0t 2 1
The network is then said to be Over Damped.
Page | 15
CIRCUIT THEORY LAB. MANUAL EE 391
The current response for the above three cases is shown in the figure below:
Page | 16
EE 391 CIRCUIT THEORY LAB. MANUAL
Example 1: Obtain the transient response of a series RLC circuit, excited by a unit step input,
using MATLAB where L 8mH and C 2µF for the following conditions:
L
1) R2 , under damped case where R 1
C
L
2) R2 , critically damped case where R 4
C
L
3) R2 , over damped case where R 6
C
SIMULATION DIAGRAM:
For
Inductor L1: IC=0A
Capacitor C1: IC=0V
For Analysis Setup:
Transient:-
Print Step : 0µs
Final Time : 100µs
Simulate the circuit and draw the plot of i (t ) vs. t .
Note the value of the first peak of the current response.
For
Inductor L1: IC=0A
Capacitor C1: IC=0V
Page | 17
CIRCUIT THEORY LAB. MANUAL EE 391
For
Inductor L1: IC=0
Capacitor C1: IC=0V
For Analysis Setup:
Transient:-
Print Step : 0µs
Final Time : 70µs
Page | 18
EE 391 CIRCUIT THEORY LAB. MANUAL
EXPERIMENT NO : CKT/333
SIMULATION DIAGRAM:
RESULT: Discus the graph Voltage across inductor vs time and Current vs time in the light of
Rise time, Peak time, Settling time.
Page | 19
CIRCUIT THEORY LAB. MANUAL EE 391
EXPERIMENT NO : CKT/433
OBJECTIVE : To determine
I. The open circuit impedance parameters of the ‘T’ network.
II. The short circuit admittance parameters of the ‘π’ network
THEORY: Let us consider a linear passive two port network as shown in figure below:
Z-parameters are obtained by making either terminals 11’ open circuited or terminals 22’
open circuited.
V1
Z11 I 2 0
I1
is called the input impedance or driving point impedance with output open circuited.
V2
Z 21 I 2 0
I1
is called the forward transfer impedance with output open circuited.
V1
Z12 I1 0
I2
is called the reverse transfer impedance with output open circuited.
V2
Z 22 I1 0
I2
Page | 20
EE 391 CIRCUIT THEORY LAB. MANUAL
Y-parameters are obtained by making either terminals 11’ short circuited or terminals
22’ short circuited.
I1
Y11 V2 0
V1
is called the input admittance or driving point admittance with output short circuited.
I2
Y21 V2 0
V1
is called the forward transfer admittance with output short circuited.
I1
Y12 V1 0
V2
is called the reverse transfer admittance with input short circuited.
I2
Y22 V1 0
V2
is called the output admittance with input short circuited.
Page | 21
CIRCUIT THEORY LAB. MANUAL EE 391
Example 1: Determine the open circuit impedance parameters from the network as
shown in the figure below using MATLAB simulation.
Fig:1
Output port open circuited,
Z11=2.5 Ohm
Z21=1 Ohm
Fig:2
Input port open circuited,
Z12=1 Ohm
Z22=2 Ohm
Page | 22
EE 391 CIRCUIT THEORY LAB. MANUAL
Example 2: Determine the short circuit admittance parameters from the network as
shown in the figure below using MATLAB simulation.
Fig:1
Fig:2
For the output port short circuited,
Y11=0.3125 mho
Y21=0.1875 mho
Page | 23
CIRCUIT THEORY LAB. MANUAL EE 391
Example 3: Determine the short circuit admittance parameters from the network as shown in the figure
below using MATLAB simulation.
Applied voltage at input port is 10 V.
Fig:1
Fig:2
For the input port short circuited,
Y22=1 mho
Y12= 0.25 mho
Page | 24
EE 391 CIRCUIT THEORY LAB. MANUAL
EXPERIMENT NO : CKT/5
OBJECTIVE : To study the frequency response of Low Pass and High Pass filter using MATLAB.
Output :
Page | 25
CIRCUIT THEORY LAB. MANUAL EE 391
Output :
Page | 26
EE 391 CIRCUIT THEORY LAB. MANUAL
EXPERIMENT NO : CKT/733
TILLE : GENERATION OF PERIODIC, EXPONENTIAL, SINUSOIDAL,
DAMPED SINUSOIDAL, STEP, IMPULSE, RAMP SIGNAL USING
MATLAB IN BOTH DISCRETE AND ANALOG FORM.
OBJECTIVE : To generate
I. Normal sinusoidal signal
II. Under damped signal
III. Over damped signal
IV. Discrete sinusoidal signal
V. Discrete damped sinusoidal signal
VI. Unit step function-1
VII. Unit step function-2
VIII. Ramp wave
IX. Impulse wave
Matlab Code:
f=input('enter the freq:');
n=input('enter the length:')
w=2*pi*f;
t=0:0.01:10
y=sin(w*t)
plot(t,y);
xlabel('time in sec...........>');
ylabel('amplitude in cm..........>');
title('NORMAL SINUSODIAL SIGNAL');
grid on;
Output :
Enter the frequency: 1
Enter the length: 10
NORMAL SINUSODIAL SIGNAL
1
0.8
0.6
0.4
amplitude in cm..........>
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 1 2 3 4 5 6 7 8 9 10
time in s ec ...........>
Page | 27
CIRCUIT THEORY LAB. MANUAL EE 391
Matlab Code:
a=input('enter the damping costant:');
l=input('enter the length:');
t=0:0.1:10
y=exp(-a*t);
plot(t,y);
xlabel('time in sec');
ylabel('amplitude in cm.');
title(‘UNDER DAMPED SIGNAL');
grid on;
Output :
Enter the damping constant: 0.5
Enter the length: 10
0.9
0.8
0.7
amplitude in cm.
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
time in sec
Page | 28
EE 391 CIRCUIT THEORY LAB. MANUAL
Matlab Code:
a=input('enter the damping costant:');
l=input('enter the length:');
y=exp(a*t);
t=0:0.1:10
plot(t,y);
xlabel('time in sec');
ylabel('amplitude in cm.');
title('OVER DAMPED SIGNAL');
grid on;
Output :
Enter the damping constant: 0.5
Enter the length: 10
OVER DAMPED SIGNAL
150
100
amplitude in cm.
50
0
0 1 2 3 4 5 6 7 8 9 10
time in sec
Page | 29
CIRCUIT THEORY LAB. MANUAL EE 391
Matlab Code:
f=input('enter the freq:');
n=input('enter the length:');
w=2*pi*f;
t=0:0.1:10
y=sin(w*t)
stem(t,y);
xlabel('time in sec...........>');
ylabel('amplitude in cm.............>');
title('DISCRETE SINUSODIAL SIGNAL');
grid on;
Output :
Enter the frequency: 1
Enter the length: 10
0.8
0.6
0.4
amplitude in cm.............>
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 1 2 3 4 5 6 7 8 9 10
time in sec...........>
Page | 30
EE 391 CIRCUIT THEORY LAB. MANUAL
Matlab Code:
f=input('enter the freq:');
l=input('enter the length:');
a=input('enter the damping constant:');
w=2*pi*f;
for(t=0:0.01:10)
y=sin(w*t)*exp(-a*t)
plot(t,y,'r.');
xlabel('time in sec..........>');
ylabel('amplitude in cm............>');
title(' DAMPED SINUSOIDAL SIGNAL');
grid on;
hold on;
end;
Output :
Enter the frequency: 2
Enter the damping constant: 0.5
Enter the length: 10
Page | 31
CIRCUIT THEORY LAB. MANUAL EE 391
Matlab Code:
t=0:0.1:10;
t0=2;
y=0*(t<t0)+1*(t>=t0)
plot(t,y);
xlabel('time...............>');
ylabel('amplitude.............>');
title('UNIT STEP FUNCTION ');
grid on;
Output :
UNIT STEP FUNCTION
1
0.9
0.8
0.7
amplitude.............>
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
time...............>
Page | 32
EE 391 CIRCUIT THEORY LAB. MANUAL
Matlab Code:
t=0:0.1:10;
y=1*(t>=1)-1*(t>=3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('UNIT STEP SIGNAL');
grid on;
Output :
0.9
0.8
0.7
0.6
Amplitude
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
Time
Page | 33
CIRCUIT THEORY LAB. MANUAL EE 391
EXPERIMENT NO : CKT/833
TILLE : DETERMINATION OF LAPLACE TRANSFORM AND INVERSE
LAPLACE TRANSFORM USING MATLAB.
OBJECTIVE : To find the Laplace & Inverse Laplace transform by using Matlab commands.
THEORY:
The mathematical expression for Laplace transform is
Lf (t ) F ( s) f (t ) * e st dt
0
The term “Laplace transform of f(t)” is used for the letter Lf(t). The time function f(t) is
obtained back from the Laplace transform by a process called inverse Laplace transformation
and denoted by L-1 thus
L-1[Lf(t)]=L-1[F(s)]=f(t).
The time function f(t) and its Laplace transform F(s) are a transform pair.
0 0
sa
Now put a=jw
1 s j
L[e jt ] L[cos t j sin t ] 2
s j ( s 2 )
s
L[cos t ] & L[sin t ]
s2 2 s2 2
Now, L[eat f (t )] F (s a)
1
L[t ] t.e st dt
0 s2
1
L[e ] e .e dt e ( a s )t dt
at at st
0 0
sa
L[eat f (t )] F (s a) , f (t ) t & a= -3
Page | 34
EE 391 CIRCUIT THEORY LAB. MANUAL
1
F ( s)
s2
1
L[e 3t .t ] (s 3) 2
1
L[(1 e at ate at ) / a 2 ] 2
{L[1] L[e at ] aL[te at ]}
a
1 1 1 a
[ ]
a 2 s s a ( s a) 2
10
L[e 3t . sin 10t ] (s 3) 2 100
L1[ F (s)] f (t )
1
L1 [ ] e at
sa
s2 A B C 2 1 1
F ( s) 2 2
s ( s 1) s
2
s s 1 s s s 1
et / 2 e t / 2
L [ F (s)] 2t 1 e 2t 2e (
1 t t / 2
)
2
2t 2et / 2 sinh(t / 2)
5 1
F ( s) 16
s s3
5 1
L1[ F (s)] L1[ ] L1[16] L1[ ] 5 16 (t ) e 3t
s s3
Page | 35
CIRCUIT THEORY LAB. MANUAL EE 391
Laplace Transform:
Example 1: f(t)=e-5t
Program:
Syms t s
ft=exp(-5*t)
fs=laplace(ft)
Output:
fs=1/(s+5)
Example 2: f(t)=e3t
Program:
Syms t s
ft=exp(3*t)
fs=laplace(ft)
Output:
fs=1/(s-3)
Example 3: f(t)=sin2t
Program:
Syms t s
ft=sin(2*t)
fs=laplace(ft)
output:
fs=2/(s2+4)
Example 4: f(t)=cos5t
Program:
Syms t s
ft=cos(5*t)
fs=laplace(ft)
Output:
fs=s/(s2+25)
Example 5: f(t)=t6
Program:
Syms t s
ft=t6
fs=laplace(ft)
output:
fs=720/s7
Page | 36
EE 391 CIRCUIT THEORY LAB. MANUAL
Example 6: f(t)=t2sin6t
Program:
Syms t s
ft=t^2*sin(6*t)
fs=laplace(ft)
output:
fs=36*(s^2-12)/(s^2+36)^3
Example 7: f(t)=e3tsin2t
Program:
Syms t s
ft=exp(3*t)*sin(2*t)
fs=laplace(ft)
output:
fs=2/(s^2-6*s+13)
Example 8: f(t)=e-3tcos7t
Program:
Syms t s
ft=exp(-3*t)*cos(7*t)
fs=laplace(ft)
output:
fs=(s+3)/(s^2+6*s+58)
Example 9: f(t)=e-2tsin4t
Program:
Syms t s
ft=exp(-2*t)*sin(4*t)
fs=laplace(ft)
output:
fs=4/(s^2+4*s+20)
Page | 37
CIRCUIT THEORY LAB. MANUAL EE 391
Example 2: f(s)=(s3+3s2+4s+4)/(s+1)(s+4)
Program:
Syms t s
fs=(s^3+3*s^2+4*s+4)/(s^2+5*s+4)
ft=ilaplace(fs)
output:
ft=dirac(1,T)-2*dirac(t)+2/3*exp(-t)+28/3*exp(-4*t)
Example 3: f(s)=3/s2+8s+25
Program:
Syms t s
fs=3/( s^2+8*s+25)
ft=ilaplace(fs)
output:
ft=exp(-4*t)*sin(3*t)
Example 4: f(s)=s/s2+a2
Program:
Syms a t s
fs=s/(s^2+a^2)
ft=ilaplace(fs)
output:
ft=cos(a*t)
Example 5: f(s)=1/s+a
Program:
Syms a t s
fs=1/(s+a)
ft=ilaplace(fs)
output:
ft=exp(-a*t)
Page | 38
EE 391 CIRCUIT THEORY LAB. MANUAL
Page | 39