Society of Robots - Robot Forum
Software => Software => Topic started 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
-
motor controller with pwm. Google pwm.
-
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..
-
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.