Proportional control reacts to what is wrong right now.
The proportional term scales with the present error. If the output is far from the setpoint, the correction is large. If the output is close, the correction is small. This is intuitive and often effective, but P-only control usually leaves a steady-state offset.
Large \(K_p\) gives stronger response but can also create overshoot and oscillation.
The integral term remembers old mistakes.
The integral term accumulates error over time. If a small offset persists, the integral grows until the controller pushes the system closer to the setpoint. This eliminates steady-state error, but too much integral action can cause slow oscillation and windup.
The integral term is powerful because it refuses to forget persistent error. Unfortunately, it sometimes refuses to forget too much.
The derivative term tries to brake before the crash.
The derivative term responds to how quickly the error is changing. It can reduce overshoot by damping the response. But because differentiation amplifies high-frequency noise, derivative control must be used carefully.
Derivative action is useful when the measurement is clean enough not to turn every tiny noise spike into a dramatic correction.
Tuning is where polite equations meet rude hardware.
The full PID controller combines all three terms. Increasing gains can improve response, but also risks overshoot, oscillation, actuator saturation, and instability. Good tuning balances speed, damping, and robustness.
The output \(u(t)\) is the sum of present, accumulated, and predictive corrections.
Real PID is discrete, noisy, and bounded.
In real systems the controller runs at discrete time steps. Sensors are noisy. Actuators saturate. Delays exist. Anti-windup, filtering, output clamps, and safe limits matter as much as the ideal equation.
\(T_s\) is the sampling interval. In software, this is the version that actually gets to meet reality.
PID is simple because it has to be.
Its strength is not theoretical perfection. Its strength is practical clarity: respond to the error, remember persistent bias, and damp fast change. That is why PID remains one of the most useful algorithms in engineering.