Blog
Generators and Induction
Part 6's electromagnet, run in reverse: a changing magnetic field through a coil pushes a current. Faraday's law with worked numbers, why spinning makes a sine wave, why the push-back burns fuel, why 3,000 rpm makes 50 Hz, and what a building's standby generator does when the mains fails.

Part 7 of 24 in Cobler's Electricity Fundamentals course. New here? Start with the course map.
Take the relay coil from Part 6. Everything in it runs one way. We put a current through the coil, the coil makes a magnetic field, and the field moves iron.
Now let's try running it in reverse, with motion and magnetism making current. That reverse is how generators make electricity, both in a power station and in the diesel set in a building's basement.
So here's a quick experiment. Tape the strongest magnet you can find to a coil of wire. You'd think a magnet that strong would push some current around, but actually you get no electricity at all.
Now wave a weak magnet quickly past the same coil, and a current flows. So whatever is going on here, it seems to care a lot more about the magnet changing than about how strong it is.
Electromagnetic induction
Michael Faraday showed what's happening in 1831 with two separate coils of wire wound on opposite sides of an iron ring.
Now notice the first coil. It's wire wound on iron and fed from a battery, so it's basically the electromagnet from Part 6. The second coil went to a needle that twitched if any current flowed (Wikipedia).
Here's what Faraday saw:
- When he connected the battery, the needle twitched.
- While the battery stayed connected, the needle stayed still. Yet the first coil was now making a steady magnetic field.
- When he disconnected the battery, the needle twitched the other way.
So current flowed only while the field was growing or collapsing. Honestly, I think it's a clever experiment.
So a magnetic field that's changing through a coil pushes charge along the wire, with no contact at all. But a steady field pushes nothing, no matter how strong it is. That effect is what we call electromagnetic induction.
That explains the taped magnet. Its magnetism through the coil is strong, but it never changes, so it pushes no current.
An old bicycle dynamo light shows the same thing. Pedal faster and the lamp glows brighter. Stop at a junction and it goes dark, because the magnet inside the dynamo has stopped turning.
Faraday's law
So with the dynamo, pedalling faster makes the lamp glow brighter, and Faraday's law turns that into a rule. The voltage induced in a coil equals the number of turns multiplied by how fast the magnetism through the coil is changing.
Engineers call the amount of magnetism passing through a coil its magnetic flux, written \(\Phi\) and measured in webers (Wb). In symbols, Faraday's law is:
$$\varepsilon = -N \frac{\Delta \Phi}{\Delta t}$$
Each symbol stands for one quantity:
- \(\varepsilon\) is the induced push in volts, called the electromotive force (EMF).
- \(N\) is the number of turns.
- \(\Delta \Phi\) is the change in flux.
- \(\Delta t\) is the time the change took.
The minus sign gets its own section below.
Let's try some illustrative numbers. Say we've got a coil with 200 turns. We swing a magnet past it so the flux through it rises from zero to 0.005 Wb in a tenth of a second:
- EMF = 200 × 0.005 ÷ 0.1 = 10 V.
- Swing the same magnet twice as fast, in 0.05 s: 200 × 0.005 ÷ 0.05 = 20 V.
- Hold it still against the coil: the change is zero, so the voltage is 0 V, no matter how strong the magnet is.
And each turn of wire adds its own small push, so a coil with twice the turns gives twice the voltage too. That makes speed and turns the two levers a generator designer gets to pull.
How generators make electricity
Now one swing of a magnet isn't much of a power supply, because the voltage only lasts as long as the swing. So how do we go from one swing to a continuous supply?
Well, what if the magnet never stopped moving? That's what a generator does, because it spins a magnet inside a ring of coils.
So from the coil's point of view, the magnetism passing through it never stops changing, and that's the heart of how generators work.
Let's follow the magnet through one full turn, with a coil fixed just above it:
- The north pole points straight at the coil. The flux is at its strongest, but for an instant it isn't changing, so the voltage is zero.
- A quarter turn later the magnet is side-on. The flux is passing through zero and changing fastest, so the voltage is at its highest.
- Another quarter turn and the south pole points at the coil. The flux is strongest again, the other way round, and for an instant the voltage is zero again.
- At the next side-on position the flux changes fastest the other way, so the voltage peaks in the opposite direction.
Then the cycle repeats. The voltage rises, falls, reverses and returns in a smooth wave, one cycle per turn, and that shape is what we call a sine wave.
Nobody designs the reversals in, either, because the north and south poles take turns passing the coil.

