Proportional
Produces an output proportional to the current error. A larger gain reacts faster but can overshoot and oscillate around the setpoint. Alone, it never fully eliminates steady-state error.
A PID controller is the most widely used feedback control mechanism in industry. It continuously calculates an error value — the difference between a desired setpoint and a measured process variable — and applies a correction based on three terms.
Produces an output proportional to the current error. A larger gain reacts faster but can overshoot and oscillate around the setpoint. Alone, it never fully eliminates steady-state error.
Accumulates past error over time, eliminating residual steady-state error. Too much integral action makes the system sluggish and prone to overshoot and windup.
Predicts future error based on its rate of change, adding damping and reducing overshoot. Sensitive to noise, so it is often filtered or used sparingly.
The three terms combine to balance responsiveness, accuracy, and stability. Proportional gives speed, integral removes offset, and derivative adds damping. Tuning means finding the right trade-off for your system.
PID controllers govern cruise control, drone stabilization, 3D printer hotends, HVAC systems, chemical reactors, and motor speed control — anywhere a system must hold a target value.
Ready to see it in action?
Adjust the gains and setpoint. The simulation restarts from t = 0 whenever you change a value.