Why You Need a Driver
Pins can't power motors; use a transistor or driver.
Why You Need a Driver is a free Arduino & IoT Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Arduino & IoT Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Pins Are Tiny
An Arduino pin can only push a few milliamps. That is plenty for an LED, but a motor wants far more current than a pin can ever supply. ⚡
What a Motor Demands
Even a small DC motor can pull hundreds of milliamps when starting. Connect it straight to a pin and you risk frying your board instantly.
Enter the Driver
A driver is a middleman. Your pin sends a tiny control signal, and the driver switches a much bigger current from a separate power supply.
The Transistor as a Switch
The simplest driver is a single transistor. A small voltage on its base lets a large current flow through, like a faucet your pin gently opens.
Separate Power for the Motor
The motor draws from its own supply, not the Arduino's 5V. The pin only flips the transistor, so the heavy current never touches your board.
Share a Common Ground
The motor supply and the Arduino must share one ground. Without a common reference, the transistor never sees a clean on or off signal.
Driving It in Code
To your sketch, a transistor driver looks just like an LED. You set a pin HIGH to run the motor and LOW to stop it.
pinMode(9, OUTPUT);
digitalWrite(9, HIGH); // motor on
digitalWrite(9, LOW); // motor offMOSFETs for Bigger Loads
For heavier current a logic-level MOSFET is the go-to switch. It wastes little energy as heat and handles motors a small transistor cannot.
Ready-Made Driver Modules
You rarely wire transistors by hand. A driver module packs the switching parts onto one tidy board you simply plug into.
One Direction Only
A single transistor can turn a motor on and off, but it spins only one way. To reverse a motor you need more, which the next lesson covers. 🔄
Why It Keeps Boards Alive
The whole point of a driver is isolation: it lets a fragile 5V pin command a powerful load without ever risking the Arduino itself.
Quick Check
Why can't you connect a DC motor directly to an Arduino output pin?
Recap
Pins are weak, motors are hungry, so a driver like a transistor or MOSFET switches a separate supply. Share ground and you protect your board. 🚀
Frequently asked questions
Is the “Why You Need a Driver” lesson free?
Yes — the full text of “Why You Need a Driver” is free to read here on the web, and the Arduino & IoT Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Arduino & IoT Academy course, upgrade to CoddyKit PRO.
What will I learn in “Why You Need a Driver”?
Pins can't power motors; use a transistor or driver. You practise Arduino & IoT Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Arduino & IoT Academy?
No prior experience is required. Arduino & IoT Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Why You Need a Driver” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Arduino & IoT Academy lesson?
Yes. Every Arduino & IoT Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.