You are on page 1of 6

ISLAMIC UNIVERSITY OF TECHNOLOGY (IUT)

ORGANISATION OF ISLAMIC COOPERATION (OIC)


DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

COURSE NO. : EEE 4202


COURSE TITLE : Electrical Circuit II (Software) Lab
Std. ID:

EXPERIMENT NO. : 01
EXPERIMENT NAME : Study of the step responses of RC, RL, RLC Series and
RLC parallel Circuits Using Matlab.
Objective:
1. To explore the characteristics of both RL and RC series circuits and understand their step
responses.
2. To expand the knowledge of first order circuits and to explore the second order Series
and Parallel RLC circuits.

Part A
Step response for RC Series Circuit:
Problem definition:
Simulate the voltage and current waveshapes of a RC series circuit having a resistance of R =
1000 Ω and a capacitance of C = 0.2 µF for a step input.

Solution method:
1. Open Matlab, and then open the simulink library browser.
2. Create a new model, then go to Simscape, and then to SimPowerSystems.
3. Select specialized technology.
4. Then select fundamental blocks.
5. Add the relevant components and draw the circuit.
6. Add a step response and observe the response of the circuit.
7. Collect the screenshots of the drawn circuit and the results obtained.

Circuit Diagram:

Fig. 01

1
Steps to follow:
1. Instead of using step as the controlling parameter of the controlled voltage source, use the
signal generator.
2. Choose the rectangular waveform from the signal generator.
3. Simulate the circuit again.
4. Attach screenshots of the results obtained in your report.

Class Task:
1. Draw the RL series circuit and observe the step response of the constructed circuit.
Analyze the waveshapes of the voltage and current and archive the screenshots of the
outputs.

Part B

Circuit Diagram:
1. Add the following blocks in a new model file like the diagram in Fig. 02 below.
2. Then connect the blocks according to Fig. 03.
3. Simulate the circuit and observe the voltage and current waveshapes.
4. These blocks can be collected from the control system tab and commonly used blocks.
5. Collect screenshots of the simulated entities for your report.

Fig. 02

2
Fig. 03
Topics to be discussed by the teacher:
1. Using the bus creator and/or mux.
2. Integrator and 1/s.
3. Gain block and time constant.
4. Explanation and reasoning of Fig. 03.
5. Functions of “Powergui”.
6. Simulation model configuration, solver and the maximum step size.
7. Simulation time.
8. Scope and different properties of scope.
9. Singularity functions in Matlab.

3
Part C

Steps to follow:
1. Construct a new model following the series RLC circuit in Fig. 04.
2. Use the signal generator as supply to produce a rectangular waveshape as the input.
3. Simulate the circuit for different values of R, L and C and observe the change in the
voltage and current waveshapes as a result of change in the values of these passive
elements.
4. Save the screenshots of the outputs for different simulations.

Fig. 04
Class task:
1. Following the exact same steps as Part C, simulate a parallel RLC circuit and observe
the different voltage and current waveshapes.
2. Save the waveshapes as screenshots and show them to your teacher.

4
Part D
Code for step response (forced response) of a RC circuit:

% Define the voltage source


Vs = 10;
% Define the capacitor in the circuit
C = 10e-6;
% Define the time lapse that we're going to explore
t = 0 : 0.005 : 0.35;
% Define the resistors in each time constant and
% calculate the voltage across the capacitor
R1 = 5e3;
tau1 = R1*C;
V1 = Vs * ( 1 - exp(-t/tau1) );
R2 = 10e3;
tau2 = R2*C;
V2 = Vs * ( 1 - exp(-t/tau2) );
R3 = 20e3;
tau3 = R3*C;
V3 = Vs * ( 1 - exp(-t/tau3) );
% Plot the responses, all at once
plot(t, V1, 'b-(black and the line will be dash)', t, V2, 'ro(the colour is red and dotted)', t, V3,
'k*(black and the lines will be seen asw star') -indicates colour and design of my graph
grid on- helps to show the grids of the graph
title('Transient Analysis - RC circuit')
xlabel('Time (s)')
ylabel('Voltage across capacitor (V)')
legend(['RC_1 = ' num2str(tau1)],...
['RC_2 = ' num2str(tau2)],... - these values will be converted to strings
['RC_3 = ' num2str(tau3)], 'location', 'best')

QnA (attach extra pages for answering):


1. What is time constant? What is the significance of the time constant?
2. What are the applications of singularity functions?
3. What is the significance of initial value?
4. What is the primary difference between a first order and a second order circuit?

Assignments:
1. Solve the circuit in Fig. 01 so that the time constant in your simulated circuit becomes
equal to 1% of your student ID. Attach all the screenshots of your simulated result.
2. Solve the circuit in Fig. 03 so that the time constant in your simulated circuit becomes
equal to 5% of your student ID. Attach all the screenshots of your simulated result.
3. If any of the class work remains unfinished, they will be automatically regarded as
assignments

5
4. Generate the codes for simulating source free R-C and R-L circuits.

You might also like