The voltage is zero when a pole faces the coil and highest when the magnet is side-on. That is when the magnetism through the coil changes fastest.
That raises a fair question about the diesel set in the basement. Why does it need fuel at all? Once the magnet is spinning, why not let it coast and collect the current for free?
Lenz's law
Well, it's because the current it delivers pushes back against the turning magnet. If we draw more current, the shaft gets harder to turn, so the engine or turbine has to work harder to hold its speed.
The mechanism is Part 6 again. When current flows in the generator's coils, those coils become electromagnets. Their field pushes against the spinning magnet, always in the direction that resists the turning.
This is Lenz's law, and it's the minus sign in Faraday's law. An induced current always opposes the change that made it. If it helped instead, a generator would speed itself up and make energy from nothing.
The push-back is a real twisting force, or torque. Take a standby generator turning at 1,500 revolutions per minute (rpm), which is 25 turns a second, or about 157 radians per second.
To deliver 800 kW (illustrative), its engine has to supply at least this torque. Here \(\omega\) (the Greek letter omega) is the speed in radians per second:
$$\text{torque} = \frac{P}{\omega} = \frac{800000\ \text{W}}{157\ \text{rad/s}} \approx 5100\ \text{N}\cdot\text{m}$$
That's about 5,100 newton-metres, many times a car engine's. It's the same twist as a 520 kg weight hanging from the end of a one-metre bar.
If we switch off half the load, the push-back about halves and the fuel burn falls with it. So that's how a generator kind of "knows" someone switched on a kettle.
The same push-back explains why a motor and a generator are really one machine run two ways. Feed electricity in and the shaft turns, and turn the shaft and electricity comes out.
An electric car uses this when it brakes, because the wheels turn the motor, which works as a generator and charges the battery. Part 11 covers the motor side.
What turns the shaft varies:
- Coal and gas power stations make high-pressure steam or hot gas that spins a turbine, which is a set of angled blades on the shaft.
- Hydroelectric stations use falling water.
- Wind turbines use moving air.
- A standby set uses a diesel engine.
Apart from solar panels, which make electricity without moving parts, nearly every kWh Malaysia uses starts as something turning.
In 2025, coal and gas plants made more than 90% of Peninsular Malaysia's electricity, and solar about 2%. Those figures come from a Reuters analysis of Grid System Operator data, published in The Star.
Frequency
Now a generator makes one cycle of voltage each time a pair of poles (one north, one south) passes the coil. So its frequency is set by how fast it turns and how many poles it has:
$$f = \frac{n}{60} \times p$$
In that formula:
- \(f\) is the frequency in hertz (cycles per second).
- \(n\) is the speed in rpm.
- \(p\) is the number of pole pairs.
A two-pole machine at 3,000 rpm then gives 3,000 ÷ 60 × 1 = 50 Hz.
Machine | Poles (pairs) | Speed for 50 Hz |
|---|---|---|
Large steam or gas-turbine generator | 2 (1) | 3,000 rpm |
Typical standby diesel set | 4 (2) | 1,500 rpm |
A slow hydroelectric generator (example) | 40 (20) | 150 rpm |
All the large generators on a connected grid, like Peninsular Malaysia's, turn in step so their waves rise and fall together.
So the grid's frequency is, in effect, the speed of all of them at once, which makes it a live gauge of supply and demand.
When demand runs ahead of generation, the extra push-back slows every machine slightly and the frequency dips below 50 Hz. It stays low until automatic controls add steam, gas or water.
Worth knowing: why it's 50 and not 60 is a historical choice, and that story is in the optional Why 50 Hz? extra.
The standby generator
The office tower we've been following, our fictional 20-storey tower in Kuala Lumpur, has an illustrative 1,000 kVA diesel set in its basement. Its kVA figure is a size rating that Part 12 explains.
Let's walk through what happens when the supply from TNB, Peninsular Malaysia's utility, drops on a weekday afternoon. The sequence is typical, and the details vary by building.
- The lights die and the battery emergency lights come on. In the switchroom, an automatic transfer switch (ATS) is watching the mains with a voltage-sensing relay. With no voltage, that relay's coil drops out, like Part 6's seal-in circuit when its supply fails. So the ATS signals the generator to start.
- The diesel engine cranks and runs up to 1,500 rpm, so its four-pole alternator makes 50 Hz.
- The spinning "magnet" inside is actually an electromagnet rather than a permanent magnet. It's Part 6's coil on iron, fed with direct current (DC), now turning. An automatic voltage regulator (AVR) adjusts that coil's current to hold the output at 400 V. More field current means more flux, and more flux means more volts, as Faraday's law says.
- Once voltage and frequency are steady, the ATS opens the mains side and closes the generator side. The two are interlocked so they can never both be closed. Closing both would push the generator's output back into TNB's network, where crews may be working.
- Essential loads come on, for example fire lifts, emergency lighting, smoke-control fans and the building management system (BMS). As each block of load lands, the push-back jumps, the engine slows for a moment and the frequency dips. Then the governor (the engine's speed controller) adds fuel. That's why loads are brought on in steps rather than all at once.
When the mains comes back and stays stable, the ATS transfers back and the set runs on briefly to cool down before stopping. The full sequence, and where a UPS (uninterruptible power supply) fits in, is covered in when the mains fails.
Alternating voltage
What comes out of a spinning generator, then, is a voltage that rises, falls and reverses as the poles take turns passing the coils. On Malaysia's grid it completes 50 cycles every second.
That's very different from the steady push we'd get from a battery. And every socket in the tower carries that wave, whether it came from a power station or from the basement set.
So what exactly is this alternating current, and why would a grid keep a push that keeps reversing, when a battery's steady push looks simpler? We'll pick that up in Part 8: AC vs DC, starting from the sine wave we just made.
This is Part 7 of 24 in Cobler's Electricity Fundamentals course. Previous: Electromagnets and Relays. Next: AC vs DC.
Cobler's CobiNeural monitors a building's supply live and alerts the team when it fails or sags. To see how your site rides through an outage, request a demo.
FAQ
Frequently asked questions
A generator moves a magnet and a coil of wire past each other. The changing magnetism through the coil pushes a current along the wire without any contact, an effect called electromagnetic induction. To produce a continuous supply, the magnet is spun inside a ring of coils, so the magnetism through them never stops changing. In large generators the spinning magnet is itself an electromagnet fed with direct current (DC). The energy comes from whatever turns the shaft: steam, falling water, wind or a diesel engine.
Because induction responds to a changing magnetic field, not a steady one. Faraday's law says the voltage equals the number of turns times how fast the magnetic flux through the coil changes. Michael Faraday showed in 1831 that a coil produces current only while the magnetism through it is changing. A strong magnet held still against a coil produces no current at all, which is why generators rotate.
As the magnet turns, the magnetism through the coil rises, falls to zero, reverses and returns once per turn of a two-pole machine. The voltage is highest when the magnetism is changing fastest (magnet side-on to the coil) and zero when a pole points straight at the coil. The result is a smooth wave that reverses direction, called a sine wave. Alternating voltage is what a turning machine naturally produces, because the north and south poles take turns passing the coil.
On Malaysia's 50 Hz grid, a two-pole generator, the usual type in steam and gas-turbine power stations, turns at exactly 3,000 rpm. Frequency equals revolutions per second times the number of pole pairs, so 3,000 rpm is 50 turns a second, giving 50 Hz. A four-pole standby diesel set turns at 1,500 rpm for the same 50 Hz, and a 40-pole hydroelectric generator turns at only 150 rpm.
They are the same type of machine run in opposite directions. Turn the shaft and it produces electricity. Feed electricity in and it turns the shaft. In practice each machine is designed and controlled for its main job, but many can work both ways. An electric vehicle uses this in regenerative braking. When the driver brakes, the wheels turn the motor, which works as a generator and sends current back into the battery.
Different energy sources do the same job of turning the shaft. Coal and gas stations use high-pressure steam or hot gas to push a turbine, and hydroelectric stations use falling water. Wind turbines use moving air, and a building's standby set uses a diesel engine. Coal and natural gas supply most of Malaysia's electricity. Fuel is needed because the generator's own output current pushes back against the spinning magnet (Lenz's law). The more current drawn, the harder the shaft is to turn, so more fuel, steam or water must go in to hold the speed.
Ask us about this topic
Something in this article you want to dig into — or a situation in your own building it doesn't quite cover? Send us your question. We don't run public comments; the team replies to you directly by email.


