next up previous contents
Next: From Continuous to Discrete Up: PID Loop Previous: PID Loop   Contents

The Theory

The drive system of a robot is control system. In order for this system to behave predictably, it should be a closed-loop control system. This means some feedback should be used to adjust the output to the motors. This section discusses the theory of a well-known method of closed loop control: PID (proportional integral and differential).

For any control, there is a set point. The set point is what is the feedback should read. Let us use $r(t)$ to represent the set point (reference) at time $t$. The actual feedback, $y(t)$, however, if very unlikely to be at $s(t)$. As a result, there is an error term, which is simply the difference of the two, $e(t)=s(t)-f(t)$.

Based on the error term, a control system adjusts the output to the system.

In continuous terms, the output of a control system, $k(t)$ is expressed as follows:


\begin{displaymath}
k(t)=K_{p}e(t)+K_{d}\frac{de(t)}{dt}+K_{i}\int{e(t)dt}
\end{displaymath} (9.1)



Tak Auyeung 2003-09-29