RC Charging Equation
3 parts
You might come across this circuit in your second physics course, Electricity and Magnetism, when you start learning about capacitors. What's funny is that you'll probably be learning calculus around the same time. Also, when you take Differential Equations, you may actually solve this same circuit equation again! This time, you'll learn how to use something called the Integrating Factor Method. We won't get into that here, but in another example. What is the equation of the output voltage with respect to time? 1. Since the output is taken across the capacitor, we know that the output voltage equals the capacitor voltage, Vout = Vcapacitor = Vc. 2. This is a series circuit because the resistor and capacitor are connected end-to-end, one after another, with no branching paths between them. 3. Since this is a series circuit, the current flowing through the resistor and capacitor must be the same. Current = I = Ir = Ic. 4. We know to use Kirchhoff’s Voltage Law (KVL) because this is a closed-loop circuit. Vsource = Vs Vs - Vr - Vc = 0 | where Vr = Ir*R from Ohms law Vs - (Ir*R) - Vc = 0 | Ir = Ic Vs - (Ic*R ) - Vc = 0 | where Ic = C * dVc/dt Vs - (C*dVc/dt * R) - Vc = 0 | divide everything by RC Vs/RC - dVc/dt - Vc/RC = 0 | get dVc/dt by itself dVc/dt = Vs/RC - Vc/RC | same denominator dVc/dt = (Vs - Vc) / RC | cross-multiply dVc / (Vs -Vc) = dt/RC | take integral of both sides -ln(Vs- Vc) = t/RC + k | take e of both sides -(Vs - Vc) = e^(t/RC + e^k) | e law addition -(Vs - Vc) = e^(t/RC) * e^(k) | e^(k) is a constant -(Vs - Vc) = e^(t/RC) * k | multiply everything by -1 Vc - Vs = -e^(t/RC) * k | isolate Vc Vc = Vs - e^(t/RC) * k | initial condition Vc(0) = 0 0 = Vs - e^(0) * k | anything raised to 0 is 1 0 = Vs - (1) * k | 1 * k is k 0 = Vs - k | add k over to isolate Vs Vs = k | now plug back into Vc equation for Vs Vc = Vs - e^(t/RC)*k | where k=Vs Vc = Vs - e^(t/RC)*Vs | factor out Vs Vc = Vs( 1 - e^(t/RC) ) | where RC = time constant = T Vc = Vs(1 - e^(t/T) )
- Vs DC V, 5V
- R Resistor, 10kΩ
- C Capacitor, 1µF