Lab Sheet 2
Lab Sheet 2
Lab Sheet 2
Lab Sheet - 2
Simulation of the R-C amplifier circuit (continuous system).
+ V1 - R2
V2
A
C1
+
ein R1 V2 C2 R3
-
The system can be described by the following two differential equations. i.e mathematical
modeling
Current entering through capacitor C1, at the input side, is
C1 (dV1/dt) = (ein – V)/R1 ----------- (1)
dV1/dt = (ein – V)/R1C1
Current entering through capacitor C2, at the output side, is
C2 (dV2/dt) = A/R2 (ein – V1) – V2 (R2 + R3)/R2R3 ------------(2)
By providing the values of these constant we can calculate the value of V1 and V2.
For the calculation of the equation values, we use the Runge – Kutta - 4 methods.
m1 = f(xi, yi) m2 = f(xi +
h/2, yi + m1h/2) m3 = f(xi
+ h/2, yi + m2h/2) m4 =
f(xi + h,yi + m3h)
yi+1 = yi + ( (m1 + 2m2 + 2m3 + m4)/6 )h
Initial condition
For t = 0, V1 = 0 and V2 = 0
h = 0.0002 and ein = 1.5 V (t >= 0) {n = 500 data points}
=0V (t < 0)
= - 10000 sec-1