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.
- Use the on-board accelerator as an input
- Introduce increments and activate the actuator modules such as vibrating motor and buzzer module.
To download the code below, kindly right click to save file.
- Experiment different place of strapping your project to different parts of your body and see how accurate it is.