Behind the science
The PID command is u=Kₚe+Kᵢ∫e dt+K𝒹 de/dt. A damped, spring-like plant accelerates in response to the control input. Increasing proportional gain can speed response, integral action removes offsets, and derivative feedback damps motion. Saturation and integral anti-windup are included.