PID Controller Tuning Methods
PID controller theory, tuning rules including Ziegler-Nichols, and practical guidelines.
pidcontrollertuning
Overview
A PID controller continuously calculates an error value and applies a correction based on proportional (P), integral (I), and derivative (D) terms:
where:
- = error = setpoint − process variable
- = proportional gain
- = integral gain
- = derivative gain
Ziegler-Nichols Tuning (Open Loop)
Based on the process reaction curve with parameters: gain , dead time , time constant :
2 rows
type |
|---|
| P |
| PI |
Source: engineeringtoolbox.com
Ziegler-Nichols (Closed Loop / Ultimate Gain)
Using the ultimate gain and ultimate period :
| Controller | |||
|---|---|---|---|
| P | — | — | |
| PI | — | ||
| PID |
Effect of Each Term
| Term | Effect of Increasing | Side Effect |
|---|---|---|
| P (proportional) | Faster response, reduces steady-state error | May oscillate |
| I (integral) | Eliminates steady-state error | May cause overshoot, slow settling |
| D (derivative) | Reduces overshoot, dampens oscillations | Sensitive to noise |
Practical Tips
- Start with PI control (set ) for most processes
- Add D term only for slow processes with significant dead time
- Typical anti-windup: limit integrator output range
- Derivative filter: use with