How a Wire Turns a Compass Needle
Root Concept
An electric current produces a magnetic field in the space around it. Coiling the wire concentrates that field into the shape a bar magnet makes, and putting iron inside the coil multiplies it — giving magnetism that can be switched off.
CodePLU Goal
Upgrading Human Mental Models
Learn how to think in Workflows
Concept Development By codeplu.com
One cause at the top. The three branches are separate consequences of it, and none of them produces the others.
What Has Electricity Got to Do With a Compass?
For most of recorded history, nothing. Lodestones that attracted iron and amber that attracted dust after being rubbed were both known to the ancient Greeks, and for two thousand years they were filed as two unrelated curiosities. They did not look alike, they did not act on the same materials, and nobody had any reason to connect them.
In April 1820, in Copenhagen, Hans Christian Ørsted was giving a lecture demonstration about something else entirely and noticed that a compass needle lying near his apparatus twitched whenever he closed the circuit. He spent the next three months making sure it was real before publishing four pages that rearranged physics.
The result is easy to reproduce and still slightly startling. Run a wire north to south above a compass, connect a battery, and the needle swings aside. Disconnect, and it swings back. **The wire has no iron in it, it is not a magnet, and nothing has been brought near** — and yet a magnetic field has appeared around it.
That one observation is the hinge of this whole track. Electricity and magnetism are not two subjects that happen to be printed in the same book. They are two faces of one thing, and everything from a doorbell to a power station runs on the connection.
What the Field Round a Wire Looks Like
Which way does the needle point?
Not towards the wire and not away from it. Put a compass above a straight wire and the needle lines up across it; move the compass underneath the same wire and the needle swings to point the other way. Walk a compass all the way round and what you have mapped is a set of **circles going round the wire**, like the rings in a cross-section of a tree. This is genuinely unlike anything in the last three tutorials, where fields ran out of one pole and into another. A straight wire has no poles at all. The direction is given by the right-hand grip rule: point your right thumb along the current, and your curled fingers show which way round the field goes.
Why does coiling the wire help?
Because it puts many circles in the same place pointing the same way. Each loop of wire produces its own ring of field, and inside a loop all of that field is heading in one direction, straight through the middle. Stack a hundred loops into a cylinder and their contributions add, giving a strong, nearly uniform field down the inside and a pattern outside that is indistinguishable from a bar magnet — one end behaves as a north pole, the other as a south, and a compass cannot tell the difference. Doubling the number of turns roughly doubles the field, and so does doubling the current, which gives two independent dials to turn.
What does the iron core add?
It joins in. Slide an iron rod into the coil and the field jumps by a factor of hundreds, which is far too much to be explained by the iron getting in the way of anything. What is happening is the previous tutorial in action: the coil's field lines up the domains in the iron, and the aligned iron is now a strong magnet in its own right, sitting exactly where the coil's field already was. The two add together. The core is usually soft iron rather than steel, and the reason is precise — soft iron lets its domains fall out of line the moment the current stops, so the magnet genuinely switches off instead of staying weakly magnetised.
Why is switchable magnetism such a big deal?
Because it turns magnetism into something a circuit can command. A permanent magnet is always on, which makes it useless for anything that needs to let go. An electromagnet grips when current flows and releases when it stops, and the current can be controlled by a switch, a sensor or another circuit somewhere else entirely. That is the whole basis of the relay — a small safe current operating a big dangerous one — and of the doorbell, the electric lock, the loudspeaker and the hard disk. **Strength is adjustable too**, because turning the current up turns the magnet up, which no lump of magnetised steel will ever do. Every one of those machines needs magnetism that arrives and leaves on command.
Real World Example
Three Machines Built on One Sentence
None of these could be built from permanent magnets, and the reason is the same every time: they have to stop.
Machine 1
The scrapyard crane that drops what it lifts
A crane magnet is a huge coil around an iron core, and the operator controls it with nothing more complicated than a switch. Close the circuit and several tonnes of steel comes off the ground; open it and the load falls into the waiting truck. A permanent magnet strong enough to lift a car would be a disaster, because there would be no way of persuading the car to leave again short of levering it off. The sorting job from two tutorials ago and the switching job from this one are both needed, and only an electromagnet does both.
Machine 2
A doorbell that hammers by breaking itself
Press the button and current runs through a coil, which pulls an iron armature across to strike the chime. The clever part is what the armature does on the way: it breaks the very contact that was feeding the coil. With no current the coil releases, a spring pulls the armature back, the contact remakes and the whole thing fires again — several times a second, for as long as the button is held. It is a machine that works by repeatedly switching itself off, which only makes sense because the magnetism vanishes the instant the current does.
Machine 3
A loudspeaker turning current into air movement
Behind the paper cone of every speaker sits a coil of wire in the gap of a permanent magnet. The current from the amplifier is not steady — it rises and falls thousands of times a second, following the shape of the recorded sound — and the coil's field rises, falls and reverses with it, so the coil is pushed and pulled against the permanent magnet. The cone follows, the air follows the cone, and the waves tutorial takes over from there. The forces are tiny and the moving part weighs almost nothing, which is why it can keep up.
FAQs
Final Words
Electricity and magnetism were separate subjects until a compass needle twitched during a lecture. A current produces a magnetic field in the space around the wire, in circles that go round it rather than out from it, and the field appears and disappears exactly when the current does.
Coil the wire and those circles stack into the pattern of a bar magnet. Put soft iron inside and its domains align too, multiplying the field by hundreds. What comes out is magnetism with a switch and a volume control — which is why a crane can drop a car, a doorbell can hammer itself on and off, and a loudspeaker can follow music.
If a current can produce a magnetic field, a magnet ought to be able to push on a current. It can, and that is a motor. The next tutorial follows that thought, and finds that running the same machine backwards gives you a power station.
Continue This Track
This concept is part 4 of What a Magnetic Field Actually Is.
What a Compass Needle Is Actually Doing
A compass needle is itself a magnet, and it turns because the Earth is a magnet too. Follow that one fact to what a magnetic field really is in an interactive playground.
Why a Magnet Ignores a Copper Coin
A magnet attracts iron, nickel and cobalt and almost nothing else. Test the "magnets stick to metal" belief against a copper coin and an aluminium can in an interactive playground.
Why Cutting a Magnet in Half Gives You Two Magnets
Cut a magnet in half and you get two magnets, not a north piece and a south piece. Follow that failure down to atoms and domains in an interactive playground.
How a Wire Turns a Compass Needle
A current in a wire produces a magnetic field around it. Follow that single discovery to coils, electromagnets and the switchable magnetism of a scrapyard crane in an interactive playground.
Why a Motor and a Generator Are the Same Machine
A motor and a generator are one piece of hardware run in two directions. Explore the swap, and why a generator gets harder to turn the more power you draw, in an interactive playground.