Heating switch hysteresis and state transitions

Draw heating hysteresis in VectorPaint: two thresholds and the previous state

Draw an idealised two-threshold heating state diagram, checking equality signs, arrows and both possibilities at an intermediate temperature.

English translation of the Chinese original, translated on . Original publication dates, attribution, code and version notes are retained.

Draw an idealised heating-control state diagram by hand in VectorPaint. University of South Florida course material illustrates hysteresis using different thresholds: heat turns on at or below 18°C and off at or above 22°C. This is a teaching model, not setup instructions for a particular thermostat or home-heating advice.

Define both states and rules

Let state A mean “heating off” and B mean “heating on.” Assume measured temperature T ≤ 18°C switches to B and T ≥ 22°C switches to A; between 18°C and 22°C, retain the previous state. These thresholds are assumptions from the teaching example, not claimed device defaults. Real equipment may use delays, experience sensor error and apply other control strategies. Write A and B on scratch paper and, for each reading, record the state before and after the rule is applied. This model includes heating on and off only; it does not add cooling or an automatic changeover mode. If the initial state is unspecified and the first reading falls inside the band, keep both on and off as possibilities instead of inventing a starting state. Separate this unknown case from the two traces with explicit initial states. Retain the units and rules next to the table so Fahrenheit readings or another device’s thresholds are not confused with this Celsius example.

Create canvas and objects

Create a landscape VectorPaint canvas, for example 1800 × 1200 pixels, and save an editable original. Use two rounded rectangles or ellipses for states, A at left and B at right. Leave room for arrows above and below and a check table to the right. Keep state boxes, lines, labels and table individually adjustable as objects or layers. Draw manually with visible shape, line and text tools; do not assume automatic state-machine generation. Place the two boxes and four labels provisionally, then check that there is room for arrowheads at the box edges. If the plot is crowded, widen the canvas or move the check table rather than deleting units or changing thresholds.

Connect the start arrow

Lead a right-pointing arrow from above A to B and label it “T ≤ 18°C: turn heating on.” Place its head near B and tail near A; write “heating off” inside A rather than crowding the arrow condition into the box. Exactly 18°C is included, so do not replace ≤ with <. If the system is already in B at the lower threshold, it remains in B. The A-to-B arrow highlights the off-to-on transition; add “already on stays on” nearby instead of inventing a reverse arrow to the off box.

Connect the stop arrow

Lead another arrow below the boxes from B back to A, pointing left. Label it “T ≥ 22°C: turn heating off.” Separate it from the upper arrow so directions remain readable in grayscale. Exactly 22°C is included. The arrows represent state changes when conditions are met, not temperature moving in the direction of the drawn arrow. Different line styles and a small gap around the tails can keep upper and lower connections distinct. Trace the lower line from B to A, then read its condition, to catch a misplaced arrowhead or label.

Explain the intermediate band

Beside each box write “18°C < T < 22°C: retain this state.” At the same 20°C, an already-on system stays on and an already-off system stays off. Current temperature alone therefore does not uniquely determine the output in this model. Do not write the intermediate band as if both switching conditions were true simultaneously. Add “state before reading” and “state after reading” columns: at 20°C one row is off-to-off and another on-to-on. The two different histories demonstrate the rule more precisely than simply saying the state is unknown.

Trace falling readings

Assume the initial state is A, off, and inspect 23°C, 20°C and 18°C in sequence. At 23°C it remains off; at 20°C it remains off; at 18°C it changes to on. Record all three in the check table with the previous state. Do not label 20°C as automatically on. This checks rules at discrete readings, without predicting how fast the room changes temperature or how long heating takes. As an additional boundary check, read 18.1°C while previously off: it remains in the holding band; exactly 18°C meets the example’s start condition. This compares paper rules, not a recommendation to change room temperature.

Trace rising readings

Start with B already on and inspect 18°C, 20°C and 22°C. It remains on at 18°C and 20°C, then turns off at 22°C. Put the two 20°C outcomes side by side to show state memory in this model: different histories produce different outputs at the same temperature, not contradictory data. Also compare 21.9°C and 22°C while already on: the first remains on and the second stops under this example. Keep decimal points and Celsius signs legible; enlarge the type if needed instead of removing the precision.

Troubleshoot and export

Check both arrow directions, inequality and equality signs, and both examples of retaining state at 20°C. If both arrows point to B, fix the lines rather than only relabelling them. Keep the editable original and export a separate image or vector file using options visible in the installed version. Reopen it to check thresholds, units and notes are not clipped. No physical-device app test, thermostat measurement or on-site commissioning is claimed. Before export, hide colour fills temporarily and use labels, arrows and line styles alone to trace both transitions. Restore fills and check contrast. Retain the table so all examples can be rechecked if the thresholds change later.

Related guides and sources

Decision flowcharts; basic shapes. Methods: University of South Florida: discrete dynamics and thermostat state machine and Brown University: sensing and control. App information: Apple lookup.