AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Choosing what arrives

Week 16 · 1.8 Physical computing · 3 lessons
3

Project: seedling helper

Computing 8: Topic 1.8, pp. 173–196
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.

StepWhat you write
1 Problem and requirementswhat the project must do
2 Planmessages, rule, what is shown
3 Makedraw the blocks
4 Testtest plan and trace
5 Evaluatewhat worked, what to improve
Worked examples
PartPlan
Greenhouse, button Asend 3 (dry)
Greenhouse, button Bsend 7 (wet)
Kitchen rulenumber < 5 gives sad, otherwise happy
Group number9 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.
Greenhouse micro:bit (group 9)radio set group9on startradio send number3on buttonApressedradio send number7on buttonBpressedKitchen micro:bit (group 9)radio set group9on startshow iconsadshow iconhappyifreceivedNumber<5thenelseon radio receivedreceivedNumber
The finished blocks, drawn on paper. Both micro:bits use group 9. The kitchen micro:bit decides what to show.
TestMessageKitchen showsPass/fail
Press A on the greenhouse micro:bit3 is sentsad iconpass
Press B on the greenhouse micro:bit7 is senthappy iconpass
Press A, then B3 then 7happy icon at the endpass
Kitchen micro:bit set to group 83 is sentnothing: no message arrivesfail
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.
TestMessageKitchen shows
press B7 is sent?
press B again7 is sent?
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?
Kitchen micro:bit (group 9)radio set group9on startshow iconsadshow iconhappyifreceivedNumber<3thenelseon radio receivedreceivedNumber
3
Write an evaluation of the seedling helper in three sentences. Say what works, what does not work and one improvement.
4
Suggest a second requirement for the seedling helper, and say how you would test it.