Learning objective
- To create a program for the micro:bit using input, variables and conditions.
Success criteria
- I can create a variable to store and
This content is for subscribers only. Join for access today.
National curriculum
Computing
Pupils should be taught to:
- Design,
This content is for subscribers only. Join for access today.
Cross-curricular links
Physical education
Pupils should be taught
This content is for subscribers only. Join for access today.
Before the lesson
This content is for subscribers only. Join for access today.
Lesson plan
Recap and recall
Explain that the children will compare two different code blocks from MakeCode. Display the Presentation: What is the difference? Arrange the children in pairs and read the question aloud.
This content is for subscribers only. Join for access today.
Extended-mode explainer videos
How to extend your display to view the lesson page and preseantion mode simultaneously. Choose your operating system below to watch the video
If you need further support with extending your display,
please contact [email protected].
Extended-mode explainer video: For Mac
Extended-mode explainer video: For Windows
Adaptive teaching
Pupils needing extra support
Should use the Download: Pedometer .hex file or the link: Microsoft MakeCode - Pedometer Project and make small changes to personalise it (for example, change the icon in the ‘show icon’ block or the number of steps in the operator block); could plan their remix on a whiteboard before starting to help them organise their ideas, break the task into smaller steps and use a visual reference while programming.
Pupils working at greater depth
Should use multiple conditions using an ‘if, else’ block instead of an ‘if’ block (for example, if steps = 10, show a star, else if steps = 20 show a message); could add extra features, such as a music block so the micro:bit also plays a sound when the step goal is reached.
This content is for subscribers only. Join for access today.
Assessing progress and understanding
Pupils with secure understanding indicated by: choosing appropriate blocks to complete the
This content is for subscribers only. Join for access today.
Vocabulary definitions
-
condition
Something the program checks to decide what should happen next.
-
if block
A block that tells the program to do something only when a condition is true.
This content is for subscribers only. Join for access today.