Académique Documents
Professionnel Documents
Culture Documents
Software Required :
i. Matlab editor
Theory :
To obtain the voltage across a charging capacitor, let us consider this
figure that includes a voltage source :
Circuit Diagram
𝒅𝐯₀(𝒕) 𝐯₀(𝐭)−𝑽𝒔
C + =0
𝒅𝒕 𝐑
If the capacitor is not charged initially, that is v0(t) = 0 when t = 0, then the
solution to the equation above is given by :
Procedure :
The AC circuit graphs are simulated by programming in MATLAB. The
codes for making the graphs are as follows :
Vs = 220;
C = 30e-6;
t = 0 : 0.005 : 0.45;
R1 = 10e3;
tau1 = R1*C;
V1 = Vs * ( 1 - exp(-t/tau1) );
R2 = 20e3;
tau2 = R2*C;
V2 = Vs * ( 1 - exp(-t/tau2) );
R3 = 40e3;
tau3 = R3*C;
V3 = Vs * ( 1 - exp(-t/tau3) );
grid on
xlabel('Time (s)')
Observation :
For the given charging RC circuit Vs is taken as 220 volts and C= 30µF. The
plot of Voltage across the capacitor is made for R1 = 10kΩ, R2= 20kΩ and
R3= 40kΩ and 3 time constants are explored.
Report :
• Graph :
The output plot of Voltage across capacitor V/S Time for the given RC
charging circuit came out to be:
a) With R1 = 10000 Ω,
C = 30 * 10-6 F,
Vs = 220 V (blue line)
Hence,
= 220 {1 – e-1}
= 220 {1 – 0.3678}
= 220 * 0.6321
= 139.066 V
b) With R2 = 20000 Ω,
C = 30 * 10-6 F,
Vs = 220 V (red circular line)
Hence,
= 220 {1 – e-1}
= 220 {1 – 0.3678}
= 220 * 0.6321
= 139.066 V
c) With R3 = 40000 Ω,
C = 30 * 10-6 F,
Vs = 220 V (black starred line)
So, t = R*C = 1.20s
Hence,
= 220 {1 – e-1}
= 220 {1 – 0.3678}
= 220 * 0.6321
= 139.066 V
Precautions :
· All formulas and syntax must be proper in order to get correct output.
Conclusion :
From the resulting plot of our transient analysis, we see that if the time
constant is small, it takes a shorter time for the capacitor to charge up (the
smaller the time constant the faster the circuit response). We also can see
that when the time constant is reached by each response, we have obtained
more or less the 63% of the total voltage to be taken (that’s why the RC value
is called the time constant).