← Teacher guide

Smart plant monitor

A Years 8–9 design project: a plant monitor with a soil sensor, an alarm at a threshold and a display, planned with a test table, prototyped on the board, built in Tinkercad and optionally on hardware, tested and evaluated against the brief.

Capstone projects · Years 8–9: sense and respond · about 180 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

About 3 to 4 lessons (around 180 minutes). Inquire 1 lesson part · Develop 1 lesson · Create 1–2 lessons · Test and evaluate 1 lesson

Before class

Builds on Arduino › A small system (the same alarm logic and boundary tests). Real soil sensors read differently in different soils: calibrate the threshold with real dry and wet soil, and say so in the evaluation. Resistive soil probes corrode if powered all the time; powering the sensor from a pin only while reading is a good extension.

If you assess with MYP Design, the steps line up with the criteria:

Running the lesson

  1. Inquire: ask which criterion will be hardest to test.
  2. Develop: no wiring until the test table is written.
  3. Evaluate: insist on a test result for every criterion.

The hard part (on purpose)

Students build first and plan never. Hold the test table as the ticket to start building.

When students get stuck

What you will seeA question to askThe fix
The alarm triggers at the wrong time.What does the sensor read in dry soil, and in wet?Print the readings and recalibrate the threshold.

Answers to the checks

  1. Inquire: the brief: Sort each line of the brief: a criterion (what it must do, which you can test) or a constraint (a limit you must work within)?
    Blinks the LED at a reading of 300 or below → Criterion; Stays off above 300 → Criterion; Shows the current reading → Criterion; Only parts from the kit → Constraint; Runs on 4 × AA or USB → Constraint; Fits in a pencil-case-sized box → Constraint
    Criteria are what you will test at the end; constraints decide what you are allowed to build with.
  2. Two ways to do it: Two ideas for showing the reading. A: an LCD on the box. B: the serial monitor, when someone plugs a laptop in. The club checks the plants twice a week, with no laptop. Which fits the brief and the client better?
    A: nobody plugs a laptop in to check the plants
    The brief allows either, but the client checks without a computer, so a reading on the box is the one they'll actually see.
  3. Your own two ideas: Now two ideas of your own. For each one, say which criterion in the brief it's strongest on and which it's weakest on. Then say which you'll build, and why.
    One way to write it: Idea 1: an LCD and the LED in a pencil case, on 4 × AA. Strongest on being checked without a computer. Weakest on the batteries: the LCD's backlight drains AAs in days. Idea 2: the LED only, with the reading on the serial monitor when someone plugs in. Strongest on battery life. Weakest on showing the reading, which the brief asks for. I'll build idea 1 with the backlight on only while a button is held, because it meets every criterion and the button fixes the battery.
  4. The test table: Which test table checks the threshold best?
    0 blink, 299 blink, 300 blink, 301 off, 1023 off
    Both sides of the threshold, the threshold itself, and the ends.
  5. Prototype the logic: Prototype the decision: write the sketch so all five tests pass.

    if (level <= 300) blink, else off: the logic is ready before any wiring.
  6. Another team's results: Another team's results: dry soil 180, blinking; wet soil 640, off; a reading of 300, off; 299, blinking. Which result doesn't match the brief?
    300: the brief says blink at 300 or below
    The brief says blink at 300 or below, so 300 should blink. Their code probably says level < 300 where it needs level <= 300.
  7. Fix and re-test: Pick one test that failed. Write what happened, what caused it, what you changed, and what the test showed when you ran it again.
    One way to write it: Test: a reading of exactly 300 (a damp cloth on the sensor). What happened: the LED stayed off. Cause: if (level < 300) leaves 300 out; I checked by printing the reading. Change: if (level <= 300). Re-test: 300 and 299 blink, 301 is off, and the dry and wet pots are still right.
  8. Which is evidence?: Which is the strongest evidence that the design meets a criterion?
    A planned test with its recorded result
    A planned test from your table sets the input the criterion is about and records what happened; that is evidence. Everything else is a feeling.

Stretch and support

Stretch: Add a second threshold (very dry: steady on) or a buzzer, and stop the alarm flickering near 300.

Support: A partly filled test table and the A small system sketch as a starting point.

Exit ticket

Name one criterion of your monitor and the test that shows whether it is met.

For example: blinks at 300 or below; test at readings 299, 300 and 301.

What each step is for

Where it leads

Other Years 8–9 projects: Parking assistant, Reaction game.

Sources