TactivergeLite

Lite / Building Machines That Respond / Week 27

Project: test it, show the evidence

Your greenhouse passed once. Will it pass on a colder night, with a different noise pattern, or with a different setpoint?

About 45 min · 3 goals · Checked by automated tests · Full interactive version

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.

Predict

You want to know whether a wider hysteresis band saves energy. What should you change between runs?

  1. The band, the setpoint and the outside temperature all at once
  2. Only the band, keeping everything else the same
  3. Nothing: one run is enough
Guess first, then reveal

Change **one** variable and hold the others fixed, so any difference in the results can only come from that change. Then repeat with a second condition to check the effect is not a fluke.

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.

What the interactive shows (text version)

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.

You can also open the interactive on the full site when you have a faster connection.

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

Intuitive

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.

Technical

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.

Applied

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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which plan tests whether the outside temperature affects energy use fairly?

V

state

%

samples

%

Practice 7. Your controller passed all three simulated nights. Which claim is honest?

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.

Reflect

What is one thing your evidence cannot tell you about a real greenhouse, and how would you find out?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Project: design a greenhouse that respondsWhere is that hole? Coordinates and Pythagoras →