Author Topic: speed cotrol of two dc motors  (Read 1208 times)

0 Members and 1 Guest are viewing this topic.

Offline weejaiTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
speed cotrol of two dc motors
« on: April 21, 2009, 10:59:24 PM »
hi every one who r intrested in robotics
                    iam controling my wheels with IR sensors with that feedback count from sensors i hav make the two counts same  "i am facing a small problem iam unable to control speed of two motors at same speed when i make them to run my and robot is turning "send me soluton for thistwo motors are of same rpm 100 and 12v dc and IR sensors with whell encoder these are using and iam using c code in cce tool
weejai

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: speed cotrol of two dc motors
« Reply #1 on: April 22, 2009, 02:04:22 AM »
motor controller with pwm. Google pwm.
Howdy

Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: speed cotrol of two dc motors
« Reply #2 on: April 22, 2009, 04:49:30 AM »
l293d .... can control 2 motors with pwm simultaneously and both motors have to be of same spec...can give max current output of 600 ma for each motor...supports upto 50v .... great chip and very easy to interface..
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline Resilient

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 4
Re: speed cotrol of two dc motors
« Reply #3 on: April 23, 2009, 11:36:59 PM »
Here is a website that has some example code on how to write a PI loop using wheel encoders.

http://nubotics.com/support/ww01/example_code.html

It's probably a bit more complicated than you think.  Google PID loop for more reading on the subject.

 


Get Your Ad Here

data_list