Step by step

The accelerator in the micro:bit can be used to detect the orientation of the micro:bit and any shake. In this challenge, we will build our very own pedometer (step counter) to record the number of steps you walk in a day. As it is recommended that one person should walk at 10000 steps a day. this gadget will alert the user once the 10000-th step is taken.

Connection Guide

Block Editor Code

Click the button below to download the block editor code for this challenge. The hex file is contained in a zip folder.

Kindly refer here for instructions on importing code into Micro:bit. 

This code can be imported into the micro:bit block editor.

Dr Bit Code

Click the button below to download the Dr Bit solutions  for this challenge. The Dr Bit file is contained within a zip folder.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links below.

To download Dr Bit PC software kindly click hear.

To download the Dr Bit app kindly select one of the links below.

Learning Points

  • Use the on-board accelerator as an input
  • Introduce increments and activate the actuator modules such as vibrating motor and buzzer module.

Additional Challenge

  • Experiment different place of strapping your project to different parts of your body and see how accurate it is.