applets.

Electronics

← All apps

About Electronics

An electronics bench with a real circuit solver underneath. Every reading on the meter and every trace on the oscilloscope is worked out from the circuit as it stands, the same way circuit simulators used by engineers do it, so you can try things nobody planned for and see what really happens, including the snags: a lamp that draws a surge at switch-on, a battery whose voltage sags under load, an LED that pops without its resistor, a meter that blows its fuse when it is put across a supply.

OHM'S LAW: a bench power supply, a link to put the meter in, and a socket for a resistor, a lamp or an LED. Turn the voltage up and each reading is plotted: the resistor gives a straight line, the lamp bends over as its filament heats, the LED does almost nothing and then shoots up. SERIES & PARALLEL: torch bulbs on a battery pack, and a voltage divider. CHARGING: a capacitor charging through a resistor (watch it reach 63% in one time constant), an LED that fades out as a capacitor empties, and a resistor and capacitor as a filter. AC & DC: a sealed mains adaptor giving 12 V AC, turned into steady DC by a diode or a bridge of four, a smoothing capacitor and a regulator. PHASE: a signal generator on a resistor, a capacitor, an inductor or a mixture, with voltage and current on the two channels of the oscilloscope and the phasors turning beside them, plus three-phase mains. BUILD: a breadboard to make your own circuits, with challenges that are checked by the solver. Drag a part from the tray onto the board (or clicktap it, then a hole); clicktap one hole and then another to run a wire; R turns the chosen part and Delete removes it. Each numbered column of five holes is joined inside the board, and the long rails run its whole length.

