Circuits, Ohm's Law, and Kirchhoff's Rules โ The Complete Physics Guide
Circuit Builder uses real nodal analysis โ the same mathematical technique used by professional SPICE circuit simulators โ to calculate the voltage at every node in a circuit you design. Every wire, resistor, battery, and switch you place feeds into a genuine system of linear equations, solved live as you build. This game is designed to build the same intuition an electrical engineering student develops in their first circuits course: how voltage, current, and resistance relate, and how to systematically analyse any network no matter how complex.
Ohm's Law โ The Foundational Relationship
For an ohmic resistor at constant temperature, voltage and current are directly proportional: V = IR, where V is voltage in volts, I is current in amperes, and R is resistance in ohms (ฮฉ). Double the voltage across a resistor and the current through it doubles. Double the resistance and the current halves for the same voltage. This simple linear relationship, discovered by Georg Ohm in 1827, is the single most-used equation in all of electronics.
Power dissipated by a resistor follows directly: P = IV = IยฒR = Vยฒ/R. All three forms are equivalent โ use whichever two quantities you already know. A 100 ฮฉ resistor carrying 0.5 A dissipates P = IยฒR = 0.25 ร 100 = 25 W as heat. This is why resistors have power ratings: exceed them and the resistor overheats, potentially failing or catching fire.
Not every component obeys Ohm's law. Diodes, transistors, and light bulbs (whose resistance changes with temperature) are "non-ohmic" โ their V-I relationship is curved, not a straight line through the origin. Circuit Builder's puzzles use ideal ohmic resistors, batteries, and switches specifically so the underlying linear algebra of nodal analysis stays exact and solvable.
Series and Parallel Circuits
When resistors are connected in series โ end to end, forming a single path โ the same current flows through every one of them, and their resistances simply add: R_total = Rโ + Rโ + Rโ + โฆ The total voltage supplied divides across the resistors in proportion to their resistance (a "voltage divider"), with the largest resistor dropping the most voltage.
When resistors are connected in parallel โ side by side, offering multiple paths for current โ they all share the same voltage, but the current splits between them according to each resistor's conductance. The combined resistance is always less than the smallest individual resistor: 1/R_total = 1/Rโ + 1/Rโ + โฆ For just two resistors, this simplifies to the product-over-sum rule: R_total = (RโRโ)/(Rโ+Rโ).
Most real circuits are neither purely series nor purely parallel โ they're a combination, and untangling them by hand means repeatedly simplifying series and parallel sub-groups until only one equivalent resistance remains. Nodal analysis, the method this game uses, sidesteps that simplification entirely by writing one current-balance equation per node and solving the whole system directly โ which is exactly why it's the standard technique in professional circuit design software.
Kirchhoff's Laws โ The Rules Behind Nodal Analysis
Gustav Kirchhoff formulated two laws in 1845 that, together with Ohm's law, make it possible to solve any circuit no matter how complicated. Kirchhoff's Current Law (KCL) states that the sum of currents entering any node equals the sum of currents leaving it โ current can't accumulate or vanish at a junction, because that would mean charge is being created or destroyed. Kirchhoff's Voltage Law (KVL) states that the sum of voltage changes around any closed loop is zero โ a statement of energy conservation, since a charge that returns to its starting point has done zero net work.
Nodal analysis applies KCL systematically: pick a reference node (ground, defined as 0 V), then write one KCL equation for every other node, expressing each branch current in terms of node voltages via Ohm's law (I = ฮV/R). The result is a system of linear equations โ one per unknown node voltage โ that can be solved simultaneously. This is exactly the live calculation Circuit Builder performs every time you place or remove a component.
For small circuits, this system can be solved by substitution or elimination by hand. For circuits with dozens or hundreds of nodes โ a real printed circuit board โ engineers use matrix methods (Gaussian elimination or LU decomposition) implemented in software like SPICE, LTspice, or PSpice. The mathematics is identical; only the scale changes.
Internal Resistance and Real Batteries
An ideal battery maintains a fixed EMF (electromotive force) regardless of the current drawn from it. Real batteries fall short of this because of internal resistance r โ the resistance of the electrolyte and electrode materials inside the cell itself. The voltage actually available at the battery's terminals is V_terminal = EMF โ Ir: the more current you draw, the more voltage is lost internally, and the less is left over for the external circuit.
A concrete example: a 9 V battery with internal resistance r = 2 ฮฉ delivering 1 A to a circuit has a terminal voltage of only 9 โ (1 ร 2) = 7 V โ a 22% loss before the current even reaches the load. Draw more current and the loss grows quadratically in wasted power (P_internal = Iยฒr), which is why batteries get warm under heavy load.
In the extreme case of a short circuit (R_load โ 0), the only resistance limiting current is the internal resistance itself: I_short = EMF/r. For a fresh AA battery with r โ 0.15 ฮฉ, that's a short-circuit current of roughly 10 A โ enough to rapidly overheat the battery and any wire connecting the terminals. This is exactly why car batteries, with their very low internal resistance, can deliver hundreds of amps to a starter motor, and why short-circuiting one is genuinely dangerous.
Worked Example โ A Two-Resistor Nodal Solve
Problem: A 12 V battery connects to two resistors, Rโ = 4 ฮฉ and Rโ = 8 ฮฉ, in series. Find the current and the voltage across each resistor.
Total resistance: R_total = Rโ + Rโ = 4 + 8 = 12 ฮฉ
Current (Ohm's law on the whole loop): I = V/R_total = 12/12 = 1 A
Voltage across Rโ: Vโ = IRโ = 1 ร 4 = 4 V
Voltage across Rโ: Vโ = IRโ = 1 ร 8 = 8 V โ check: Vโ + Vโ = 4 + 8 = 12 V = supply voltage โ (KVL satisfied)
Real-World Applications
Household wiring: Domestic electrical circuits are wired in parallel specifically so that every appliance sees the same 120 V or 230 V supply voltage, and so that one appliance failing (or being switched off) doesn't cut power to the rest of the circuit โ exactly the property that a series wiring scheme would lack.
Fuses and circuit breakers: These protective devices are placed in series with a circuit precisely so that all current must pass through them โ if the current exceeds a safe threshold, the fuse melts (or the breaker trips), opening the circuit and protecting the wiring behind it from overheating and fire.
PCB design: Every printed circuit board in every phone, laptop, and appliance is designed using nodal-analysis software that solves exactly the equations this game teaches โ just scaled up to thousands of components and solved by computer instead of by hand.
Sensor interfacing: Thermistors, photoresistors, and strain gauges all work by changing their resistance in response to a physical quantity (temperature, light, or strain). None of them output a voltage directly โ they're built into a voltage divider or a more complex resistive network, and it's the resulting node voltage, calculated by exactly the same nodal-analysis method used in this game, that a microcontroller actually reads.
Voltage Dividers โ A Practical Application
A voltage divider is simply two resistors in series, with the output taken from the junction between them. If a supply voltage V_in is applied across Rโ and Rโ in series, the voltage at the midpoint is V_out = V_in ร Rโ/(Rโ+Rโ). This one formula is everywhere in electronics: it's how a potentiometer (a volume knob) produces a variable voltage, how a sensor's raw resistance is converted into a readable voltage signal, and how microcontrollers step down a battery voltage to a safe measurement range.
The catch is that a voltage divider only holds its calculated output cleanly when almost no current is drawn from the midpoint โ the moment you connect a load with a comparable resistance, it forms a parallel combination with Rโ and pulls the output voltage down. This is exactly the kind of subtlety nodal analysis handles automatically and correctly, which is why professional circuit designers always solve the full node equations rather than relying on the simple divider formula once a real load is involved.