Proportional-Integral-Derivative (PID) control is a ubiquitous feedback control algorithm that calculates an error value as the difference between a desired setpoint and a measured process variable and applies a correction based on proportional, integral, and derivative terms. The proportional term provides an immediate correction proportional to the current error, the integral term accumulates past errors to eliminate steady-state offset, and the derivative term predicts future error based on its rate of change to dampen oscillations. This combination allows a PID controller to drive a system's output to match its target with stability and precision.




