Part 13 · Electricity
The Electromagnet
Wind insulated wire round a bar of soft iron, pass a current through it, and it becomes a magnet that you can switch on and off. How to build one, how to build a galvanometer to detect current, and how to build a relay — the parts from which telegraphs, motors and early computers were made.
- Difficulty
- ●●●●●
- Time
- An evening for a simple electromagnet; two or three days for a galvanometer and a relay
- Steps from zero
- 17 prerequisites →
The full path from nothing — 17 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Hunting and Trapping
- Basic Woodworking
- Charcoal
- Pottery
- Hides and Leather
- Fermentation
- Bellows
- Copper Smelting
- Iron (the Bloomery)
- Blacksmithing
- The Battery
- Copper Wire
- The Electromagnet
Do them roughly in this order. See it on the tech tree →
Why it matters
A permanent magnet is always on. An electromagnet is a magnet with a switch: on when current flows through its coil, off when it stops. That one trick is behind a whole family of machines:
- Switch it on and off from far away and it clicks out messages: the The Telegraph.
- Let it pull on a magnet that is free to turn, switching it at the right moments, and it spins: the The Electric Motor.
- Make it pull on a thin iron plate in step with a varying current and it speaks: the The Telephone.
- Let it close a second switch, and a weak current controls a strong one: the relay. Rows of relays were the first electrical computing machines (The Computer).
- Put a magnetised needle beside a coil, and the needle swings when even a tiny current flows: the galvanometer, your first instrument for measuring electricity.
An electromagnet is also the best way to make strong permanent Magnets from hardened steel, and to make a The Generator far more powerful than permanent magnets allow.
How it works
In 1820 the Danish professor Hans Christian Ørsted noticed that a compass needle near a wire swung sideways when current flowed through the wire. An electric current makes magnetism around it. The magnetism circles the wire like rings round a finger.
One straight wire is weak. Wind the wire into a coil and the rings from every turn add up inside it, so the coil behaves like a bar magnet, with a north end and a south end. Then:
- More turns = stronger. Twice the turns with the same current gives twice the magnetism.
- More current = stronger. The strength goes with turns × current (called ampere-turns). 200 turns carrying half an amp is as strong as 100 turns carrying one amp.
- An iron core makes it hundreds of times stronger. The coil lines up the domains in the iron (see Magnets), and the iron adds its own magnetism to the coil's. Only soft iron will do: it lines up instantly and lets go the moment the current stops. Steel stays magnetised and makes a magnet that will not let go.
- A closed loop of iron is stronger still. A U-shaped core with an iron bar (an armature) across its two ends gives the magnetism an all-iron path and holds many times more than a straight bar can.
Which end is north?
Look at one end of the coil. If the current flows round it anticlockwise, that end is a north pole; if clockwise, a south pole. Another way to remember: grip the coil with your right hand so your fingers curl the way the current flows round it; your thumb points to the north end.
"Current" here means the direction from the + end of the battery (the copper) round the outside circuit to the − end (the zinc). You can always check with a compass: the north-seeking end of the compass needle is pulled towards the coil's south pole.
Matching the coil to the battery
This is the insight of Joseph Henry, who built the strongest magnets of the 1830s, and it saves a great deal of wasted wire:
- A battery that gives a large current at a low voltage — one or two big cells with large plates — suits a few turns of thick wire: maybe 30–100 turns of 1.5–2 mm.
- A battery that gives little current at a higher voltage — a voltaic pile of many small cells, or a long The Telegraph line — suits many turns of thin wire: hundreds to thousands of turns of 0.3–0.5 mm.
The rule of thumb: the coil's resistance should be roughly equal to the battery's own internal resistance. Too thick and short a coil wastes the battery's push; too long and thin a coil chokes the current.
What you need
| Item | Size | Notes |
|---|---|---|
| Soft iron | Rod 1–1.5 cm thick, 30 cm long | Wrought iron from the Iron (the Bloomery) bloomery, annealed. Not steel |
| Insulated copper wire | 20–50 m of 0.6–1 mm; 50–100 m of 0.3–0.5 mm for the galvanometer | Copper Wire |
| Battery | 2–4 Daniell cells (2–4 V), or a cup battery | The Battery |
| Thin paper | A few sheets | Paper; or thin Hides and Leather, or birch bark |
| Shellac or wax | For varnishing finished coils | Copper Wire |
| Steel needles | For the galvanometer | Magnets, Steel |
| Wood | Bases, bobbin ends, frames | Basic Woodworking |
| Springy strip | Brass, bronze or steel strip, or a band of rawhide | Springs, Zinc and Brass |
Where to find it
Soft iron. Wrought iron from a bloomery (Iron (the Bloomery)) is nearly pure iron with threads of glassy slag in it, and it is soft. To make it as soft as possible, anneal it: heat it to bright red (about 900 °C) and bury it in dry wood ash or sand so that it cools slowly overnight. Test by touching it to a magnet and pulling the magnet away, then dipping the iron in iron filings: soft iron keeps almost none.
Avoid steel, cast iron and any iron that has been hardened by quenching. To check, file a corner: soft iron files easily and the file bites; steel that has been hardened makes the file skid.
Everything else comes from Copper Wire, The Battery, Magnets and Basic Woodworking.
Method 1: A straight electromagnet
- Cut the core: soft iron rod 1.2 cm thick and 10 cm long. File both ends flat and square.
- Make a bobbin: wrap the core in two layers of thin paper glued with flour paste or shellac, and slide on two wooden or leather end discs 4 cm across, 1 cm in from each end. These stop the coil slipping off.
- Wind the coil with 0.7–0.8 mm covered wire. Leave a 20 cm tail free at the start. Wind turn after turn, tight and side by side, all along to the far end disc. Count your turns (about 90 in a layer).
- Lay a strip of waxed or varnished paper over the finished layer, then wind the next layer back towards the start — keep turning the core in the same direction as before. Never reverse the winding direction partway: turns wound the other way cancel the first ones.
- Wind 3 layers, about 250–300 turns — about 16 m of wire. Leave a 20 cm tail at the end and tie it down with thread.
- Varnish the coil with shellac, or brush it with melted beeswax, to hold the turns in place.
- Connect the two tails to a battery of two Daniell cells (2.2 V). The coil's resistance is under one ohm, so it will draw about as much current as the cells can give — roughly half an amp.
The end of the core should now pick up a cluster of small nails or a dozen needles, and drop them when you disconnect.
Method 2: The horseshoe electromagnet
This is far stronger for the same wire and battery.
- Bend the core: a soft iron bar 1.5 cm thick and about 30 cm long, bent hot into a U with legs about 10 cm long and 5–6 cm apart. File the two end faces flat and level with each other. Anneal it after bending.
- Make the armature: a flat soft iron bar about 1.5 × 2 cm in section, long enough to cover both end faces. File its face flat so it sits on both poles with no rocking. Put a hook or an eye in the middle of the back.
- Wind a coil on each leg, as in Method 1, about 150–250 turns each. Direction matters. Imagine straightening the U into a straight bar: both coils must turn the same way round it. In practice: wind the first leg; then, continuing with the same wire, cross over the bend and wind the second leg so that, looking down on both pole faces from the open end, the current goes anticlockwise round one and clockwise round the other.
- Check with a compass before varnishing: connect the battery and bring a compass near each pole face. One face must attract the north end of the needle and the other must repel it. If both do the same thing, unwind and rewind one coil the other way.
- Connect the battery, set the armature across the poles, and hang weights from the hook. A U-magnet of this size on two to four Daniell cells should hold several kilograms. Switch off and the armature falls away.
Tip If the armature sticks after you switch off, the iron is not soft enough or the faces fit so perfectly that a little magnetism stays. Glue a single layer of thin paper on the pole faces. This tiny gap barely weakens the hold but cures the sticking.
Method 3: The galvanometer — a current detector
A galvanometer is the single most useful instrument in the electrical workshop. With it you can tell whether a current flows, which way, and roughly how strong — enough to test every cell, coil, joint and wire you make. It was invented within weeks of Ørsted's discovery.
Make the coil frame: a short rectangular wooden tube, open at two opposite sides, whose opening is about 8 cm long and 3 cm high, and which is about 5 cm deep. The needle will sit inside it, lying along the 8 cm length.
Wind two coils round the frame, so that each turn runs along the top, down one end, back along the bottom and up the other end. The turns then lie lengthways, parallel to the needle, above and below it. Spread each coil in two halves with a gap of about 1 cm in the middle of the top, so that you can see the needle through it:
- 10 turns of thick wire (1–1.5 mm) for large currents and low-voltage cells.
- 100–200 turns of thin covered wire (0.3–0.4 mm) for tiny currents.
Bring each coil's two ends to its own pair of terminals — copper wire wrapped round wooden pegs, or brass screws — on the base.
Make the needle: a strip of hardened steel 5 cm long, magnetised by stroking (Magnets). Punch a small dent in its middle on the underside, or fix a tiny cap of brass there.
Pivot: fix a sharp steel point (a needle, point up) upright in the base so that it stands in the middle of the frame. Balance the needle on it. If it tips, file a little off the heavy end. For more sensitivity, hang the needle from a single silk fibre instead, inside a glass jar to keep the air still.
Add a pointer and scale: glue a long, light straw or thin wood splinter across the needle as a pointer, at right angles to it or along it, and put a card marked in degrees under the pointer, with 0° where the needle rests.
Use it: turn the whole instrument until the needle lies exactly along the turns of the coil (the coil runs north–south). Connect a cell to the terminals. The needle swings to one side; reverse the cell and it swings the other way.
The thin coil should give a clear swing from a single zinc–copper cell in brine, or even from a strip of zinc and a strip of copper pushed into a lemon. The thick coil should barely move for that cell, but swing well for a big cup battery.
Making it measure
- Compare, don't guess. Always use the same coil and the same setting. A bigger swing means a bigger current. Write down the swing for one good Daniell cell; that is your standard.
- The tangent galvanometer. For true comparisons, wind a few turns (5–10) of thick wire round a large wooden ring 25–30 cm across, set upright so that the ring itself lies along the north–south line, with a short needle (under 3 cm) at its exact centre. The current is then proportional to the tangent of the angle the needle swings: 45° means twice the current of 26.6°, and 63.4° means twice the current of 45° (tangent of 26.6° = 0.5, of 45° = 1, of 63.4° = 2; see Arithmetic and Fractions).
- The astatic needle. Fix two equal magnetised needles to one straw, one above the other, pointing opposite ways, with the lower one inside the coil and the upper one above it. The Earth's pull on them cancels, so even a tiny current swings them. This makes the galvanometer ten or more times more sensitive, though it no longer points north on its own.
Method 4: The relay
A relay is an electromagnet that works a switch. A weak current — from a long The Telegraph line, or a small cell — moves a light lever that closes a strong local circuit.
- Electromagnet: a small horseshoe or a straight core about 6 cm long with 300–1,000 turns of 0.3–0.5 mm wire. For long lines, use more turns of thinner wire.
- Lever: a strip of wood or brass about 10 cm long, pivoted on a pin through a small bracket, with a flat piece of soft iron (the armature) fixed under it just above the magnet's pole.
- Spring: a light spring, strip of springy brass, or rubber band pulls the lever up, away from the magnet.
- Contacts: at the other end of the lever, a copper (or better, silver) contact that touches a fixed contact when the lever tips. Make the fixed contact adjustable — a screw, or a bent copper strip you can bend — so you can set the gap.
- Adjust: set the armature about 0.5–1 mm from the pole (closer = more sensitive), and the spring just strong enough to lift the lever when the current stops. Too strong a spring and the magnet cannot pull; too weak and the lever sticks.
- Wire it: the coil's two ends go to the weak circuit (the line or the small cell). The pivot and the fixed contact go into the strong circuit (a big battery and whatever it drives — a sounder, a bell, a bigger magnet).
Make it buzz. Wire the relay so that its own coil current passes through its contacts, arranged to open when the armature is pulled down. Then it pulls, breaks its own current, falls back, reconnects, pulls again — many times a second. Add a hammer on the lever and a bell, and you have an electric bell or buzzer (Electric Bells, Buzzers and Alarms).
How to tell it worked
- Lift test. A straight electromagnet picks up a cluster of small nails; a horseshoe with armature holds kilograms. Count nails or weigh the load, and compare as you change turns or cells.
- Release test. Everything drops when the current stops. If not, see the tip above.
- Compass test. Each end turns a compass needle; reversing the battery reverses which end of the needle is pulled.
- Galvanometer test. A good galvanometer swings clearly for one cell and swings the opposite way when the cell is reversed.
- Relay test. The relay clicks crisply on and off as you connect and disconnect the weak circuit, and the strong circuit follows it every time.
Note Troubleshooting. Coil gets hot but the magnet is weak → too few turns of thick wire on a strong battery, or turns shorting together through damaged covering. Use more turns, or thinner wire. Coil stays cold and the magnet is weak → a break, a bad joint, or far too many turns of thin wire for your battery. Test with the galvanometer. Horseshoe magnet is weak at both ends → the two coils are wound against each other. Check with a compass and rewind one. Galvanometer needle sticks or drifts → the pivot is blunt or the needle is touching the frame. Sharpen the point and level the base. Galvanometer needle swings the wrong way → nothing is wrong; it just shows the current goes the other way. Mark your terminals + and −.
Dangers
Warning The kick when you switch off. A coil with many turns on an iron core stores energy. When you break the circuit, it releases it as a brief high voltage — hundreds of volts from a few-volt battery — which gives a sharp shock if your fingers are across the break, and makes a spark that can ignite hydrogen from acid cells. Hold the wires by their insulated parts when disconnecting large coils, and keep the break away from the battery. (This same "kick", turned to use, is how the spark coil of The Induction Coil works.)
- Heat and short circuits. A big battery on a short, thick coil can heat the wire until the wax runs and the covering chars. Feel the coil after a minute; if it is too hot to hold, disconnect.
- Pinched fingers. A strong horseshoe magnet snaps its armature on hard. Keep fingers out from between armature and pole faces.
- Battery hazards — acid, hydrogen, copper sulfate — are covered in The Battery.
What this unlocks
- The The Telegraph: a key, a line, and an electromagnet at the far end.
- The The Electric Motor: electromagnets switched on and off at the right moments to keep something turning.
- The The Generator: electromagnets instead of permanent magnets make a self-exciting dynamo.
- The The Telephone: a tiny electromagnet that moves a thin iron diaphragm.
- Strong permanent Magnets from hardened steel.
- Relays that act as switches controlled by other switches — the logic of the first The Computers (see The Relay Computer).
- Calibrated ammeters and voltmeters, which grow out of the galvanometer: see Measuring Electricity.
How it was first done
Ørsted announced his discovery in July 1820 in a short Latin paper sent to scientists across Europe. Within weeks André-Marie Ampère in Paris had worked out the rules linking current and magnetism, François Arago had magnetised steel needles by placing them inside a coil carrying current, and Johann Schweigger in Germany had built the first galvanometer by winding many turns round a compass — his "multiplier". In 1825 the English shoemaker-turned-lecturer William Sturgeon wound 18 turns of bare copper wire round a varnished horseshoe of soft iron weighing about 200 g; powered by a single cell, it lifted about 4 kg.
In Albany, New York, the schoolteacher Joseph Henry wound wire insulated with silk thread in many layers, showed how to match coils to batteries, and by 1831 built a magnet for Yale College that lifted more than 900 kg. In the same year he rang a bell at the end of a mile of wire with an electromagnet — the principle of the telegraph. Henry also developed the relay in the 1830s; Edward Davy in England patented a telegraph relay in 1838. Relays went on to run telegraph networks, telephone exchanges, and, in the 1930s and 1940s, the first electrical computers.
Source: content/entries/electricity/electromagnet.md