Skip to content
LumenaryAcademy
Start 45 min

Magnets, motors and generators

How a current makes a magnet, how a magnet makes a current, and how those two discoveries turn every motor and light every city.

Code tested · 1AI-draftedAwaiting review by an electrical engineer

Your guides: Chloe · The Physicist, Margaret · The Bench Engineer, Gideon · The Design Reviewer

MotivationH

The hidden spinning machines

Count the motors in your home. There is one in a fan, one in the fridge, one in a washing machine, one in a hair dryer, one that makes a phone vibrate, and several in a computer. An electric scooter, a lift, a metro train in Delhi or Santiago, a drone: all are moved by electric motors.

Now think about where electricity comes from. Almost all of it, whether from a coal power station in Poland, a dam in Brazil or a wind farm off the coast of Denmark, is made by a generator: a machine that spins magnets past coils of wire.

Motors and generators look like the same machine, and in a sense they are. Both rest on a discovery that astonished the scientists of the 1820s: electricity and magnetism are not two separate things, but two sides of one thing. This lesson tells that story.

IntuitionH

Magnets and fields

A magnet has two ends, called its north pole and south pole. The rule for poles looks just like the rule for charges: like poles repel, unlike poles attract. A north pole pushes away another north pole and pulls a south pole.

But poles differ from charges in one important way. You can have a positive charge on its own, but you can never get a north pole on its own. Cut a bar magnet in half and you get two smaller magnets, each with its own north and south pole.

Magnets attract only a few materials strongly: iron and steel, nickel and cobalt, and alloys containing them. A magnet ignores paper, plastic, wood, and also many metals, such as aluminium, copper, gold and silver.

Definition— magnetic field

The magnetic field is the region around a magnet where it pushes or pulls on other magnets and on iron. We draw it with field lines, which leave the north pole, curve round, and enter the south pole. Where the lines are crowded together the field is strong; where they spread out it is weak. Field strength is measured in teslas (T).

NS
The magnetic field of a bar magnet. Field lines leave the north pole, loop round outside the magnet and enter the south pole. They are crowded near the poles, where the field is strongest. Sprinkle iron filings on paper over a magnet and they line up along these curves.

The Earth itself is a giant, weak magnet. A compass is a tiny magnet balanced so that it can turn freely, and the Earth's field turns it to point roughly north–south. Chinese scholars understood this early: in 1088 the scientist Shen Kuo described a magnetised needle used to find directions, and even noticed that it does not point exactly to true north. Compasses later guided sailors across the Indian Ocean, the Mediterranean and the Atlantic.

A few safety notes about magnets. Small, strong magnets (the shiny neodymium kind) can snap together hard enough to pinch skin, and if a young child swallows two of them they can attract each other through the walls of the intestines, which needs emergency treatment, so keep them away from small children. Keep strong magnets away from bank cards and from anyone with a pacemaker, too.

History & global context

Ørsted's surprise: currents make magnets

In 1820, in Copenhagen, the Danish physicist Hans Christian Ørsted noticed something nobody expected: when he switched on a current in a wire, a compass needle lying nearby swung round. When he switched it off, the needle swung back.

A current makes a magnetic field. The field lines go round the wire in circles, like rings on a finger, and if you reverse the current, the field reverses too. Within weeks the news had spread across Europe, and in Paris André-Marie Ampère, whom you met in What is electricity?, began the experiments that made electromagnetism a mathematical science.

Electromagnets

Wind a wire into a coil, and the circular fields of all the turns add together into one field shaped just like a bar magnet's, with a north pole at one end and a south pole at the other. Put a piece of iron inside the coil and the field becomes far stronger.

Definition— electromagnet

An electromagnet is a coil of wire, usually wound round an iron core, that becomes a magnet when a current flows through it. It is stronger with more turns, more current and an iron core, and its magnetism disappears when the current is switched off.

Being able to switch a magnet on and off is enormously useful. Electromagnets lift scrap cars in recycling yards and drop them where they are wanted, hold fire doors open until an alarm sounds, and click the switches called relays. The Shanghai Maglev train is lifted and pushed along by electromagnets, and hospital MRI scanners use huge electromagnets, cooled until their wires conduct with no resistance at all, to make fields of 1.5 to 3 teslas, tens of thousands of times stronger than the Earth's.

Note

Many classrooms make an electromagnet by winding thin insulated wire round an iron nail and connecting it to a battery; if you try it, do it with an adult. The coil has very little resistance, so it is almost a short circuit: use a single AA cell, connect it for only a few seconds at a time, and stop if the wire or battery gets warm. Never use a rechargeable lithium battery, a power bank or a car battery for this; they can drive dangerously large currents. A simulator, such as the PhET labs in this lesson's further reading, lets you explore without any risk.

Worked examplesH

How a motor turns

A current in a magnetic field is pushed sideways. That push, called the motor effect, is how a motor turns electricity into motion.

