Small DC Motor Help

Hi guys,

So I have an arduino Uno and a 6/9 volt small dc motor. I am trying to find a way to connect the dc motor to my arduino so I can control the speed. For example I would have a simple program where the motor runs at A speed for 3 seconds (A being the number I type in to set the speed). Any help or links to post for wiring? Thanks!

You cannot directly connect the motor to the Arduino. You need driver. This can be a transistor or preferably a logic level gate MOSFET. You then control the speed using PWM.

You must also put a reverse connected diode across the motor.

Weedpharma

I understand that it can't be directly attached. Do you know what specific type of transistor is needed?

Any one that will take the current of the stalled motor.

Take a look at this tutorial : Overview | Arduino Lesson 13. DC Motors | Adafruit Learning System

You can read all about how to control motors here:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html