Home Resources Contact

Step Counter

The accelerometer in the Micro:bit can detect if the Micro:bit is being shaken (or tilted). Check out the Watch or Step Counter under the Fashion heading for another tutorial.

This tutorial uses a variable (think of this as a bucket to store a number in) to keep track of how many times the Micro:bit is shaken. It then uses the display number block to display how many times the Micro:bit has been shaken.

Next "Steps"!