Sub topic 8
Voltage Sources Connected to Ground
This chapter assumes you can write KCL equations in conductance form and assemble them as G v = i. It also assumes you can solve a small linear system with NumPy.
Why a grounded source helps
A voltage source forces a fixed voltage across its terminals. If one terminal is the reference node, the other terminal's node voltage equals the source value. That node is no longer an unknown.
The source current is also unknown, because it depends on the rest of the circuit. This is why you should not write KCL at the source node. The equation would contain an extra unknown, the source current, and it would tell you nothing new.
The procedure
- Pick the reference node so that as many voltage sources as possible touch it.
- Assign each grounded source node its known voltage.
- Write KCL only at the remaining unknown nodes.
- In each equation, move every term that contains a known voltage to the right side.
- Solve the smaller system.
Example 1: a voltage divider
A 10 V source connects node 1 to ground. R1 = 1 kΩ joins node 1 and node 2. R2 = 2 kΩ joins node 2 and ground.
Node 1 is fixed, so V1 = 10 V. Only node 2 needs an equation:
(g1 + g2) V2 − g1 V1 = 0
Here g1 = 1/1000 S and g2 = 1/2000 S.
V1 = 10.0
g1, g2 = 1/1000, 1/2000
# KCL at node 2: (g1 + g2) * V2 - g1 * V1 = 0
V2 = g1 * V1 / (g1 + g2)
print(V2) # 6.666...This matches the divider formula, 10 × 2/3 ≈ 6.667 V.
Example 2: two unknown nodes
A 12 V source connects node 1 to ground, so V1 = 12 V. The resistors are:
- R1 = 1 kΩ between nodes 1 and 2.
- R2 = 2 kΩ between node 2 and ground.
- R3 = 2 kΩ between nodes 2 and 3.
- R4 = 1 kΩ between node 3 and ground.
KCL at node 2 gives:
(g1 + g2 + g3) V2 − g3 V3 = g1 V1
KCL at node 3 gives:
−g3 V2 + (g3 + g4) V3 = 0
The term g1 V1 is a known quantity, so it acts like a current source of g1 V1 amps entering node 2. This is the same as a Norton equivalent, with the source resistor R1 in parallel.
import numpy as np
V1 = 12.0
g1, g2, g3, g4 = 1/1000, 1/2000, 1/2000, 1/1000
G = np.array([[g1 + g2 + g3, -g3],
[-g3, g3 + g4]])
i = np.array([g1 * V1, 0.0])
v = np.linalg.solve(G, i)
print(v) # [6.54545455 2.18181818]The solution is V2 = 72/11 ≈ 6.545 V and V3 = 24/11 ≈ 2.182 V.
Common errors
- Writing KCL at the fixed node. The source current is unknown, so this adds a variable without adding information.
- Keeping the known term on the left. A term such as −g1 V1 is a constant. It belongs on the right side as +g1 V1.
- Ignoring polarity. If the source's positive terminal faces ground, the node voltage is negative, for example V1 = −10 V.
- Forgetting that the source current can be recovered later. Once all node voltages are known, apply KCL at the fixed node to find it.
Exercise
A 6 V source connects node 1 to ground. R1 = 2 kΩ joins node 1 and node 2, and R2 = 1 kΩ joins node 2 and ground. Write the KCL equation at node 2 and find V2. How much current does the source supply?
Show answer
With g1 = 1/2000 S and g2 = 1/1000 S, KCL at node 2 is (g1 + g2) V2 = g1 × 6. This gives 0.0015 V2 = 0.003, so V2 = 2 V. The source current equals the current through R1: (6 − 2)/2000 = 2 mA.