The loop
A motor drives a conveyor belt, and we want it at r = 1.0 m/s, the setpoint. The belt is the plant; its speed y is the output. It starts at rest.
The motor turns a voltage u into push. Hold u steady and the belt settles at 2 m/s per volt, so 1.0 m/s needs 0.50 V, held for ever. Its model is G(s) = 10/((s+1)(s+5)), with G(0) = 2.
Proportional control sets the voltage in proportion to the error: u = Kp · e, where e = r − y. With Kp = 4 V per m/s and the belt at rest, e = 1.0, so the motor gets 4 V.
The offset
As the belt speeds up the error shrinks and so does the push. The belt peaks at 1.07 m/s, then settles at 0.89 m/s, not 1.0. The 0.11 m/s left over is the offset, or steady-state error.
To keep moving, the belt needs voltage all the time. A P controller only gives voltage when there is error: 0.44 V = 4 × 0.11. With zero error it would give 0 V and the belt would slow down. So some error must stay.
Solve the balance: e_ss = 1 / (1 + Kp·G(0)) = 1/(1 + 8) = 0.111 m/s. It is the step error from the lesson "Steady-state error and the final value theorem", with Kp·G(0) = 8 as the position constant.
Turning Kp
With Kp = 1 the push is gentle. The belt barely overshoots (2%) but stops at 0.67 m/s: an offset of 0.33 m/s, three times as large. A weak controller needs a big error to make its voltage.
With Kp = 20 the first push is 20 V. The offset shrinks to 0.024 m/s, but the belt shoots up to 1.47 m/s and rings before it settles. That overshoot is 51%.
Raising Kp trades offset for overshoot. The poles keep real part −3 but swing further from the real axis, so the damping falls. P control alone cannot give zero offset and a calm response together.
Loads and bias
Back to Kp = 4. At 2.5 s a box lands and drags on the belt. Speed sags, the error grows, and only then does the voltage rise, to 0.67 V. The belt settles at 0.83 m/s: offset 0.17 m/s.
Add a fixed 0.5 V: u = Kp·e + 0.5. Now the empty belt reaches 1.00 m/s exactly. When the box lands the offset returns (0.06 m/s). Integral action resets this bias automatically: next lesson.
What is happening
# step 1/11 · goal # about: Setpoint r, Belt (plant) setpoint r = 1.0 m/s output y = belt speed, 0 now plant motor + belt The whole loop is unity feedback: r → Σ → controller → motor → belt → sensor → Σ
The belt is an illustrative model, G(s) = 10/((s+1)(s+5)) with a load of 0.25 V from 2.5 s. Every curve and number in the figure is simulated from it (Runge-Kutta, 1 ms steps). The Python on each step is plain Python 3. It steps the belt forward every millisecond (Euler's method); the figure uses Runge-Kutta, and both agree to three decimal places.