Society of Robots - Robot Forum

Software => Software => Topic started by: kieraon on March 31, 2010, 02:25:05 AM

Title: PID controller for a wall following robot
Post by: kieraon on March 31, 2010, 02:25:05 AM
Currently I am facing some problems in programming my robot to follow the wall precisely. I am using two stepper motors interfacing with Atmega32 micro board. Each of the stepper motor is controlled by different timers thus it is possible to change their speeds. The issue here is that I am not able to implement PID controller due to the fact that the stepper motors need a definite number of steps to rotate, wherelse the output of the PID is velocity. How shall i convert the velocity to number of steps?
Title: Re: PID controller for a wall following robot
Post by: waltr on March 31, 2010, 07:37:10 AM
number of steps per unit time equals velocity.