GoalPlan, build on paper, test and evaluate a two-micro:bit idea of your own.
New words
requirement · something the project must do, written before building ittest plan · a table of tests with the expected outcome worked out before testingevaluate · to judge how well the project meets its requirements and say what could be improved
Explanation
In this lesson you design a small project of your own, using everything from the unit. A project has steps. First, say the problem and the requirements. Second, plan: what each micro:bit does, what message is sent and what is shown. Third, make it on paper by drawing the blocks. Fourth, test it with a test plan. Work out the expected outcomes first, then trace each test. Fifth, evaluate. Did it meet every requirement? What failed? What would you change? The worked example below is a seedling helper, and your own project needs a different idea. The micro:bits run on small batteries or a USB cable with an adult. Keep a project simple, because a small working project is better than a big unfinished one.
Step
What you write
1 Problem and requirements
what the project must do
2 Plan
messages, rule, what is shown
3 Make
draw the blocks
4 Test
test plan and trace
5 Evaluate
what worked, what to improve
Worked examples
Part
Plan
Greenhouse, button A
send 3 (dry)
Greenhouse, button B
send 7 (wet)
Kitchen rule
number < 5 gives sad, otherwise happy
Group number
9 for both
Problem: a gardener wants the kitchen to tell her when seedlings in the greenhouse are dry. Requirement: the greenhouse micro:bit sends 3 for dry or 7 for wet. The kitchen micro:bit shows a sad icon when the number is less than 5, and a happy icon otherwise.
The finished blocks, drawn on paper. Both micro:bits use group 9. The kitchen micro:bit decides what to show.
Test
Message
Kitchen shows
Pass/fail
Press A on the greenhouse micro:bit
3 is sent
sad icon
pass
Press B on the greenhouse micro:bit
7 is sent
happy icon
pass
Press A, then B
3 then 7
happy icon at the end
pass
Kitchen micro:bit set to group 8
3 is sent
nothing: no message arrives
fail
The test plan with traced outcomes. The first three tests pass. The fourth test shows what happens if the groups do not match: nothing arrives, so the kitchen does not change and the test fails the requirement.
Class activity
Your own project (no computer). Choose an idea that is not the seedling helper, for example a signal between a bedroom and a hallway, or a score keeper for a game. Fill in the five steps. 1: write the problem and two requirements. 2: plan the messages, the group number and the rule. 3: draw the blocks for both micro:bits. 4: make a test plan with at least three tests, including one with the wrong group, and work out the expected outcomes before you trace them. 5: write three sentences to evaluate it. Swap with a partner and check each other’s trace. If you have a computer or tablet, ask an adult to help you build one part.
Practice
1
Complete the missing outcomes in the test plan for the seedling helper when a pupil presses B on the greenhouse micro:bit twice.
Test
Message
Kitchen shows
press B
7 is sent
?
press B again
7 is sent
?
Each press sends 7. 7 is not less than 5, so the kitchen shows the happy icon after both presses.
2
A pupil changes the kitchen rule to receivedNumber < 3. What is shown when A is pressed (it sends 3)? Does the project still meet its requirements?
The kitchen shows the happy icon, because 3 < 3 is false. The project no longer meets the requirement, because a dry message should give a sad icon.
3
Write an evaluation of the seedling helper in three sentences. Say what works, what does not work and one improvement.
For example: it shows the right icon for a dry or a wet message. It does nothing if the groups do not match, and it never tells the gardener whether the message arrived. An improvement is to send a string such as water and show the word on the kitchen micro:bit.
4
Suggest a second requirement for the seedling helper, and say how you would test it.
For example: when the greenhouse is very dry, send the number 1 and show a different icon in the kitchen. Test it by pressing the button that sends 1, and check that the new icon appears and the others do not.