Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A heater uses two stored values. It switches on when the reading is below and it is off, and it switches off when the reading is above and it is on. At the start the heater is off. Ten readings, in , arrive in this order:
19, 17.5, 18.5, 21, 22.5, 20, 17, 19, 23 and 18.
How many times does the heater switch on? After how many of the ten readings is the heater on? Is it on or off at the end?
A control loop reads the sensor, compares the reading with the stored values, acts, and repeats for as long as the system runs. Feedback means that what the actuator does changes the next sensor reading. With two stored values, the actuator comes on below the low value and goes off above the high value; between them nothing changes.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. Trace the readings one at a time. Only a reading below can switch the heater on, and only a reading above can switch it off.
Step 1. The trace.
Step 2. Count. The heater switched on times. It was on after the 2nd, 3rd, 4th, 7th and 8th readings, which is readings.
Answer: times, on after readings, and off at the end.
Watch out. The last reading, , is equal to the low value, not below it.
Log in to join the discussion.
Loading…