Level 4 · Motion · project 1 of 8 · 15 min · ●●○○○

First Spin

Your first motor. A switch, a coil, and a diode that catches the voltage kick when the current stops.

new here? Start with First Light — one battery, one resistor, one LED. It teaches the loop, LED direction, and why the 220 Ω resistor matters.

What you need

you'll learn: Circuits are loops · Switches · Ohm's law · Series & parallel

Circuit map

The circuit you'll build, running on the Workbench right now.

simulating…

If it doesn't work

The boring ways this circuit actually breaks — check these first before you unwire everything.

  • Motor doesn't spin at all. Battery pack switch first. Then check the motor terminals — they're a friction fit; wiggle to seat. Then the slide switch's middle + one outer leg.
  • Motor grinds but won't turn. Load is too heavy. Take the fan blade off; a bare shaft should spin cleanly at 4.5 V.
  • Motor spins the wrong way. Swap the motor's two wires. Motors don't care about polarity — flipping the leads flips the spin direction.
  • Motor spins for a second, then quits. AA cells are drained. The coil pulls ~150 mA at start; weak batteries collapse under it. Fresh alkalines or NiMH.
  • Diode gets warm. Diode wired in series with the motor. It goes ACROSS the motor, with the banded end (cathode) toward + — it only conducts on the coil's kickback.
  • Nothing happens even with slide closed. Slide switch is on the outer-outer pair (which is just off). Use the middle leg + one outer leg.

What you're building

The Level 4 hello-world: a single loop with a battery, a slide switch, and a DC motor. Flip the switch and the motor spins; flip it back and it stops. One extra part sits across the motor — a 1N4001 diode — doing nothing visible during normal operation, and everything important the moment the switch opens.

If you tape a paper blade to the shaft, this project is a one-speed desk fan. If you drop the motor onto a small gearbox, it's the drivetrain of a robot. Level 4 is the first time your Ω box can move something in the real world.

Meet the motor

A DC motor is a coil of copper wire wound around a spindle, sitting inside a permanent magnet. Push current through the coil and the coil becomes an electromagnet; the fixed magnet pushes it around; commutator brushes flip the current every half-turn so it keeps going the same way. That's the entire idea — a magnet shoving another magnet in circles.

Two things follow from "coil of wire":

  • A motor is (mostly) a resistor. The DC resistance of a small 3 V hobby motor is around 30 Ω. At 4.5 V, that's 4.5 ÷ 30 = 150 mA through the coil — well within what fresh AAs deliver, but fifteen times what an LED wants. Motors are hungry.
  • A motor is also an inductor. A coil of wire stores energy in its magnetic field. That storage is what saves your circuit from itself — and, unmanaged, what breaks it. More on this below.

The little 3 V motor you have is happy anywhere between about 2 V and 5 V. Below ~1 V it won't turn at all (friction wins); above ~5 V the brushes wear fast and the case warms up. Our 4.5 V battery pack is right in the sweet spot.

Do the math

Straight Ohm's law, one loop, no branches:

  • Battery: 4.5 V.
  • Motor coil: ~30 Ω resistance.
  • Current through the loop when the switch is closed: 4.5 V ÷ 30 Ω ≈ 150 mA.
  • Power the motor eats: V × I = 4.5 × 0.15 ≈ 0.68 W. Most of that becomes spin (and a little sound and heat); the battery pack barely notices.

Compare to First Light: an LED at 4.5 V through a 220 Ω resistor pulled ~11 mA. A motor pulls fifteen times more. The AA cells were designed for this — they can sustain hundreds of mA for hours — but if you tried the same trick with a coin cell (CR2032), the button battery would sag under load and the motor would barely twitch. Big loads need big batteries.

The kickback story (why the diode is there)

Flip the switch off while the motor is spinning. The current through the coil wants to stop instantly — but the magnetic field stored in the coil has other ideas. As that field collapses, it forces the coil to keep pushing current somewhere, for a fraction of a millisecond, at whatever voltage it takes.

Without a safe path, the coil finds one across the open switch contacts: an arc, a click, a tiny spark. You can see it on switches with clear plastic bodies, and hear it as a snap. Repeated arcs pit the switch contacts and — worse, at Level 6+ when you replace the switch with a transistor — the voltage spike will blow the transistor open with one flick.

The 1N4001 diode sitting across the motor is the fix. It's a one-way street:

  • When the motor is running normally: the diode's cathode (the banded end) is at the battery + side, its anode is at the switch side. That's reverse-biased — the diode is a wall, no current flows through it, and it's invisible to the circuit.
  • The instant the switch opens: the coil's collapsing field yanks the switch-side node above the battery + rail. Now the diode's anode is higher than its cathode — it flips into forward-biased mode and hands the coil a safe loop: coil → diode → back into coil. The stored magnetic energy dumps as a tiny burst of current recirculating through the diode, which drops it as heat in the coil's own resistance. Gone in a millisecond. No spark, no click, no dead transistor.

