Session 1 · 60 min
What number does the light sensor give?
The “light level” block gives a number from 0 (dark) to 255 (bright); “show number” shows it on the display. In the simulator the value is set by hand with its sensor control: it is not a measurement.
The adult says first: “A sensor turns the world into a number. Let's find how small and how big it gets.”
Learner card
- Put “light level” in “show number”.
- Put them in “forever”.
- Make the simulator dark.
- Guess the number. Check.
- Now make it bright.
Key words (show each with a picture): sensor · number · light level
Timing (25 of 60 min at the screen)
- 15 minAway from the screen: Light hunt: walk round the room with picture cards, put places in order from darkest to brightest, and guess a number from 0 to 255 for each.
- 15 minAt the screen: MakeCode: “light level” in “show number” in “forever”; the adult sets the simulator's light level with the arrow keys; read each number.
- 10 minAway from the screen: Compare the room guesses with the simulator's numbers: who chose them?
- 10 minAt the screen: Guess the smallest and largest numbers, then check both ends in the simulator.
- 10 minAway from the screen: Fill in the table; say why the simulator's number was set by hand.
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 the simulator only. First, away from the screen, the group hunts for light around the room with picture cards, puts places in order from darkest to brightest and guesses a number from 0 to 255 for each. Then the learner puts “light level” inside “show number”, inside “forever”. To set the light level, the adult clicks the simulator's light circle, then presses the arrow keys (each press changes it by 1) and checks the number shown beside it: dark, the middle and bright, reading the number each time. The adult asks: who chose that number, the micro:bit or you? Then the learner predicts the smallest and the largest number the block can give, and checks both ends (the Home and End keys jump straight to 0 and 255).
Starting blocks: Built from scratch: “forever” holding “show number”, with “light level” inside it.
Evidence to collect
A prediction for each setting, a short test table (Simulator setting | My guess | Number shown) for dark, middle and bright, and the learner's spoken explanation that the simulator's number was set by hand, not measured.
Test table columns: Simulator setting | My guess | Number shown
- Predict
- Before each setting, the learner guesses the number: near 0, near the middle, or near 255?
- Debug
- If the number never changes, check that “light level” sits inside “show number”, and both inside “forever”.
- Reflect
- Why can't the simulator tell us how bright our room is?
Works towards: Readings with units