Blog

How Generators Make Electricity: Spin Meets Wire

Move a magnet past a coil of wire and current flows. That one trick, discovered by Faraday in 1831, is how every kilowatt-hour Malaysia burns gets made, and why the grid runs on a sine wave.

Tan Kok XinTan Kok XinElectricity Fundamentals
Magnet rotating inside a ring of copper coils with a glowing sine wave streaming out, illustrating electromagnetic induction

Part 10 of 23 in Cobler's Electricity Fundamentals series. New here? Start with the course map.

Right now, somewhere in Perak or Pahang, a steel shaft as long as a bus is spinning at 3,000 revolutions a minute inside a power station, and that motion is the reason your lights are on. Every kilowatt-hour Malaysia consumes begins as something physically turning. Coal and gas and falling water are just different ways of getting a shaft to spin. How generators make electricity from that spin is a trick so simple it fits in one sentence, and it has not changed since 1831.

How generators make electricity: spin a magnet past a coil

Move a magnet past a coil of wire and current flows in the wire. That is the whole idea. You do not touch the coil, you do not connect it to the magnet, you just move one past the other, and electricity appears in the wire out of nowhere.

The effect is called electromagnetic induction, and Michael Faraday nailed it down on 29 August 1831. He wound two separate coils on opposite sides of an iron ring, connected one to a battery and the other to a needle that would twitch if any current flowed (Wikipedia). The surprise was what the needle did. It twitched at the instant he connected the battery, then fell dead still while the battery stayed connected, then twitched the other way when he disconnected it. A steady magnetic field did nothing at all. Only the change produced electricity.

That is the detail every generator is built around, and it is worth sitting with because it is counterintuitive. A powerful magnet held motionless against a coil generates precisely zero. Glue a fridge magnet to a copper coil and leave it there for a year and you get nothing. The magnetism has to be changing for current to flow. Induction is a response to change, not to strength.

Why does moving the magnet matter so much?

Because the coil does not react to the magnetic field itself, it reacts to how fast that field is changing. Faraday's law says the voltage induced in the coil equals the rate at which the magnetic field through it changes. Rate, not amount. A weak magnet moved quickly can induce more voltage than a strong one moved slowly.

This is the problem a generator has to solve at industrial scale. One twitch of Faraday's needle is not a power supply. To get a continuous flow, you have to keep the magnetic field changing continuously, and the cleanest way to change something forever is to rotate it. So you spin a magnet round and round inside a ring of coils, or spin the coils inside a fixed magnetic field. Either way, from the coil's point of view, the magnetism sweeping past it never stops changing. That is a generator. Everything else is engineering detail: how big, how fast, how you cool it, what spins the shaft.

Why does a spinning magnet produce a sine wave?

Because as the magnet rotates, the coil sees its field rise, peak, fall to zero, reverse, and come back, smoothly, once per turn. Follow one full rotation. When the magnet's north pole is sweeping edge-on past the coil, the field through the coil is passing through zero and changing fastest, so the induced voltage is at its maximum. A quarter-turn later the pole points straight at the coil, the field through it is at its peak and momentarily steady, and the voltage passes through zero. Keep turning and the south pole comes round, so the field now changes the other way and the voltage swings negative. The result is a voltage that glides up and down in a perfect wave, one complete cycle for every rotation.

That wave has a name. It is a sine wave, and it is the exact shape of the alternating current we met in Part 9 on AC versus DC. This is the quietly beautiful part: alternating current is not a clever design decision someone made. AC is simply what rotation looks like when you read it off a coil. A rotating machine cannot help but produce a wave that alternates, because rotation itself alternates, north pole then south pole, over and over. The grid alternates because the machines that feed it spin.

What spins the shaft? Steam, water, wind

Every power station is a variation on one question: what turns the shaft. The generator on the end is essentially the same machine in each case.

- Coal and gas stations boil water or burn gas to make a high-pressure jet that pushes a turbine, a fan of angled blades on the shaft. Malaysia leans hard on these: coal supplied over 43% of the country's electricity and natural gas around 37% in 2023 (US EIA).
- Hydroelectric stations let falling water push the blades instead. Malaysia's dams, from Bakun to the Cameron Highlands schemes, contributed roughly 17% (US EIA).
- Wind turbines do the same job with moving air, and a rooftop or car alternator does it with an engine belt.

The prime mover, whatever drives the shaft, changes; the physics at the coil does not. And the numbers scale astonishingly. Faraday's benchtop ring made a needle twitch. A power-station alternator does the identical thing at hundreds of megawatts, in a cylinder you could not put your arms around. On Malaysia's 50 Hz grid, a large two-pole generator has to spin at exactly 3,000 rpm, because the arithmetic is fixed: rotation speed equals 120 times the frequency divided by the number of magnetic poles, and 120 times 50 divided by 2 is 3,000 (Wikipedia). That is 50 turns every second, which is why the grid cycles 50 times a second. The frequency of your electricity is literally the rotation speed of a distant machine.

Is a generator the same thing as a motor?

Yes. A generator and a motor are the same machine run in opposite directions. Spin the shaft and it pushes out electricity. Push electricity in and it spins the shaft. The magnet, the coils, the iron, the bearings are identical; only the direction of energy flow reverses.

You use this every time you brake an electric vehicle. An EV's traction motor drives the wheels on the way up to speed. Lift off and brake, and the car runs that same motor backwards as a generator for a few seconds, letting the wheels turn the shaft so the machine feeds current back into the battery instead of drawing it. The braking you feel is the effort of generating. This is regenerative braking, and it is nothing more exotic than Faraday's rule read from the other end. The same duality runs through every factory in Malaysia: the induction motors on chillers, pumps and compressors are, mechanically, generators waiting for their power to be cut.

Why do all the generators have to spin together?

Because they are all feeding one grid, and a grid can only carry one frequency at a time. Across Peninsular Malaysia, every large alternator connected to the network spins in electrical lockstep, all of them turning so their sine waves line up peak-for-peak. They are, in effect, bolted to one enormous invisible driveshaft. Pull a generator slightly out of step and the grid drags it back into line.

This is why grid frequency means anything at all, and why operators watch it like a pulse. When demand suddenly exceeds supply, every one of those spinning machines is loaded a fraction harder and the whole fleet slows imperceptibly, so the frequency sags below 50 Hz. Too much generation and it creeps up. Frequency is the shared heartbeat of thousands of tonnes of spinning steel, which is why it works as a real-time signal for whether the country is generating enough. That accident of the number 50 has its own story in Part 13, and the full path from these machines to your meter is Malaysia's grid journey later in the series.

Faraday's ring hid a second machine inside it, though. He got his current not by moving a magnet, but by switching one coil on and off next to another, with no moving parts whatsoever. That stationary cousin of the generator is the transformer, and it is the reason high-voltage electricity can travel across the country at all. That is where we go next.


This is Part 10 of 23 in Cobler's Electricity Fundamentals series. Previous: AC vs DC: Why the Grid Alternates and Your Phone Does Not. Next: How Transformers Work: The Grid's Quiet Machine.

Cobler's energy monitoring works because the same physics runs both ways: the motors in your building are generators in reverse, and slowing one with a variable frequency drive (a controller that eases a motor's speed) cuts the current it draws. If you want to see which of your machines are working harder than they need to, book a demo.

FAQ

Frequently asked questions

Keep Reading

Related articles