Picture a rectangular coil of wire on an axle, sitting between the north pole of one magnet and the south pole of another. Current flows along one side of the coil and back along the other, so the two sides carry current in opposite directions, and they are pushed in opposite directions: one side up, the other down. Together the two pushes turn the coil, like two hands turning a steering wheel.

NSpushpushlooking along the axlecoilsplit ringbrushbattery
A simple DC motor. Left: looking along the axle, the coil's two sides carry current in opposite directions (a dot means out of the page, a cross means into it), so the magnet's field pushes one side up and the other down, and the coil turns. Right: the coil's ends are joined to a split ring (the commutator), which brushes connect to the battery. Every half-turn, the split ring swaps the connections and reverses the current in the coil, so the push keeps turning it the same way.

There is a catch. Once the coil has turned half-way, the side that was being pushed up is now on the other side, and if the current kept flowing the same way, the pushes would turn the coil back. It would just rock to and fro and stop.

The clever fix is the commutator: a ring split into two halves, fixed to the axle, with the two ends of the coil joined one to each half. Two springy contacts called brushes press against the ring and connect it to the battery. Every half-turn, each brush slides from one half of the ring onto the other, which reverses the current in the coil just in time, so the push always turns the coil the same way.

A motor turns faster and more strongly with more current, more turns of wire on the coil and stronger magnets. Real motors have several coils at different angles, so the push is smooth instead of jerky. Many modern motors, in drones, computer fans, washing machines and electric cars, have no brushes at all: an electronic circuit switches the current between coils at exactly the right moments. You will meet these in Transformers and electric machines, and robots' motors in Lumenary Robotics.

History & global context

Faraday's answer: magnets make currents

If a current can make a magnet, can a magnet make a current? In London, Michael Faraday searched for years. In 1831 he found the answer, and it was subtle: a magnet sitting still next to a coil makes no current at all. But move the magnet into the coil and a current flows; pull it out and a current flows the other way. Only change makes a current. In the United States, Joseph Henry discovered the same effect at about the same time.

Definition— electromagnetic induction

Electromagnetic induction is the making of a voltage in a coil of wire when the magnetic field through it changes, for example when a magnet moves near the coil or the coil turns in a magnetic field. The faster the change, the bigger the voltage.

Faraday was the son of a blacksmith and left school at 13 to work for a bookbinder. He educated himself by reading the books he was binding, sent the chemist Humphry Davy a hand-bound copy of his notes from Davy's lectures, was taken on as Davy's assistant at the Royal Institution in London, and became one of the greatest experimenters who ever lived. In 1825 he started its Christmas Lectures for young people, which are still given every year.

The generator

A generator is induction put to work. Spin a coil between magnets (or spin magnets inside coils) and the field through the coil keeps changing, so a voltage keeps being made. As the coil turns, the voltage rises, falls to zero, reverses, and comes back: an alternating voltage. A bicycle dynamo, a wind-up torch and the generator of a power station all work this way.

ComputationC

Faster spin, more volts

How does a generator's voltage depend on its speed? Physicists use a formula (worked out with calculus, which you will meet much later) for the peak voltage of a coil spinning in a magnetic field: multiply the number of turns of wire, the strength of the field, the area of the coil, and how fast it turns. You don't need the details; just notice that each factor makes sense. This program uses it for a toy generator, then follows the voltage through one complete turn.

python
# A toy generator: a coil of wire spinning between two magnets
import math

turns = 100              # turns of wire in the coil
field = 0.2              # strength of the magnet's field, in teslas
area = 0.03 * 0.03       # area of the coil: 3 cm by 3 cm, in square metres

print("speed (rpm)  turns/s  peak volts")
for rpm in range(0, 3001, 500):
    turns_per_second = rpm / 60
    # peak voltage = turns x field x area x (2 x pi x turns per second)
    peak = turns * field * area * 2 * math.pi * turns_per_second
    bar = "#" * round(peak * 5)
    print(f"{rpm:>11}  {turns_per_second:>7.1f}  {peak:>10.2f}  {bar}")

# One full turn at 1500 rpm: the voltage goes up, down, and reverses
print()
print("angle   volts")
peak = turns * field * area * 2 * math.pi * (1500 / 60)
for angle in range(0, 361, 30):
    volts = peak * math.sin(math.radians(angle))
    if abs(volts) < 0.005:
        volts = 0.0          # tidy away a tiny rounding error
    left = "#" * round(-volts * 4) if volts < 0 else ""
    right = "#" * round(volts * 4) if volts > 0 else ""
    print(f"{angle:>5}  {volts:>6.2f}  {left:>12}|{right}")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

("rpm" means revolutions, or turns, per minute.) The first table shows a straight-line pattern: doubling the speed from 1000 to 2000 rpm doubles the peak voltage, from 1.88 V to 3.77 V. The second shows one turn at 1500 rpm: the voltage climbs to 2.83 V when the coil has turned a quarter of the way (90°), falls back to zero at half a turn, then reverses down to −2.83 V. That smooth up-and-down shape is called a sine wave, and it is the shape of the voltage in every mains socket in the world. Try doubling turns, or making the magnet stronger.

