Author Topic: PID controller for a wall following robot  (Read 2853 times)

0 Members and 1 Guest are viewing this topic.

Offline kieraonTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
PID controller for a wall following robot
« 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?

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 98
Re: PID controller for a wall following robot
« Reply #1 on: March 31, 2010, 07:37:10 AM »
number of steps per unit time equals velocity.

 


Get Your Ad Here