And a flyback diode to stop the motor zapping the Arduino when it stops...
Have a look at this tutorial on how to run a motor with a transistor.
And a flyback diode to stop the motor zapping the Arduino when it stops...
Have a look at this tutorial on how to run a motor with a transistor.