# Case 05: Pedometer ## Purpose Use the Smart Coding Kit to create a wearable pedometer. ## Products Link 1 x [ELECFREAKS micro:bit Smart Coding Watch Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-coding-watch-kit-without-micro-bit-board?_pos=2&_sid=ce4e7cb69&_ss=r) ![](./images/smart_coding_kit_case_05_01.png) ## Software [MicroSoftmakecode](https://makecode.microbit.org/#) ## Programming Show the preset icon while on start; Set i=i+1 while on shake and display the value of the variable `i`; set `i` as 0 while button A being pressed and display the value of `i` at the same time. ![](./images/smart_coding_kit_case_05_02.png) ### Link Linkļ¼š[https://makecode.microbit.org/_LKJM7kAaw58M](https://makecode.microbit.org/_LKJM7kAaw58M) You can also download it direcly below:
## Result While detecting the shake, the displaying number will add up 1 automatically for each time being detected, and the value will be back to 0 once button A being pressed. ## Exploration ## FAQ ## Relevant File