I have tried three different but simple circuits to drive a 5 volt motor, through pin9 of an Arduino UNO, under different routines (the circuits are given in Arduino for dummies).
The circuits involve simply a transistor, diode and resistor. Power supply is via the 5v Arduino pin.
In each case, the motor will not drive but when the motor is replaced by an led the sequences are followed exactly.
The motor will operate ok when connected directly to a power supply.
How can I get the motor to run?