D3 · Lesson 1 · Open-loop and closed-loop control
Controlling a system by a preset command against controlling it by measuring the result and correcting, a car's cruise control on a hill as the example, how proportional feedback shrinks the error from a disturbance and speeds up the response, and the steady error it leaves
A toaster is open loop: it runs for a set time whether the bread is pale or burnt. A thermostat is closed loop: it measures the room and switches the furnace on and off to hold the temperature it was asked for. The difference matters most when something unexpected happens. A car's cruise control that simply held the throttle where it was set would slow down on every hill; one that measures the speed and opens the throttle as the car slows holds the speed it was asked for. Measuring the result and correcting for the difference is called feedback, and it's the idea behind every control system.
- A 1500 kg car cruising at 25 m/s meets a hill at t = 10 s whose slope adds a backward force . Its drag is modeled as a linear 50 N·s/m.
- Open loop (dashed), the throttle force stays fixed and the car slows until drag drops enough to balance the hill.
- Closed loop, the controller adds force in proportion to the speed error, . A larger gain K leaves less error and recovers faster.
Predict
The car meets a 2% grade, a backward force of 294 N. Open loop, it settles 5.9 m/s slower. With proportional feedback of K = 500 N per m/s, how much speed does it lose?
In steady state the extra throttle, , plus the drop in drag, , must balance the hill: = 294/550 = 0.54 m/s, eleven times less than open loop. It also recovers eleven times faster, with a time constant of 1500/550 = 2.7 s against 30 s. Proportional control always leaves some error, since it needs an error to make the extra force; lesson 3 removes it.
Name it
Open loop and closed loop
- Open loop: the controller sends a command computed in advance from a model. It's simple and can't go unstable, but it can't correct for disturbances or model errors.
- Closed loop: a sensor measures the output, the controller compares it with the reference (the setpoint) and acts on the error .
The cruise control
A car of mass m with linearized drag b obeys . With proportional feedback, , so a disturbance leaves a steady error and a time constant
against and open loop. Feedback divides both by , the loop gain plus one.
The price
Feedback needs a sensor, can amplify sensor noise, and can make a system oscillate or go unstable if the gain is too high and the response delayed (lessons 5 to 7).
Worked example
How fast has the open-loop car slowed 10 s after meeting the 2% hill?
Show the solution
- Time constant.
- Speed lost after 10 s.
- Compare with feedback. The closed-loop car with K = 500 has already settled to its 0.54 m/s loss by then.
Answer after 10 s the open-loop car is 1.67 m/s slower.
Worked example
What gain would hold the speed loss on the 2% hill to 0.2 m/s?
Show the solution
- Total damping needed.
- Gain. Take away the car's own b = 50:
Answer a gain of 1422 N·s/m holds the loss to 0.2 m/s.
Worked example
The 1500 kg car's engine can add at most 2000 N beyond what level cruising needs. What happens on a 10% grade and on a 15% grade, whatever the gain?
Show the solution
- Force at 10%. The grade's force is about , 1471 N at 10%. That's within reach, so feedback holds the speed as before.
- Force at 15%. It's 2207 N, more than the engine can add, so the throttle saturates.
- Speed lost. The car slows until drag falls by the missing 207 N: slower.
- The limit. No gain helps once the actuator is at its limit.
Answer on a 10% grade feedback holds the speed; on a 15% grade the throttle saturates and the car ends up 4.1 m/s slower, whatever the gain.
Check
A 1500 kg car with linear drag 60 N·s/m meets a 1% grade with its throttle fixed. How much speed does it lose in steady state? (Take the hill force as mg times the grade.)
Write units the way you normally would: 1.5 m/s, 1500 mm/s and 0.0015 km/s are the same answer.
Check
The same 1500 kg car (60 N·s/m of drag, 1% grade) has proportional cruise control with K = 2000 N·s/m. How much speed does it lose?
Write units the way you normally would: 1.5 m/s, 1500 mm/s and 0.0015 km/s are the same answer.
Check
What's the closed-loop time constant of a 1500 kg car with 40 N·s/m of drag and a proportional gain of 2000 N·s/m?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
By what factor does proportional feedback of 200 N·s/m shrink a car's disturbance error, if its drag is 50 N·s/m?
Check
A 1500 kg car with 40 N·s/m of drag and proportional cruise gain 800 N·s/m meets a 6% grade.
(a)
How much speed does it lose in steady state?
Write units the way you normally would: 1.5 m/s, 1500 mm/s and 0.0015 km/s are the same answer.
(b)
What is the closed-loop time constant?
Check
A 1200 kg car's engine can add at most 1500 N. It meets a 20% grade.
(a)
What force does the grade demand?
Write units the way you normally would: 1.5 N, 1500 mN and 0.0015 kN are the same answer.
(b)
Can the cruise control hold speed (1 for yes)?
Explain why
Why does closed-loop control handle disturbances that open-loop control can't?
An open-loop controller decides its command in advance from a model of the system, so anything the model leaves out, such as a hill, a gust of wind or a heavier load, changes the output with nothing to notice or correct it. A closed-loop controller measures the output and acts on the difference between what was asked for and what happened, so any disturbance that moves the output also produces an error that drives a correcting action. The higher the gain, the smaller the error needed to produce a given correction, so the system tracks its setpoint more closely and recovers faster, at the cost of needing a sensor and risking instability if the gain is too high.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.