Go Down

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


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?




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:

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:

Hope this helps


Go Up