TactivergeLite

Lite / Engineering Complex Systems / Week 16

Why P control never quite arrives

A cruise control set to 100 km/h settles at 96 km/h on a hill and stays there. Is it broken?

About 30 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Proportional control is the first controller most engineers build, and its leftover error is the first surprise they meet. Understanding exactly where it comes from tells you when it matters and what removes it.

Predict

K = 1, Kp = 9, set point 10. Where does the output settle?

  1. 10
  2. 9
  3. 1
  4. It oscillates
Guess first, then reveal

y∞ = 10 × 9/10 = 9. The error of 1 is exactly what is needed: u = Kp × 1 = 9, and K·u = 9 holds the output at 9.

Discover

Set K = 1 and Kp = 3, then read the steady-state error. Increase Kp to 9, then 29. Write e∞ each time and check it against r/(1 + KKp). What would it take to make the error zero?

What the interactive shows (text version)

The P-control explorer shows the closed-loop response settling below the set point. With loop gain 3 it settles at 0.75 (25 % error); with 9 at 0.9; with 29 at about 0.97. The error shrinks with gain but never reaches zero.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Notice how the closed loop's behaviour differs from the plant's own, and what the speaker says feedback costs.

A clear whiteboard explanation of why feeding the measured result back into the controller beats acting from a plan alone.

“Control Systems Lectures - Closed Loop Control” by Brian Douglas (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Error is the fuel

A P controller's command is proportional to the error. To hold a heater on, or a motor pushing uphill, it needs a steady command, so it needs a steady error. The loop settles at the point where the error is just big enough to produce the command that balances the plant.

The formula

For a plant with static gain K: e∞ = r/(1 + K·Kp). Loop gain KKp = 9 leaves 10 % error; 99 leaves 1 %. Raising the gain helps, but in real systems high gain amplifies noise, saturates actuators and, with any delay, threatens stability.

Disturbances too

A constant load (a hill, a heavier passenger, a draught) acts like an extra input. P control fights it but only by holding an error: the load's effect is divided by 1 + KKp, not removed. That is the lift's levelling error with a full cabin under P control.

Explain it another way

Intuitive

A tired person holding a door against the wind: they only push back once the door has moved, and they need it to stay a little open to keep pushing.

Technical

Type-0 loop: plant has no integrator, so the position error constant is Kpos = K·Kp and e∞ = r/(1 + Kpos). Adding an integrator (type 1) makes e∞ = 0 for steps.

Mathematical

K = 2, Kp = 4, r = 10: e∞ = 10/(1 + 8) = 1.11. To get under 1 % of r you need 1 + KKp > 100, i.e. Kp > 49.5.

Applied

Cruise controls, thermostats and lift levelling all add integral action precisely to remove this error. The Elevator build's Level 4 asks you to calculate the P-only error for a full cabin before fixing it.

Derivation: Steady-state error of P control
  1. Plant τ·dy/dt + y = K·u. Controller u = Kp·e with e = r − y.

  2. At steady state nothing changes, so dy/dt = 0 and y∞ = K·u∞ = K·Kp·(r − y∞).

  3. Solve for y∞: y∞·(1 + K·Kp) = K·Kp·r, so y∞ = r·K·Kp/(1 + K·Kp).

  4. Error e∞ = r − y∞ = r/(1 + K·Kp). It shrinks as K·Kp grows but is never zero for finite gain.

  5. With a constant input disturbance d (u + d enters the plant), y∞ = (K·Kp·r + K·d)/(1 + K·Kp): the disturbance also leaves an error of −K·d/(1 + K·Kp).

Worked example 1

A heater loop has K = 0.5 °C per % power and Kp = 18 %/°C. Set point 60 °C above ambient. Steady error?

KKp = 9. e∞ = 60/10 = 6 °C. It settles at 54 °C above ambient.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 4. Why can't a P controller hold a heater at exactly the set point?
Practice 5. A constant load pushes the lift cabin down. Under P control, the levelling error is…

Apply it

Calculate how far below the floor a full cabin settles in the Elevator under P-only control with the build's numbers, then check your answer against the simulator.

Reflect

When might a small steady-state error be perfectly acceptable?

Write your answer on paper or in your own notes. Lite never stores what you write.

← When a computer makes a stable loop unstableFeedback makes it faster →