From ControlTheoryPro.com

Contents 
1 Introduction to PID Control
A ProportionalIntegralDerivative controller (PID controller) is a generic controller widely used in industrial control systems. The PID control equation involves three separate parameters; the Proportional, the Integral and Derivative terms. The Proportional term responds instaneously to the current error (providing instaneous response). The Integral term responds to the accumulation of errors (providing a slow response that drives the steadystate error towards 0). And the Derivative term responds to the rate at which the error is changing (providing some anticipatory response). Their respective weighting determines the controls response.
1.1 Proportional Action^{[1]}
Proportional action provides an instantaneous response to the control error. This is useful for improving the response of a stable system but cannot control an unstable system by itself. Additionally, the gain is the same for all frequencies leaving the system with a nonzero steadystate error.
1.2 Integral Action^{[2]}
Integral action drives the steadystate error towards 0 but slows the response since the error must accumulate before a significant response is output from the controler. Since an integrator introduces a system pole at the origin, an integrator can be detrimental to loop stability. Only controllers with integrators can windup where, through actuator saturation, the loop is unable to comply with the control command and the error builds until the situation is corrected.
1.3 Derivative Action^{[3]}
Derivative action acts on the derivative or rate of change of the control error. This provides a fast response, as opposed to the integral action, but cannot accomodate constant errors (i.e. the derivative of a constant, nonzero error is 0). Derivatives have a phase of +90 degrees leading to an anticipatory or predictive repsonse. However, derivative control will produce large control signals in response to high frequency control errors such as set point changes (step command) and measurement noise.
In order to use derivative control the transfer functions must be proper. This often requires a pole to added to the controller (this pole is not present in the equations below).
2 PID Control
ProportionalIntegralDerivative or PID control combines proportional control, integral control, and derivative control in parallel.
PID^{[4]} 
where
 is the PID control gain,
 is a constant included for more flexibility,
 is the integral gain, and
 is the derivative gain.
From this generic form we can do the following:
 set and Eqn. PID becomes equal to Eqn. PI
 set and Eqn. PID becomes equal to Eqn. PD
 set and Eqn. PID becomes an integralderivative controller
 set and Eqn. PID becomes equal to Eqn. D
 set and Eqn. PID becomes equal to Eqn. I
2.1 Alternative forms of PID Control
Standard form similar to Eqn. PID except that a pole has been added to the derivative action to ensure a proper transfer function.
PID Alt 1^{[5]} 
Note: Typically
Series Form
PID Alt 2  Series Form^{[6]} 
Parallel Form
PID Alt 3  Parallel Form^{[7]} 
3 Example: PID Control design using Pole Placement
Let's assume a 2^{nd} order system of with the following form
Generic 2^{nd} Order System 
 where
 is the system gain
 is the system's natural frequency
 is the system's damping ratio.
Let's assume we have a PID controller of form
PID^{[8]} 
Roll inside the parentheses and add a factor to denominator of the integrator
Do a little algebra...
Finally, rearrange
The characteristic equation of this system is
From the order of we know we need 3 stable closed loop poles so the form of the desired characteristic equation is
Therefore
Result  









Once the desired closed loop poles are determined then and can be determined. Algebra does the rest.
In the [Helicopter Hover Examplehovering helicopter example] the desired closed loop poles are determined by deciding what a reasonable overshoot and rise time would be. This allowed for the determination of a desired and . From those a standard 2^{nd} order system was formed. Since 3 poles were required, just as in this case, a 3^{rd} pole was placed at an arbitrarily high frequency. The desired chracteristic equation from that became
where
 is our arbitrarily high 3^{rd} pole.
The addition of the pole at required that a prefilter be included to reduce overshoot. That prefilter was
4 Empirical Tuning^{[9]}
For open loop stable plants the following procedure may be used (these steps are quotes, I've added links and changed the table number only)
 Set the plant under proportional control, with a very small gain.
 Increase the gain until the loop starts oscillating. Note that linear oscillation is required and that it should be detected at the controller output.
 Record the controller critical gain and the oscillation period of the controller output, .
 Adjust the controller parameters according Table 2; there is some controversy regarding the PID parameterization for which the ZN method was developed, but the version described here is, to the best knowledge of the authors, applicable to the parameterization of (6.2.4).


 
 




 




Eqn. 6.2.4^{[10]} 
Note: Typically
The parameters in Table 2 come from Zieglers and Nichols whose goal was to acquire an underdamped response to a step input for plants of the form
5 See Also
6 References
 Goodwin, G. C., Graebe, S. F., and Salgado, M. E. 2000 Control System Design. 1st. Prentice Hall PTR. ISBN 0139586539
 Franklin, G. F., EmamiNaeini, A., and Powell, J. D. 1993 Feedback Control of Dynamic Systems. 3rd. AddisonWesley Longman Publishing Co., Inc. ISBN 0201527472
6.1 Notes
 ↑ Goodwin et all, pg. 160
 ↑ Goodwin et all, pg. 161
 ↑ Goodwin et all, pg. 161
 ↑ Franklin et all, pg. 185, Eqn. 4.31
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.4
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.5
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.6
 ↑ Franklin et all, pg. 185, Eqn. 4.31
 ↑ Goodwin et all, pp. 162166
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.4