Society of Robots - Robot Forum
Software => Software => Topic started by: arigid on October 28, 2011, 04:10:28 PM
-
Hey, I was working on a robot to follow a Line, However i thought of adding the PID Control to it, to make it go more smooth, Can anyone suggest on hold to Calculate the Kp,Kd,Ki Value for my Robot. Thanks!
-
The PID coefficients are usually determine by trial. Starting with them set to 1 or 0 then working on Kp then Kd then Ki. There are a number of references on going about this. One is in Wikipedia, others are found with Google and also have been several discussion on SoR that you can find with a search.
One thing that helps is being about to measure the control loop's response so that you know how much a change to a coefficient effects the loop. One way to do this is sample at regular time intervals the feed-back value and the output value of the PID control loop then send these out the serial port to a PC. On the PC have a program (can be a terminal program) that writes the values to a file or if you can write the program graph the data value. Or, graph the value written to the file in Excel.
-
It is nice to use PID but even i have no idea how to use it...!!