Go Down

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

tranoxx

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

RuggedCircuits

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

MarkT

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 won't respond to messages, use the forum please ]

zoomkat

Below are previous post concerning h-bridges.

http://www.google.com/search?q=h-bridge+site%3Ahttp%3A%2F%2Farduino.cc%2Fforum%2Findex.php&hl=en&num=100&lr=&ft=i&cr=&safe=images&tbs=
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.


tranoxx

#5
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.

Grumpy_Mike

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

Go Up