Feedback
On this page
In a shower you do not set the tap once and leave it. You feel the water, compare it with what you want, and turn the tap a little, again and again. Feedback is that loop done by a machine: measure the result, compare it with what was wanted, and correct.
See it
A timer runs the compressor of a cold room for 6.7 minutes in every 26.7 minutes. On a normal day this holds the room between 3 °C and 5 °C. At minute 40 the door comes into heavy use, and heat enters twice as fast. Where is the room at minute 120?
Until minute 40 the room warms at 0.10 °C a minute when the compressor is off, and both controllers hold it. Then the heat entering changes to the value on the slider. The timer repeats its plan. The thermostat switches on at 5 °C and off at 3 °C, so it runs the compressor for as long as the room needs.
The idea
A controller that follows a plan and never looks at the result is an open loop. A timer is an open loop. It is correct for as long as nothing changes.
A closed loop measures the result and sends it back to the controller. The value that is wanted is the setpoint. The difference between the setpoint and the measurement is the error, and the controller acts to make the error smaller.
e is the error, r is the setpoint, y is the measured value
Anything else that changes the result is a disturbance: an open door, a hot afternoon, more taps open on a water main. A closed loop does not need to know the cause. It sees the error and corrects it.
One worked number
A running compressor can cool the room air at 0.40 °C a minute. Heat from an open door warms the air at 0.20 °C a minute. A timer runs the compressor for 6.67 minutes, then rests it for 20 minutes. How much does the room change in one cycle? What would a thermostat that switches at 5 °C and 3 °C do?
Show the worked solution, 3 steps
- Compressor on
The room cools at 0.40 − 0.20 = 0.20 °C a minute. In 6.67 minutes it falls by 0.20 × 6.67 = 1.33 °C.
- Compressor off
The room warms by 0.20 × 20 = 4.0 °C. Each cycle of 26.7 minutes ends 4.0 − 1.33 = 2.67 °C warmer, which is 6 °C in an hour.
- The thermostat
It runs the compressor from 5 °C down to 3 °C, which takes 2 ÷ 0.20 = 10 minutes. The room warms back in 10 minutes. The compressor runs 50% of the time and the room stays in the band. Check both in the figure.
The mistake to avoid
A loop also trusts its sensor completely. It holds the reading at the setpoint, not the true value. The lesson on feedback, open loop and closed loop shows the parts of a loop one by one.
Check yourself
A thermostat is set to 4 °C. Its sensor is faulty and reads 1 °C lower than the true temperature. Where does the loop hold the room?
A cold room is at 9 °C with its setpoint at 4 °C. The compressor has run without stopping for six hours. A colleague wants to change the controller settings. Is that the right step?
A pump holds 4.0 bar at 60% speed. In the morning many taps open, and at fixed speed the pressure would fall by 0.6 bar. A controller with a pressure sensor raises the speed to 66%, and the pressure returns to 4.0 bar. How did the controller know how many taps were open?
Where you meet it
- A cold room thermostatIt measures the air and switches the compressor, so the room holds on a hot day and on a cool one.
- A booster pump with a driveA pressure sensor on the outlet lets the pump speed follow the demand of the building.
- A generatorIts governor measures the speed of the engine and adds fuel when load is switched on.
- Open loop: act on a plan. Closed loop: measure the result, compare, correct.
- Error = setpoint − measurement. The correction always pushes against the error.
- A closed loop holds its setpoint against disturbances it knows nothing about.
- It cannot go past the limit of its machine, and it believes its sensor.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.