ExplanationH

Power stations, wind turbines, speakers and microphones

Power stations

Nearly every power station is a way of spinning a generator. The difference is what does the spinning:

  • Steam. Coal, gas, nuclear and geothermal power stations all heat water into high-pressure steam, which rushes through a turbine (a shaft with many angled blades, like a giant pinwheel) and spins it. Kenya's Olkaria geothermal plants, for example, use steam from deep underground.
  • Falling water. Hydroelectric dams, such as Itaipu on the border of Brazil and Paraguay, Three Gorges in China and the Grand Ethiopian Renaissance Dam on the Blue Nile, let water rush through turbines.
  • Wind. A wind turbine's blades turn its generator directly. The biggest turbines, with blades about as long as a football pitch, turn only about ten times a minute, so they use either a gearbox or a special generator with many magnetic poles.

The large generators in a power grid all turn in perfect step. A generator with one north and one south pole makes one complete wave of alternating voltage per turn, so spinning at 3000 rpm (50 turns per second) it makes 50 hertz, the mains frequency in most of the world. Countries using 60 hertz, including the United States, Canada, Brazil, Saudi Arabia and South Korea, spin such generators at 3600 rpm. Japan uses both: 50 Hz in the east, around Tokyo, and 60 Hz in the west, around Osaka, because in the 1890s the two regions bought generators from different countries.

You will see how the grid keeps all those generators in step in The power grid, and how wind, solar and storage fit in in Renewables and storage.

Loudspeakers and microphones

A loudspeaker is a motor that shakes instead of spinning. A light coil of wire, the voice coil, is fixed to a cone of paper or plastic and sits in the field of a strong permanent magnet. The music arrives as a current that changes direction hundreds or thousands of times a second; the motor effect pushes the coil, and with it the cone, back and forth in step, and the cone pushes the air to make sound.

A dynamic microphone is the same thing working backwards, like a generator: sound waves push a thin diaphragm attached to a coil, the coil moves in the magnet's field, and induction makes a small voltage that copies the sound. In fact, you can talk into a small loudspeaker and it will work, poorly, as a microphone.

Common misconceptionsH

Common misconceptions

Misconception

"Magnets attract all metals." Only iron, nickel, cobalt and alloys containing them are strongly attracted. Aluminium cans, copper wire and gold rings are not.

Misconception

"A generator makes energy." A generator only changes energy from one form, movement, into another, electrical energy. The more current you draw from it, the harder it is to turn.

Misconception

"A magnet held still inside a coil makes a steady current." Induction needs change. A magnet resting inside a coil makes no current at all; it is the motion, or a changing current in another coil, that does it.

Misconception

"A compass points exactly to the North Pole." It points to the magnetic pole, which is in a different place from the geographic pole and slowly moves. In some places the difference is more than 10 degrees.

Optional Christian reflection · Reading the book of nature

A reflection from the Christian tradition that inspires Lumenary Academy. It is not part of the mathematics and you are welcome to skip it.

Michael Faraday was a lifelong, devout member of a small Christian church, and he saw his experiments as a way of reading the "book of nature" that God had written. He trusted that nature's laws, coming from a faithful Creator, would be consistent and worth searching for, and he combined great boldness in experiment with great humility about what he did not know. Many scientists of every faith and none share his sense of wonder; this is offered only as one way of looking at the work.

Exercises

Exercises

These exercises check the big ideas: poles and fields, electromagnets, motors and generators.

1. Magnets, motors and generators

Warm-upHuman

Kofi carefully snaps a bar magnet in half, right through the middle. What does he end up with?

Choose one

2. Magnets, motors and generators

Warm-upHuman

In 1820 Hans Christian Ørsted saw a compass needle swing when he switched on a current in a nearby wire. What did this show?

Choose one

3. Magnets, motors and generators

CoreHuman

Which of these would make an electromagnet stronger? Choose all that apply.

Choose all that apply

4. Magnets, motors and generators

CoreHuman

In a simple DC motor, what is the job of the split ring (the commutator)?

Choose one

5. Magnets, motors and generators

CoreHuman

Mei pushes a magnet into a coil connected to a sensitive meter, and the needle flicks. Then she holds the magnet still inside the coil. What does the meter show?

Choose one

6. Magnets, motors and generators

StretchHuman

A generator with one north and one south pole makes one complete wave of alternating voltage for each turn. In a country whose grid runs at 60 Hz (60 waves per second), how many revolutions per minute (rpm) must such a generator turn?

7. Magnets, motors and generators

CoreHuman

A small generator's peak voltage is proportional to its speed. At 500 rpm it gives a peak of 4 V. What peak voltage, in volts, does it give at 1500 rpm?

8. Magnets, motors and generators

Warm-upHuman

Which of these sources makes electricity without spinning a generator?

Choose one

Further reading and resources