Go Down

Topic: Change Direction of a dc Motor (Read 6052 times) previous topic - next topic


I am new to Arduino and was wondering if it was possible to change the direction of a dc motor without having to switch the positive and negative wires. At the moment I have the + wire in a digital pin and the - wire in ground.

Thanks, tranoxx


The typical method of achieving direction control over a DC motor is called an "H-bridge". There are several motor shields for the Arduino (including ours) that simplify this, or you can build one yourself on a breadboard using a device like an L293D or 754410.

Also, you should not connect motors directly to Arduino pins. They will generally draw too much current for the Arduino and can damage it.

The Ruggeduino: compatible with Arduino UNO, 24V operation, all I/O's fused and protected


Not only will a motor draw too much current from an Arduino pin and risk burning it out, it could generate high voltage spikes that destroy semiconductor devices.  Look at the tutorials for driving motors and follow the advice.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


Below are previous post concerning h-bridges.

Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0


Jun 17, 2011, 02:51 pm Last Edit: Jun 17, 2011, 02:53 pm by tranoxx Reason: 1
Also, is it possible to change the current output from the Arduino and also able to put out negative current, eg -2.5v?
Thanks to everyone for the info.


No the arduino will only give out 0 and 5V. Like any other processor.

Go Up