This diode-across-the-coil trick is called a flyback diode or freewheel diode. Every relay, every motor driver, every solenoid you'll ever meet has one. Learn to spot it and you'll see it everywhere.

Build it

  1. Power rails: battery + to a top row, battery to a bottom row. Same as every project.
  2. Slide switch: put it inline with the + rail so it can cut power to the motor. Wire from + rail → one leg of the switch → out the other leg into a fresh row (call it A).
  3. Motor: one motor lead in row A (the switch's output), the other motor lead over to a row that connects to rail. Motors have no polarity for direction — reversing the leads just spins it the other way.
  4. Flyback diode across the motor: cathode (banded end) into row A (the same row as the motor's positive-side lead); anode into the rail row (the same row as the motor's negative-side lead). The diode sits in parallel with the motor, banded end toward +.
  5. Flip the slide switch. Motor spins. Flip it back. Motor stops quickly — no click, no spark. If you had no diode, you'd feel a faint snap at the switch on the way off; with the diode, everything is quiet.

The most common first-try mistake is putting the diode in backwards — banded end (cathode) toward the switch side instead of toward +. Wired that way, the diode is forward-biased the moment you close the switch and shorts the battery through itself. It'll get hot fast; you'll blow the diode and possibly the battery-pack fuse. If the motor doesn't spin and the diode is warm to the touch, disconnect and flip it around.

Try it with a paper fan blade

Cut a 6-cm paper circle, slit four blades from the edge in toward the centre, and twist each blade a few degrees. Push the centre onto the motor shaft. Turn it on. You have a working desk fan — the same design as a laptop CPU cooler, minus the housing.

That paper blade is doing something interesting: it turns the motor into a fluid pump. The current the motor pulls now depends on how much air the blade is pushing against — put your finger in front of it and the motor draws a little more current. This is your first "the load talks back to the source" moment, and it becomes central at Level 9 when a robot's wheels hit carpet vs. tile.

What you built into your toolbox

Every Level 4+ project that spins something inherits this pattern: motor + flyback diode across the motor. In Handheld Fan you swap the slide switch for a transistor driven by a button; in Sunrise Fan the transistor is driven by an LDR. The motor and diode never change.

🧠 Your challenge

No single right answer. That's the point.

  • Reverse it. Swap the two motor leads and flip the diode along with them. Which way does the motor spin now? Does the diode still protect? (Answer: yes — the diode just needs its cathode on the side that was positive during running. Swap the motor and the "positive side" swaps too.)
  • Diode-less demo (careful). Pull the diode. Run the motor, then flip the switch off while listening close to the switch. Do you hear a snap? Try it three or four times. On some cheap slide switches you can watch the contact pit over time — a perfectly good reason to keep the diode installed for the rest of your life.
  • Load talks back. With the fan blade on, hold your finger lightly against the shaft to stall the motor for a moment. What does the current do? (A stalled motor is just its coil resistance — 4.5 V ÷ 30 Ω = 150 mA. A spinning motor actually generates its own opposing voltage — called back-EMF — that fights the battery and reduces the current to more like 60–80 mA. Slow it down and the back-EMF drops, so the current rises. That's why a stuck fan gets hot.)
  • Two motors in parallel. Two motors, each with their own flyback diode, both hanging off the same switch. How much current does the battery deliver now? (About 300 mA — still fine for fresh AAs. Each motor gets its own 4.5 V and its own diode; parallel branches don't share loads.)
  • The next step up. Sketch the same circuit but with a push button instead of a slide switch. Now you have a hand-held fan. Then sketch it again with a transistor where the switch was, and a button feeding the base through a 1 kΩ. That's Handheld Fan — build it next.

For grown-ups: safety notes

  • Battery-safe throughout. 4.5 V and 150 mA through your finger is imperceptible. Even a stalled motor at 150 mA can't hurt you — it may get warm to the touch after a minute of stalled operation, though, so don't let it stall for long.
  • Fingers, hair, and paper blades don't mix well. The little motor spins around 6,000 RPM unloaded. That's not fast enough to injure a fingertip, but it is fast enough to grab and wind long hair, ribbon, or a loose sleeve. Tie hair back for this project and keep loose clothing clear of the shaft.
  • If the diode is wired backwards, it will get hot within seconds of closing the switch — because it's now a short-across-the-battery. Disconnect and flip it. A briefly toasted 1N4001 usually survives; leaving it there for minutes will kill it and possibly the switch.
  • Don't run the motor from mains, ever. The 4.5 V AA pack is safe; wall power (120 V or 230 V) will burn out the motor windings in less than a second and can arc across the switch. Every part in this project is low-voltage.
  • If the paper fan blade wobbles hard or shreds, stop and re-centre it on the shaft. A wobbling blade throws paper bits and stresses the motor bearings.
  • The 1N4001 is rated for 1 A continuous and about 50 A briefly. The flyback pulse from a small hobby motor is well under an amp; the diode will outlive the motor. Don't substitute an LED for this job — LEDs are also diodes, but their reverse breakdown is only ~5 V and they'll die in the first flyback pulse.

Checked against

Keep building