The instruments. Press a probe button (RED, BLACK, CH1, CH2), then clicktap a test socket (TP) or a hole to put it there. Volts are measured across a part. Amps must go in series, so the current flows through the meter: on the experiment boards, put the meter on A and clicktap a link (LK) and the meter takes the link's place. Put a meter on amps straight across a supply and it is close to a short circuit: this simulated meter's fuse blows. A real one may or may not (a current-limited bench supply may hold the current below the fuse's rating), and a meter without the right fuse can fail dangerously, so never do it with a real meter. Ohms only make sense with the circuit unpowered and any capacitors discharged: the meter sends its own small current through the part and measures the voltage it makes. Measured in the circuit, anything else connected across the part gives the current another path and changes the reading. The oscilloscope draws voltage against time, two channels at once, measured from the 0 V rail; a channel put on a link is a current clamp and draws current instead. AUTO shows the circuit after it has settled; SINGLE catches what happens straight after the next switch is flipped, like a storage scope.

CURRENT at the top switches between conventional current (arrows from + to −) and electron flow (dots drifting from − to +).

THE STORY

Benjamin Franklin, experimenting in the 1740s, described electricity as a single fluid: a body with more than its normal share was "plus" or positive, one with less was "minus" or negative. Those names stuck. Conventional current is the direction a positive charge would move, a convention settled long before anyone knew what actually moves in a wire: out of the + terminal of a battery or supply that is delivering power, round the circuit, and back into its − terminal.

Alessandro Volta described his pile of zinc and copper (or silver) discs separated by brine-soaked card in 1800: the first battery, and the first steady current. Georg Simon Ohm published his law, that the current through a wire is proportional to the voltage across it, in 1827; it was coolly received at first. Gustav Kirchhoff, still a student, set out his two circuit laws in 1845: the currents into any junction add up to zero, and the voltages round any loop add up to zero. Every solver for circuits, this page's included, rests on them.

In 1897 J. J. Thomson showed that cathode rays are made of tiny negatively charged particles, later called electrons. In a metal wire it is electrons that move, so they actually drift from − to +, the opposite way to Franklin's arrows. Nothing had to change: a positive charge moving one way and a negative charge moving the other carry current in the same direction, and in some places positive charges really do move: in a battery's electrolyte the current is carried by ions, positive ones among them, and in a semiconductor partly by "holes" (places missing an electron), which behave like positive charges.

In the 1880s Thomas Edison's companies supplied direct current (DC) at low voltage, which could only be sent a mile or two before too much was lost in the wires. George Westinghouse, using transformers and Nikola Tesla's alternating current (AC) motor patents, backed AC, whose voltage a transformer can raise for sending a long way and lower again for use. The bitter rivalry of the late 1880s and early 1890s is called the war of the currents; AC won for power networks. In Britain the Electricity (Supply) Act 1926 set up the Central Electricity Board to build a national grid, running at 132,000 volts and 50 Hz; it was built between about 1927 and 1933 as linked regional grids, and was run as one system from the late 1930s. British homes were supplied at 240 V; since 1995, as part of European harmonisation, the declared voltage has been 230 V with limits of +10% and −6% (216 V to 253 V), so most homes noticed no change.

HOW IT WORKS

The solver uses modified nodal analysis: one unknown voltage for each junction, and for each one an equation saying the currents in and out add up to zero (Kirchhoff's first law), solved together as a matrix. Diodes and LEDs follow the Shockley equation, I = Is(eV/nVT − 1), which is curved, so the solver guesses, replaces each curve by its tangent at the guess, solves, and repeats until the guess stops changing (Newton's method), limiting each step so the exponential can't run away (a trick from the SPICE simulator). Capacitors and inductors are stepped through time with the trapezoidal rule. A lamp's tungsten filament has a resistance that rises about as the 1.2 power of its temperature: cold, it is about one fourteenth of its working value, so it draws a surge of current for the first few hundredths of a second. Batteries have an internal resistance (about 0.15 Ω for each AA cell, about 1.7 Ω for a 9 V battery when new), the bench supply limits its current, the meter's fuse heats with the square of the current. Parts have limits, with failure rules that are illustrative rather than from a data sheet: an LED is rated 20 mA, takes damage above about 25 mA (faster the higher the current) and is killed by more than about 5 V in reverse; the 5.1 V Zener overheats above 0.5 W; a 1N4001 overheats if held well over its rating; the 5 V regulator limits its output to about 1.5 A and switches itself off when its chip passes about 150 °C (without a heat sink, about 65 °C hotter for every watt it wastes); an electrolytic capacitor held more than about 1 V the wrong way round fails. Here failed parts go open circuit; real LEDs and capacitors can also fail short, or just grow dim or weak. If the solver can't settle a circuit, the page says so instead of showing readings.

The numbers to know. Ohm's law: V = I × R. A capacitor charging through R covers 1 − 1/e, about 63%, of the way from where it started to its final voltage in one time constant RC, and nearly all of it after five. An inductor's current rises the same way with time constant L/R. A sine wave's peak is √2 (about 1.41) times its RMS value, so 230 V mains peaks at about 325 V and a 12 V AC supply at about 17 V. A silicon rectifier diode drops about 0.7 V to 1 V at its working current; a bridge passes the current through two. The ripple on a smoothing capacitor is about I ÷ (f × C), with I the total current drawn from it and f the number of top-ups each second (50 for a single diode on 50 Hz, 100 for a bridge); it is an approximation that holds while the ripple is small. With a steady sine wave and ideal parts, a capacitor's current runs a quarter of a cycle (90°) ahead of its voltage and an inductor's 90° behind; a real coil's own resistance makes it a little less. Three-phase mains has three 230 V supplies 120° apart, so the voltage between two of them is 230 × √3, about 400 V.

Electrons are slow. The drift speed depends on the wire's cross-section: in a copper wire of 1 mm² carrying an ampere the electrons drift at well under a millimetre a second (about 0.07 mm/s); on AC they only rock to and fro. The push that moves them travels along the wire at a large fraction of the speed of light: the lamp lights at once because the wire is already full of electrons. The dots on this page are speeded up a great deal; the note under the board gives an estimate of the real speed for a 0.5 mm² wire.

WHAT IT LEAVES OUT

The buzzer shows its sound as rings; the page makes no noise. Mains is only ever shown inside a sealed box: nothing on this bench above 12 V AC can be wired, and you should never open or wire mains yourself. Parts are ideal apart from the snags listed: wires and breadboard strips have no resistance, capacitors don't leak and have no voltage rating here (real ones do, often 16 V or 25 V, and an electrolytic can hold a charge after the power is off, so discharge big ones before handling), ordinary diodes and LEDs don't break down in reverse other than the LED's failure rule, the LED and lamp numbers are typical rather than from one data sheet, the inductor is a plain coil without a core that saturates, and the 5 V regulator is a simple model of the usual three-legged kind (about 2 V of headroom), the fuse and part failures follow simple heating rules, and capacitors on the experiment boards that see AC are non-polar film types. The oscilloscope's ground is the 0 V rail and is never connected to earth here. On a real mains-powered scope the ground clip is connected to mains earth, so clipping it onto circuitry that is tied to the mains makes a dangerous short circuit; never defeat a scope's earth to get round this. Do real experiments only from an isolated low-voltage supply, such as a sealed 12 V AC adaptor or a battery. The meter reads true RMS. The current-direction dots move far faster than real electrons.

A switch-mode power supply, which is what most modern chargers are, works quite differently from the transformer and rectifier on AC & DC: it switches the rectified mains on and off tens of thousands of times a second or more, so it can use a much smaller transformer. The digital partner of this bench is Logic Gates.

Nothing you build is sent anywhere. COPY LINK puts the bench in the address so you can share it.

FURTHER WATCHING AND READING

Current

BENCH SUPPLY 0–12 V

SIGNAL GENERATOR

MULTIMETER

OFF
FUSE OK

OSCILLOSCOPE

TIME