---
title: "Parking assistant"
subtitle: "Capstone projects · Years 8–9: sense and respond · Lesson 2"
---

# Parking assistant

**Name:** {{field-24}} **Date:** {{field-15}} **Class:** {{field-15}}

> **Key question:** Reversing cars beep faster as they get closer to a wall. Can you build one, and prove it warns at the right distances?


:::teacher-note

**In one sentence:** A Years 8–9 design project: a parking assistant with an ultrasonic sensor and three warning bands, planned with band-edge tests, prototyped on the board, built in Tinkercad and optionally on hardware, tested with a ruler and evaluated.

**Students should be able to say:** I can plan tests for every edge of a set of bands. I can read a distance sensor and act on it. I can evaluate my design against each criterion with evidence.

**Width:** the unmarked parts are the floor every student does (predict, run, investigate and make). Typical adds the modify practice; wider adds the real-world contexts. They add contexts, not difficulty. Students work in the online tutorial alongside this sheet.

:::


## Inquire: the brief


:::keep-together

**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)?**

Groups: Criterion, Constraint

- Off over 100 cm: {{field-15}}
- Blinks or beeps from 30 to 100 cm: {{field-15}}
- Steady under 30 cm: {{field-15}}
- HC-SR04 sensor and a buzzer or LED from the kit: {{field-15}}
- USB power: {{field-15}}

:::


:::teacher-note

**Answer:** Off over 100 cm → Criterion; Blinks or beeps from 30 to 100 cm → Criterion; Steady under 30 cm → Criterion; HC-SR04 sensor and a buzzer or LED from the kit → Constraint; USB power → Constraint

Criteria are what you will test at the end; constraints decide what you are allowed to build with.

:::


## Develop: two ideas first


:::keep-together

### Two ways to do it

**Two ideas for the beeping. A: one steady beep rate from 30 to 100 cm. B: beeping that speeds up as the car gets closer. B is nicer to use. Does the brief ask for it?**

☐ It doesn't matter what the brief says if the family likes it

☐ No: it's extra, and it still has to pass the brief's tests at 30 and 100 cm

☐ Yes: beeping means it has to speed up

:::


:::teacher-note

**Answer:** No: it's extra, and it still has to pass the brief's tests at 30 and 100 cm

Extras are welcome, but they don't replace the criteria: whatever the beep does, it still has to start at exactly 100 cm and turn steady below 30.

:::


:::keep-together

### 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.**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** One way to write it: Idea 1: one beep rate from 30 to 100 cm. Strongest on the tests: three bands with clear edges. Weakest on use: it doesn't tell you how close you're getting inside the band. Idea 2: the beep speeds up as the distance drops. Strongest on use. Weakest on testing: the edges are harder to hear when the rate keeps changing. I'll build idea 1 first, pass every test, then add idea 2 as an improvement and run the same tests again.

:::


## Develop: plan before you build


:::keep-together

### Band edges

**How many test readings do you need at minimum to check every band edge (30 and 100), on both sides?**

☐ 2: 30 and 100

☐ 1: 50

☐ 4: 29, 30, 100, 101

☐ 3: one in each band

:::


:::teacher-note

**Answer:** 4: 29, 30, 100, 101

Each edge needs the reading just inside and just outside it.

:::


## Create: build it


**In the simulator.** 

**For real.** 

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}


:::wider

## Test: run your table


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

**Run the tests.** 

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

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

:::


## Evaluate: against the brief


:::keep-together

### Which is evidence?

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

☐ It worked every time I tried it

☐ The code compiles with no errors

☐ A planned test with its recorded result

☐ My partner said it looks good

:::


:::teacher-note

**Answer:** 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.

:::


## Exit ticket

:::keep-together

**Give the four test distances that check your band edges.**

{{lines-3}}

:::


:::teacher-note

**Answer:** 29, 30, 100 and 101 cm.

:::

