Skip to content
Tactiverge

Control systems

On–off control with hysteresis

Also called: bang-bang · thermostat · deadband · hysteresis

Definition

On–off control switches the actuator fully on or off; hysteresis uses two thresholds, one to switch on and a different one to switch off, so the output does not chatter around a single value.

Picture it

A fridge switches on at 5 °C and off at 3 °C. With a single 4 °C threshold, sensor noise would flick the compressor on and off many times a second. The gap trades a small temperature ripple for far fewer switching cycles.

The maths

if y < r − h/2: on
if y > r + h/2: off
otherwise: keep previous state
SI units used in this entry
QuantityUnitSymbol
temperaturekelvinK
ratiodimensionless1

Worked example

A greenhouse heater has setpoint 22 °C and a 2 °C hysteresis band. At what temperatures does it switch on and off? The heater is on and the air is 22.5 °C: what happens?

  1. On below 22 − 1 = 21 °C
  2. Off above 22 + 1 = 23 °C
  3. 22.5 °C is inside the band, so the heater stays on

AnswerOn at 21 °C, off at 23 °C; at 22.5 °C it stays on.

✓ The 2 numbers in this answer are recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: A wider band means fewer switches but a larger ripple; it is a trade-off.
  • Misconception: Hysteresis needs memory of the previous state; a simple if/else on one threshold does not have it.