Session 1 · 60 min
How can an echo tell us how far away something is?
A distance sensor sends a short burst of ultrasound and times its echo: a longer wait means a farther object. The ruler is the reference, in centimetres. In the simulator the distance block cannot measure: it always gives the same made-up number.
The adult says first: “A sensor can time an echo. A far echo comes back later.”
Learner card
- Walk to the wall and back.
- Far takes longer.
- Measure the box with a ruler.
- Write cm after each number.
- The simulator cannot measure.
Key words (show each with a picture): echo · distance · centimetre
Timing (15 of 60 min at the screen)
- 15 minAway from the screen: Echo walk: to the wall and back from 1 m and from 2 m; which trip takes longer?
- 10 minAway from the screen: Measure the box at 10, 20 and 30 cm with a ruler; write cm.
- 15 minAt the screen: MakeCode: add the sonar extension; the distance in “show number” in “forever”; read the simulator's number.
- 10 minAway from the screen: Draw the table; guess what the real sensor will say.
- 10 minAway from the screen: Say why the simulator's number is not a measurement.
In the studio
No studio lab or activity.
Outside the studio: MakeCode editor and its micro:bit simulator (makecode.microbit.org)
Hands-on
Nothing is powered: this session uses rulers, a box and the simulator only. First, away from the screen, the group plays echo: one learner walks from a start line to a wall and back at a steady pace while the others count, from 1 m and then from 2 m away, and says which trip took longer. Then each pair measures a box at 10, 20 and 30 cm from a line with a 30 cm ruler, writing each number with cm. In MakeCode next, the adult adds the sonar extension; the learner puts the “ping trig P1 echo P2 unit …” block, set to cm, inside “show number”, inside “forever”. In the simulator the distance block always gives the same made-up number (86 in cm): it has no sensor, so it cannot measure. The learner guesses what the real sensor will say for each box.
Starting blocks: Built from scratch: “forever” holding “show number”, with “ping trig P1 echo P2 unit …” set to cm inside it.
Evidence to collect
A prediction for each box position, the learner's own short test table (Box at (cm) | My guess | Simulator shows) for 10, 20 and 30 cm, and the learner's spoken explanation of why the simulator's number is not a measurement.
Test table columns: Box at (cm) | My guess | Simulator shows
- Predict
- Before the simulator runs, the learner guesses the number it will show.
- Debug
- If the sonar block is missing, check that the sonar extension was added in Extensions on this computer.
- Reflect
- Why is the ruler the one to trust today?
Works towards: Distance sensing