# Case 08: Step Counter ## Introduction --- - The step counter is a tool that measures calories or calorie consumption by counting steps, distance, speed, time and other data, it helps to control the amount of exercise and prevent insufficient exercise or excessive exercise. ## Function --- - Count steps by the accelerometer from the micro:bit, and display the data on the micro:bit. ## Products Link --- - 1 x [micro:bit Smart Health Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-health-kit-without-micro-bit-board?_pos=1&_sid=2b45d49aa&_ss=r) ## Picture --- ![](./images/microbit-Smart-Health-Kit-case-01-02.png) ## Software Programming --- ## Program --- Show number "MUM" on the micro:bit. ![](./images/microbit-Smart-Health-Kit-case-08-07.png) Set NUM=NUM+1 while in shaking. ![](./images/microbit-Smart-Health-Kit-case-08-08.png) While pressing button A, set "NUM" as 0. ![](./images/microbit-Smart-Health-Kit-case-08-09.png) Link: [https://makecode.microbit.org/_5fT7CVV8dCiK](https://makecode.microbit.org/_5fT7CVV8dCiK)
## Result --- - Display the steps data on the micro:bit and program to clear the data while pressing button A to start another counting.