Use code and the micro:bit’s accelerometer to create a device that can count the number of steps taken when the micro:bit moves.
Create a new blank project in the JavaScript Blocks Editor.
The micro:bit has a built-in accelerometer that's great for detecting movement. Create a code to record the number of steps taken.
Here are some tips:
Hint – here’s one way you might do it: