Sheet 02 · Game · live
Circuits
Build circuits from real parts and watch them work: lamps glow, batteries run down, and parts burn out.
Play Circuits Play it on a computer All the games Read the whole physics note
What it needs
- For a computer with a keyboard and a mouse. Phones and tablets aren’t supported yet.
- The first visit downloads about 0.8 MB. After that, your browser keeps the files until the game is updated.
- Your circuit is kept in this browser only. To keep a copy or take it to another computer, use Save file or Copy share link in the File menu.
- It has sound: click the board to turn it on.
- Tested in Chrome and Firefox, on Linux. Windows and Safari should work: they aren’t fully tested yet.
How to play
You drag parts onto a board and wire them, and the circuit runs while you edit it. Point at a wire or a part to read its voltage and its current. Click a part and the Explain tab says what it is doing. To start, open one of the twenty examples from the Examples menu.
The twenty examples
- Battery, switch, lamp. Ohm’s law on a real bulb: its filament heats, its resistance rises 17-fold, the cold switch-on surges and the battery sags.
- Divider and its load. Why a meter changes what it reads: the same voltmeter reads the 1 MΩ divider 4.76% low and the 10 kΩ one 0.05% low.
- RC charge and discharge. τ = RC on the scope: 63% after one τ. Beside it, a current source fills a capacitor in a straight line until it reaches its voltage limit.
- RLC ringing, then the LC tank. Damping as the knob turns; with ideal parts the energy swings between the capacitor and the coil forever.
- RC filter on a sine. The −3 dB point, low-pass against high-pass, on the frequency graph.
- LEDs and their resistor. Each colour’s forward voltage, the resistor that sets the current, and an LED with no resistor that burns.
- 5 V power supply. AC to DC: a bridge rectifies, the electrolytic smooths, the Zener regulates.
- Transistor as a switch. A small base current runs a big lamp: 2.4 mA switches 100 mA.
- Two-transistor blinker. The classic flashing pair: two transistors take turns, each capacitor’s recharge setting the time.
- Common-emitter amplifier. A small signal made big (a gain of about −18.6), and clipping when the input is pushed.
- H-bridge and motor. A motor turned both ways by two switches, and four diodes that catch the coil’s kick.
- NAND from four MOSFETs. The same truth table as the chip beside it, and its analog switching point inside the chip’s thresholds.
- Op-amp amplifier and comparator. A gain set by two resistors (×11), then a Schmitt trigger that turns it into a square wave with two thresholds.
- Wien oscillator into a speaker. A pure tone you can hear, from a circuit that feeds back exactly a third of its output at one frequency.
- Gates and a 4-bit adder. Every basic gate with its switches and LEDs, then binary addition: the carry ripples through four full adders.
- Button counter on a 7-segment display. A bouncy button cleaned by an RC and a Schmitt input, then flip-flops counting 0 to 9 on a digit.
- Fluorescent tube, ballast and starter. Why a tube needs a high-voltage kick to light, and a ballast to hold its current once lit.
- Lamps in series and in parallel. Brightness and power, and why the textbook gets two unequal bulbs in series wrong.
- Calculator, one digit plus one digit. Thirteen push buttons, gates and flip-flops: key a digit, +, another, =, and the sum lights up on twenty-eight single LEDs, two to a segment.
- Storing energy: a flywheel and a battery. A supply spins a heavy flywheel and charges a battery; unplug it, and the flywheel keeps charging the battery.
Controls
| Action | Keys |
|---|---|
| Run or pause | Space |
| One step (paused) | . |
| Reset | Shift+R |
| Slower · faster | [ · ] |
| Rotate · flip | R · F |
| Delete | Del, Backspace |
| Undo · redo | Ctrl+Z · Ctrl+Shift+Z, Ctrl+Y |
| Cut · copy · paste · select all | Ctrl+X · Ctrl+C · Ctrl+V · Ctrl+A |
| Save file · open file | Ctrl+S · Ctrl+O |
| Text label · Explain · Where does the current go? | T · E · W |
| Open a block · close it, cancel | Enter · Esc |
| Move the selection (Shift: by 5) | ←↑↓→ · Shift+←↑↓→ |
| Zoom in · out · fit | + · - · 0 |
| Keyboard shortcuts | H |
The science in it
Two laws do most of the work. The currents entering any point of a circuit add up to zero, and the voltages around any loop add up to zero: these are Kirchhoff’s laws. The game writes them for the whole circuit and solves for every voltage at once, again at each step in time.
Some parts carry a physics of their own. A lamp’s filament heats up and its resistance rises with it. A battery gives less when you draw hard, and recovers at rest. Every part heats, and one held over its limit burns out.
Each of the twenty examples is held to a reference, a textbook formula or the ngspice simulator, within about 1 %.