Correct in proportion
When you park a bike next to a friend, you slow down as you get close. What rule is your brain using?
About 30 min · 3 goals · Checked by automated tests; not yet reviewed by an educator
1.Why should I care?
Instead of 'full on or off', a proportional controller pushes harder when it's far away and gently when it's close. It's smoother and faster than bang-bang, and it's the first part of the PID controllers inside drones, robot arms and lifts.
- ◇ Use proportional correction steps: move a fraction of the gap each time.
- ◇ Predict when correction steps glide in, overshoot or go unstable.
- ◇ Explain why a proportional heater settles a little short of its target.
2.Predict
A robot at 0 cm wants to reach 60 cm. Each step it moves half the remaining gap. Where is it after 2 steps?
Guess first. Being wrong here is how the surprise works.
3.Discover
Step through with k = 0.5. Then try k = 1, k = 1.5, k = 2 and k = 2.2. Describe what each one does in a few words.
Correct in proportion
A robot is at 0 cm and wants to stop at the target. Each step it measures the gap and moves a fraction k of it. Try k = 0.5, 1, 1.5, 2 and 2.2.
Bottom axis: step number. Height: robot position (cm).
Step 0: position 0 cm, gap 60 cm. Next move: 0.5 × 60 = 30 cm. Each step closes part of the gap, so the robot glides in smoothly and gets closer and closer.
Can't use the interactive? Read a description instead
The gap-closer can be replaced by this table, starting at 0 cm with target 60 cm. k = 0.5: 30, 45, 52.5, 56.3 cm (glides in). k = 1: 60 (straight there). k = 1.5: 90, 45, 67.5, 56.3 (overshoots, settles). k = 2: 120, 0, 120, 0 (bounces for ever). k = 2.2: 132, −26.4, 163.7 (grows: unstable).
4.Understand
Push in proportion to the gap
A proportional controller makes its correction a fixed fraction of the gap:
correction = k × gap
Far away, big gap, big push. Close by, small gap, gentle push. The number k is called the gain.
Too little, just right, too much
With k below 1, each step closes part of the gap: a smooth glide in. k = 1 jumps straight there (in a perfect world). k between 1 and 2 overshoots and wobbles, then settles. k = 2 bounces for ever. k above 2 wobbles bigger and bigger: unstable.
Settling a little short
A proportional heater only heats when the room is too cold. Near the target the gap is small, so the heat is small, and it can only balance the heat leaking out if the room stays a little below target. Higher gain shrinks this offset; later levels add a trick (integral action) to remove it.
Explain it another way
Pouring a drink: you pour fast when the glass is empty and slow right down near the top. That's proportional control.
u = Kp · e. In the simple step model, the new gap is (1 − k) × the old gap. If |1 − k| < 1 (0 < k < 2) the gap shrinks to zero; otherwise it doesn't. Real systems add delay and inertia, which make overshoot appear at much lower gains.
Gap after n steps = (1 − k)ⁿ × starting gap. With a 60 cm gap and k = 0.5: 30, 15, 7.5 cm. With k = 1.5: −30, +15, −7.5 (overshoot, flipping sides). With k = 2.2: −72, +86.4 (growing).
A lift slows smoothly as it approaches a floor because its controller pushes in proportion to the distance left. Engineers tune the gain so passengers don't feel a jolt or bounce at the end.
Worked example 1
A robot is at 20 cm, target 100 cm, k = 0.25. Where is it after one step? After two?
Step 1: gap = 80, move 0.25 × 80 = 20, now at 40 cm. Step 2: gap = 60, move 15, now at 55 cm. Each move is a quarter of what's left.
Common mix-ups
- A bigger gain is always better: it gets there faster.
✓ Too much gain overshoots, wobbles or goes unstable. - Proportional control always reaches the exact target.
✓ When something keeps pulling it away (like heat leaking out), it settles a little short.
5.Practice
Practice, not a test. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
A robot is at 0 cm and wants to stop at 80 cm. Each step it moves 0.5 of the remaining gap. Where is it after one step, in cm?
Practice 2 · a fresh version every time
A robot is at 20 cm and wants to stop at 40 cm. Each step it moves 0.25 of the remaining gap. Where is it after one step, in cm?
Practice 3
Which value of k makes the robot overshoot the target and then settle?
Practice 4
A proportional heater targets 18 °C but the room settles at 16.6 °C. Why?
Practice 5
A robot at 0 cm targets 80 cm with k = 0.5. Where is it after three steps, in cm?
6.Apply it
Open the thermostat diagram, switch to Proportional and try Kp from 10% to 300% per °C. Record where the room settles for three values. Then explain in two sentences why it never quite reaches 18 °C, and what happens to the offset as Kp rises.
7.Reflect
Concepts: Proportional control · Open-loop and closed-loop control