Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: rahulpwns on November 11, 2011, 10:16:44 PM

Title: How to control two motors
Post by: rahulpwns on November 11, 2011, 10:16:44 PM
Hey,
i am working on a project where i am disassembling an RC Car and using its parts for my robot.
i will replace the built in microcontroller with an Arduino Mega 1280.
i am concerned with how to run the motors, since the arduino only provides 40ma of current per pin.
i do not know how much current the motors will take, but the car moves at 5mph.
what would be the best way for me to supply sufficient current to the motors?
Title: Re: How to control two motors
Post by: newInRobotics on November 12, 2011, 05:52:26 PM
I think we are discussing something very similar in Insufficient Current to Motors thread (http://www.societyofrobots.com/robotforum/index.php?topic=14766.msg107704#new).

You cannot drive loads directly with microcontroller pins (other than LED, or something similar); these pins are used for logic level operations only. To drive something like motor, and H-bridge has to be used.