PID Controller

Electrical Engineering

How It Works

A Proportional-Integral-Derivative (PID) controller is the most ubiquitous feedback control algorithm employed in industrial automation and precision instrumentation. It continuously calculates an error value as the difference between a desired setpoint and a measured process variable, applying corrective action through three terms: proportional to the immediate error, proportional to the accumulated historical error (eliminating steady-state offset), and proportional to the instantaneous rate of error change (anticipating overshoot).

Governing Equation
$$ u(t) = K_p e(t) + K_i \int_0^t e(\tau) d\tau + K_d \frac{de(t)}{dt} $$