Want to spin a small hobby motor from an Arduino digital pin directly with digitalWrite HIGH. Seems like it should just work like an LED does. Do I actually need a transistor or driver chip in between?
TechCrate editorial answer
Bench Answer
**Don't connect the motor directly to the pin** — you need a transistor or motor driver chip in between. Even a small hobby motor can draw 100-250mA or more (well beyond a pin's ~20-40mA limit) and generates a damaging voltage spike (back-EMF) when switched off that can destroy the Arduino's pin driver circuitry. **Why LEDs are fine but motors are not:** an LED with a current-limiting resistor draws a small, steady current, well under a pin's rating. A hobby motor draws far more, and spikes even higher at startup (stall/inrush current) or under load. **The back-EMF problem:** motors are spinning electromagnets. When power is cut suddenly, the collapsing magnetic field generates a brief high-voltage reverse spike that can destroy the delicate transistors inside the pin driver circuitry.
Unlock the full bench walkthrough
Members get the complete diagnostic workflow, every measurement to take and the verification checklist.
Unlock Digital VIP · $4.99/mo →