Author Topic: How to control two motors  (Read 1190 times)

0 Members and 1 Guest are viewing this topic.

Offline rahulpwnsTopic starter

  • Jr. Member
  • **
  • Posts: 28
  • Helpful? 0
How to control two motors
« on: November 11, 2011, 10:16:44 PM »
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?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to control two motors
« Reply #1 on: November 12, 2011, 05:52:26 PM »
I think we are discussing something very similar in Insufficient Current to Motors thread.

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.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W


Get Your Ad Here