Go Down

Topic: -- 2 motors 2 directions (Read 979 times) previous topic - next topic

keebOo

Hi to all,
I'm a newbie.... so maybe it's very simple but ... I don't know how to make it. :)

I have connected 2 little motors to arduino board (with a pair of mosfet to pin 9 an 10), and I control the speed simply with analogWrite(), the question is: How I can change the direction of rotation?

thanks.

Daniel

Hi

You need something called an "H-Bridge", to chage the polarity of the motor according to signals from the Arduino.

Here's a good explanation of one:
http://www.bobblick.com/techref/projects/hbridge/hbridge.html

You could also build one with a relay- very simple but noisy and won't last forever due to electrical corrosion since the contacts "spark".

Here's a commercial H-Bridge that I use often. It drives two motors, and is reversible:
http://www.hvwtech.com/products_view.asp?CatID=113&SubCatID=146&SubSubCatID=0&ProductID=30

Hope this helps

D



Go Up