Society of Robots - Robot Forum

Software => Software => Topic started by: weejai on April 21, 2009, 10:59:24 PM

Title: speed cotrol of two dc motors
Post by: weejai 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
Title: Re: speed cotrol of two dc motors
Post by: SmAsH on April 22, 2009, 02:04:22 AM
motor controller with pwm. Google pwm.
Title: Re: speed cotrol of two dc motors
Post by: superchiku 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..
Title: Re: speed cotrol of two dc motors
Post by: Resilient 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 (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.