Part I: Circuit Fundamentals | Chapter 1

Ohm's & Kirchhoff's Laws

The governing equations of all resistive circuits: linear relationships, conservation of charge and energy.

Ohm's Law

Ohm's Law states that the voltage across a resistor is proportional to the current flowing through it. For a resistor with resistance \( R \) (in ohms, Ω):

\[ V = IR \]

\( V \) in volts, \( I \) in amperes, \( R \) in ohms (Ω)

The electrical power dissipated as heat in a resistor is:

\[ P = IV = I^2 R = \frac{V^2}{R} \]

Series and Parallel Resistors

Resistors in series (same current through each) combine as:

\[ R_{\text{series}} = R_1 + R_2 + \cdots + R_n \]

Resistors in parallel (same voltage across each) combine as:

\[ \frac{1}{R_{\text{parallel}}} = \frac{1}{R_1} + \frac{1}{R_2} + \cdots + \frac{1}{R_n} \]

For the special case of two resistors in parallel: \( R_{\text{parallel}} = \dfrac{R_1 R_2}{R_1 + R_2} \).

Voltage Divider

Two series resistors \( R_1 \) and \( R_2 \) driven by \( V_s \) produce an output at the midpoint:

\[ V_{\text{out}} = V_s \cdot \frac{R_2}{R_1 + R_2} \]
R1R2+VsV_mid

Kirchhoff's Laws

Kirchhoff's laws are direct consequences of conservation of energy (KVL) and conservation of charge (KCL). Together they provide a complete framework for writing circuit equations.

Kirchhoff's Voltage Law (KVL)

The algebraic sum of all voltages around any closed loop is zero:

\[ \sum_{\text{loop}} V_k = 0 \]

Equivalently: the sum of voltage rises equals the sum of voltage drops in any closed loop.

Kirchhoff's Current Law (KCL)

The algebraic sum of all currents entering any node is zero:

\[ \sum_{\text{node}} I_k = 0 \]

Equivalently: the total current entering a node equals the total current leaving it.

Node-Voltage Method

The node-voltage method is the most systematic approach to circuit analysis. Steps:

  1. Choose one node as the reference (ground), assign \( V_0 = 0 \).
  2. Assign unknown voltages \( V_1, V_2, \ldots, V_n \) to remaining nodes.
  3. Apply KCL at each unknown node: sum of currents leaving = 0.
  4. Express each branch current using Ohm's Law: \( I = (V_i - V_j)/R \).
  5. Solve the resulting linear system \( \mathbf{Y}\mathbf{V} = \mathbf{I}_s \).

Mesh Analysis

Mesh analysis assigns a mesh current \( I_m \) to each independent loop and writes KVL for each mesh. For a mesh with resistors \( R_{11} \) (self) and shared \( R_{12} \) (mutual):

\[ R_{11} I_1 - R_{12} I_2 = V_{s1} \]

The result is the mesh resistance matrix equation \( \mathbf{R}\mathbf{I} = \mathbf{V}_s \), dual to the node admittance system.

Python: Resistor Network Analysis

Solve a multi-node resistive network using the node-voltage method (NumPy linear algebra), plot V-I curves for several resistor values, and visualise the voltage divider output as a function of \( R_{\text{top}} \).

Node-Voltage Method, V-I Curves & Voltage Divider

Python
resistor_network.py117 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server