← Capstone projects

Smart plant monitor

Design a monitor that warns when a pot plant needs water: a soil moisture sensor, an alarm, and a display of the reading, tested at its threshold.

The garden club loses plants every holiday. Can a microcontroller tell them which pot is dry before it is too late?

Client: the school garden club. Context: pot plants in a classroom, checked twice a week.

Brief: a soil moisture sensor on A0 reads low when the soil is dry. The monitor must blink an LED when the reading is 300 or below, stay off otherwise, and show the reading (LCD or serial monitor). It must use only parts from the kit (or Tinkercad's parts), run on 4 × AA or USB, and fit in a box no bigger than a pencil case.

How this lesson works: Inquire, Develop, Create, Test, Evaluate
InquireRead the brief: who it is for, what it must do (criteria) and the limits (constraints).

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
Stays off above 300
Shows the current reading
Only parts from the kit
Runs on 4 × AA or USB
Fits in a pencil-case-sized box

DevelopPlan before you build: parts, circuit, code and the tests you will run.

Develop: two ideas first

Before you plan one design, look at two. Most design choices are a trade: one idea is better on one criterion and worse on another, and the brief tells you which matters more.

Make them really different, not the same idea with one part changed. A quick sketch of each in your book helps.

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?

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.

DevelopPlan before you build: parts, circuit, code and the tests you will run.

Develop: plan before you build

Try it yourselfYour edits are saved in this browser.
Which test table checks the threshold best?

Prototype the decision: write the sketch so all five tests pass.

Use the board. This ticks when you get there.

CreateBuild it, first in the simulator, then for real if you have the kit. Expect a few tries; that is normal.

Create: build it

TestRun your tests and record what happened, including what failed.

Test: run your table

Before you run yours, read someone else's. Check each result against the brief, not against what looks close enough.

If everything passed first time, pick the test that came closest to failing and write about that instead.

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?

Pick one test that failed. Write what happened, what caused it, what you changed, and what the test showed when you ran it again.

EvaluateJudge it against each criterion, and say what you would change.

Evaluate: Against the brief

Which is the strongest evidence that the design meets a criterion?

Now you can
Next lesson2. Parking assistantDesign a distance warning: an ultrasonic sensor and a buzzer or LED that warns sooner and harder as something gets closer, tested at each band edge.
For teachers

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. About 180 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

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

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.

Where it leads

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

Sources

What each step is for