Lesson 4: Programming a pedometer

Children investigate how to turn the BBC micro:bit into a pedometer and work on developing their debugging skills further

Before the lesson

Download classroom resources

Learning objective

  • To create a program

National curriculum links

Pupils should be taught to:

  • Design, write and debug programs that accomplish specific goals; solve problems by decomposing them into smaller parts
  • Use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs

Success criteria

Cross-curricular links

Attention grabber

Main event


Pupils needing extra support: Use blocks provided and focus on the sequence when combining them.


Pupils working at greater depth: Should decompose the project independently.

Wrapping up

Assessing pupils' progress and understanding


Created by:
Richard Williams,  
Computing specialist
Richard is a Year 6 Teacher at St. Pancras Primary School. Richard’s passion for teaching was recognised when he received Suffolk’s ‘Raising The Bar’ award for Innovation 2016. With his class he made the world’s first guided VR:360 school tour…
Find out more