Professional Documents
Culture Documents
capacitor or an inductor
First order • The circuits involve 1st order differential
circuits equations
• Circuits with both capacitors and inductors
form 2nd order circuits
73
Capacitor discharge in a resistor
74
Example
6
Implementing in excel
75
Capacitor connected to voltage source
76
Example
14
8
𝑑𝑑𝑑𝑑 1 1
The response is + 𝑣𝑣 = 𝑣𝑣𝑜𝑜 which
Voltage
𝑑𝑑𝑑𝑑 𝑅𝑅𝑅𝑅 𝑅𝑅𝑅𝑅
can be approximated as; 6
𝑣𝑣(𝑗𝑗 + 1) − 𝑣𝑣(𝑗𝑗) 1 1
= 𝑣𝑣𝑜𝑜 − 𝑣𝑣 j 4
Δ𝑡𝑡 𝑅𝑅𝑅𝑅 𝑅𝑅𝑅𝑅
Δ𝑡𝑡
𝑣𝑣 𝑗𝑗 + 1 = 𝑣𝑣 𝑗𝑗 + 𝑣𝑣𝑜𝑜 − 𝑣𝑣 𝑗𝑗 2
𝑅𝑅𝑅𝑅
Implemented in Excel: 0
0 0.02 0.04 0.06 0.08 0.1 0.12
Time (s)
77
Source-Free RL Circuit
78
Example
The 12-V battery is disconnected at t = 0. Find the
inductor current and voltage v for all times.
4 3
Current (A)
2
Δ𝑡𝑡𝑡𝑡
Rem. 𝑖𝑖 𝑗𝑗 + 1 = 𝑖𝑖 𝑗𝑗 −
1.5
𝑖𝑖(𝑗𝑗) 1
𝐿𝐿 0.5
In Excel; 0
0 0.02 0.04 0.06 0.08 0.1 0.12
Time (s)
79
DC current in an inductor
• By closing the loop and applying KVL
𝑉𝑉𝑜𝑜 − 𝑖𝑖𝑖𝑖 − 𝑣𝑣𝐿𝐿 = 0
𝑑𝑑𝑑𝑑
𝑖𝑖𝑖𝑖 + 𝐿𝐿 = 𝑣𝑣0
𝑑𝑑𝑑𝑑
Hence
𝑑𝑑𝑑𝑑 1 𝑅𝑅
= 𝑣𝑣𝑜𝑜 − 𝑖𝑖
𝑑𝑑𝑑𝑑 𝐿𝐿 𝐿𝐿
To approximate the solution:
𝑖𝑖 𝑗𝑗 + 1 − 𝑖𝑖 𝑗𝑗 1 𝑅𝑅
= 𝑣𝑣𝑜𝑜 − 𝑖𝑖
Δ𝑡𝑡 𝐿𝐿 𝐿𝐿
1 𝑅𝑅
𝑖𝑖 𝑗𝑗 + 1 = 𝑖𝑖 𝑗𝑗 + Δ𝑡𝑡 𝑣𝑣𝑜𝑜 − 𝑖𝑖(j)
𝐿𝐿 𝐿𝐿
80
Example
If the inductor is initially discharged. Then upon closing the switch;
𝑑𝑑𝑑𝑑 1 𝑅𝑅
= 𝑣𝑣𝑜𝑜 − 𝑖𝑖
𝑑𝑑𝑑𝑑 𝐿𝐿 𝐿𝐿
1 𝑅𝑅
𝑖𝑖 𝑗𝑗 + 1 = 𝑖𝑖 𝑗𝑗 + Δ𝑡𝑡 𝑣𝑣𝑜𝑜 − 𝑖𝑖(j)
𝐿𝐿 𝐿𝐿
Estimating in Excel: Charging inductor
3.5
2.5
Current (A)
2
1.5
0.5
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s) 81
AC Circuit Analysis
• Consider the main circuit elements with voltage-
current relationship as
• Resistor: 𝑣𝑣𝑅𝑅 = 𝑅𝑅𝑖𝑖𝑅𝑅 (𝑡𝑡)
𝑑𝑑𝑣𝑣𝐶𝐶 (𝑡𝑡)
• Capacitor: 𝑖𝑖𝐶𝐶 = 𝐶𝐶
𝑑𝑑𝑑𝑑
𝑑𝑑𝑖𝑖 (𝑡𝑡)
• Inductor: 𝑣𝑣𝐿𝐿 = 𝐿𝐿 𝐿𝐿
𝑑𝑑𝑑𝑑
• Most common AC signals is in sinusoidal form e.g.
𝑣𝑣(𝑡𝑡) = 𝑣𝑣𝑚𝑚 cos 𝜔𝜔𝜔𝜔 and/or 𝑖𝑖(𝑡𝑡) = 𝑖𝑖𝑚𝑚 cos 𝜔𝜔𝜔𝜔
82
Resistors connected to AC
• Consider the circuit
• Voltage across the resistor 𝑣𝑣𝑅𝑅 = 𝑣𝑣𝑚𝑚 cos(𝜔𝜔𝑡𝑡 + 𝜙𝜙)
• Current through the resistor (using Ohms law) is
𝑖𝑖𝑅𝑅 𝑡𝑡 = 𝑖𝑖𝑚𝑚 cos(𝜔𝜔𝑡𝑡 + 𝜙𝜙)
• Plot of current and voltage
• Note: the voltage and current across a resistor
are in phase, that is, they do not have any phase
shift with respect to each other
83
Capacitor connected to AC sources
• Consider simple circuit with capacitor and voltage source
• Then 𝑣𝑣𝐶𝐶 = 𝑣𝑣𝑚𝑚 cos(𝜔𝜔𝑡𝑡 + 𝜙𝜙)
𝑑𝑑𝑣𝑣𝐶𝐶 (𝑡𝑡)
• Current through the capacitor, 𝑖𝑖𝐶𝐶 = 𝐶𝐶 = −𝜔𝜔𝜔𝜔𝑣𝑣𝑚𝑚 sin 𝜔𝜔𝑡𝑡 + 𝜙𝜙
𝑑𝑑𝑑𝑑
• From the rules of trigonometry, cos(𝐴𝐴 − 𝐵𝐵) = cos 𝐴𝐴 cos 𝐵𝐵 + sin 𝐴𝐴 sin 𝐵𝐵 Such that
𝜋𝜋 𝜋𝜋 𝜋𝜋
cos 𝜔𝜔𝑡𝑡 + 𝜙𝜙 − = cos 𝜔𝜔𝑡𝑡 + 𝜙𝜙 cos + sin(𝜔𝜔𝑡𝑡 +𝜙𝜙) sin
2 2 2
𝜋𝜋 𝜋𝜋
• Note that cos = 0 and sin = 1 such that
2 2
𝜋𝜋
cos 𝜔𝜔𝑡𝑡 + 𝜙𝜙 − = sin(𝜔𝜔𝑡𝑡 +𝜙𝜙)
2
𝑑𝑑𝑣𝑣 (𝑡𝑡)
Hence 𝑖𝑖𝐶𝐶 = 𝐶𝐶 𝐶𝐶 = −𝜔𝜔𝜔𝜔𝑣𝑣𝑚𝑚 sin 𝜔𝜔𝑡𝑡 + 𝜙𝜙 = −𝜔𝜔𝜔𝜔𝑣𝑣𝑚𝑚 cos � 𝜔𝜔𝑡𝑡 + 𝜙𝜙 −
𝑑𝑑𝑑𝑑
𝜋𝜋 𝜋𝜋
2
� = 𝜔𝜔𝜔𝜔𝑣𝑣𝑚𝑚 cos 𝜔𝜔𝜔𝜔 + 𝜙𝜙 + 2
• Note:
𝜋𝜋
• There is a or 90𝑜𝑜 phase difference between the voltage and current. The current of the
2
capacitor leads its voltage by 90𝑜𝑜
• The amplitude of the capacitor current is 𝜔𝜔𝜔𝜔 times the amplitude of its voltage
84
Example
Capacitor with AC
150 4
The voltage 𝑣𝑣 𝑡𝑡 =
100 cos(314𝑡𝑡 + 15𝑜𝑜 ) V is applied
3
100
current.
50
1
𝑑𝑑𝑣𝑣𝐶𝐶 (𝑡𝑡)
Current (A)
Voltage (V)
0 0
𝑖𝑖𝐶𝐶 = 𝐶𝐶 0 2 4 6 8 10 12 14
𝑑𝑑𝑑𝑑 -1
= 100 -50
-2
86
Example
Chart Title
The voltage 𝑣𝑣 𝑡𝑡 = 12 cos(377𝑡𝑡 + 20𝑜𝑜 ) V is
applied to a 20-mH inductor. Find the 15 2
resultant current.
1.5
𝑑𝑑𝑖𝑖 (𝑡𝑡)
From 𝑣𝑣𝐿𝐿 𝑡𝑡 = 𝐿𝐿 𝐿𝐿 , then 𝑖𝑖𝐿𝐿 𝑡𝑡 = 10
1 𝑑𝑑𝑑𝑑 1
𝐿𝐿
∫ 𝑉𝑉𝐿𝐿 𝑡𝑡 𝑑𝑑𝑑𝑑 5
1 0.5
Voltage
𝐼𝐼𝐿𝐿 𝑡𝑡 = � 𝑉𝑉𝑙𝑙 cos(𝜔𝜔𝜔𝜔 + 𝜙𝜙)
Current
𝐿𝐿 0
0 5 10 15 20 25 30 35
0
𝑉𝑉𝑙𝑙 𝑉𝑉𝑙𝑙 𝜋𝜋 -5
-0.5
𝐼𝐼𝐿𝐿 𝑡𝑡 -15 -2
12 Time
= cos 377𝑡𝑡 + 20 − 90
377 × 20 × 10−3
= 1.59 cos 377𝑡𝑡 + 20 − 90 Voltage Current
87