Lesson 3
Programming step-counters
Introduction
Pupils consider how activity trackers record the number of steps a person takes and write algorithms to represent this. They then use the MakeCode editor to use the BBC micro:bit as a step-counter and evaluate its effectiveness.
Learning objectives
- To identify the uses of a step-counter
- To write an algorithm for a step-counter
- To program the BBC micro:bit as a step-counter
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- Student handouts
- Identifying the actions of a program
- Identifying the actions support
- HEX file
Other resources:
MakeCode editor, paper - large sheets, micro:bits (optional)
Quick links
Lesson plan
Introduction: How many steps? (10 minutes)
Programing step-counters (20 minutes)
Code available
Reviewing micro:bit as a step-counter (5 minutes)
Extension ideas
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.