Hi all! im having trouble to power a 9V dc motor on my arduino uno, i have a 9V battery and a battery snap i just cant figure out how to power the motor, the motor is moving but at a extremely slow speed, however i can power it up to full speed if i connect it directly to the board but i cant power it on the breadboard
PS: i am trying to power motor with the postive lead connected to digital pin 5 and negative lead connected to GND
Details help. Exactly what motor ? What type of battery ? How exactly is everything connected ? How are you driving the motor ? Where is your code ?
But generally, driving a motor directly from the Arduino pins is a bad idea. They can only provide VERY low currents without damaging the board.
Steve
An Arduino digital pin will only supply a tiny amount of current compared to that a motor needs. You need a transistor of some sort - I'd recommend a logic level mosfet.
And a small 9v battery will not supply much current for long. You need a suitable power supply or a bigger battery.
But more detailed information would be necessary for more precise advice
Allan.
There are a few problems here:
- An Arduino will only ever output 5V and a tiny amount of current on its digital pins. This is NOT enough to drive any kind of motor.
- To run a motor and regulate its speed, you need a dedicated motor controller board. Popular boards use the L298 (or L298N) chip, but there are others such as the L9110 which is good for smaller projects.
- A 9V battery is utterly pathetic as a power source, especially for 9V projects. If your project requires the motor to run for more than a second, you really need to use better power sources (such as Li-on/18650 cells or multiple AA batteries).