1.Why should I care?
A single passing run is a hopeful anecdote. A table of runs under different conditions, with the requirement next to each result, is evidence. This lesson turns your design into something another engineer would trust.
- ◇ Test a design against stated requirements and record the results in a table.
- ◇ Change one variable at a time and explain what the results show.
- ◇ Write a short design note that names one improvement and the evidence for it.
2.Predict
You want to know whether a wider hysteresis band saves energy. What should you change between runs?
Guess first. Being wrong here is how the surprise works.
3.Understand
A fair test
Decide your question ('How does the band width change switchings and energy?'), the variable you change (band width), the variables you hold (setpoint, outside temperature, noise) and what you measure (switchings, kWh, minutes outside the band). Write your prediction before running. Afterwards, compare results with the prediction honestly, including surprises.
Tables, then claims
Put every run in a table: settings, results and pass/fail against each requirement. Only make claims the table supports: 'Widening the band from 0.2 to 2 °C cut switchings from about N₁ to N₂ in this model.' Include at least one failure and what you changed afterwards: that is how the rubric's 'evidence' criterion is met.
Know the model's limits
The simulations are simplified teaching models: no sun, no wind gusts, one temperature for the whole greenhouse, perfect heaters. State those assumptions in your note. A design that only just passes in a simplified model needs a safety margin before anyone would trust it with real plants.
Explain it another way
Like testing a paper plane: throw it several times, change one fold, throw it several more times, and compare averages, not your single best throw.
Verification checks the design meets its requirements in the model; validation asks whether the model and requirements match reality. Repeating runs with different noise seeds or conditions tests robustness.
Engineers qualifying real controllers run them across a matrix of conditions (cold and warm, low and high load, sensor faults) and keep the results as a test report.
Worked example 1
Two runs: band 0.5 °C gave 140 switchings and 11.9 kWh; band 2 °C gave 30 switchings and 12.1 kWh. What can you claim?
In this model, widening the band cut switchings by about 79% (140 → 30) while energy barely changed (+0.2 kWh, about 2%). Claim only that, for these conditions, and check whether temperature stayed within the comfort band in both runs.
Common mix-ups
- If it passed once, it works.
✓ One run can be lucky. Repeat under different conditions and report all the results. - Simulation results are facts about the real world.
✓ They are facts about the model. Say which assumptions your conclusion depends on.
4.Discover
Plan four runs before touching anything: change only the hysteresis band (0.2, 1, 2 and 3 °C) with the setpoint at 18 °C, 5 °C outside and the noisy thermometer on. Record switchings, energy and minutes outside ±1 °C for each. Then repeat one run at −5 °C outside.
Loading the interactive…
Can't use the interactive? Read a description instead
The thermostat diagram reports, for each run, the temperature after 300 minutes, the number of heater switchings, the energy in kWh and the minutes spent more than 1 °C from the setpoint after the first hour. Changing only the hysteresis band between runs (with the setpoint, outside temperature and noise held fixed) shows switchings falling as the band widens while the temperature swing grows.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which plan tests whether the outside temperature affects energy use fairly?
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
A PWM output switches between 0 V and 3.3 V with a duty cycle of 85%. What is the average voltage, in volts?
Practice 3 · a fresh version every time
A traffic light cycles: state 0 red for 25 s, state 1 red-and-amber for 2 s, state 2 green for 20 s, state 3 amber for 3 s, then back to red. It enters red at t = 0 s. Which state number is showing at t = 58 s? (A state that starts at exactly t is already showing.)
Practice 4 · a fresh version every time
A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 25% per °C and the effort is limited to the range 0 to 100%. The setpoint is 22 °C and the temperature is 22 °C. What heater effort does it command, in %?
Practice 5 · a fresh version every time
You sample a 5 Hz signal at 20 Hz. How many samples land in each cycle of the signal?
Practice 6
Switchings fell from 140 to 35 when you widened the band. By what percentage did they fall?
Practice 7
Your controller passed all three simulated nights. Which claim is honest?
7.Apply it
Term project, part 2: run at least three simulated nights in Smart Greenhouse Level 3 (and the thermostat diagram if useful), record every run in a results table against your requirements, include at least one failure and what you changed, and write a one-page design note naming one improvement and the evidence for it.
8.Reflect
Concepts: Experimental design and test protocols · Open-loop and closed-loop control · Proportional control