Make a Wearable Pedometer With Micro:bit

About: ElecFreaks is an open design house founded in March 2011. Our goal is to create rapid prototypes and give small-batch manufacture solution for makers and startups. With over 50% staff as engineers and expand...


Micro:bit has integrated accelerometer on the board. With this accelerometer, we can realize pedometer function by shaking our hands. If we combine it with a button battery, then a simple pedometer is created!

Step 1: Tools&Materials:

1 x ELECFREAKS Power:bit For Micro:bit

1 x BBC Micro:bit Board for Coding & Programming

1 x Acrylic Base Board

1 x Watch Band

7 x 3*5 Screws

Step 2: Hardware Introduction

ELECFREAKS Power:bit is a kind of micro:bit extension board with minimum size. It is powered by two 2025/2032 button batteries and carries a buzzer on the board.

You can refer to the picture below to cut your acrylic board.

Step 3: How to Make

Firstly, fix your micro:bit onto power:bit.

Then use 2 screws to fix the acrylic base board onto power:bit.

Step 4: Programming

Click to open Microsoft Makecode, write your code in the editor area.

Click Edit in the upper right corner to edit your program, then click Download in the bottom to save your code into micro:bit.

Code Explain

Set start image and initialize the count.

When a vibration is detected, the count number will increase 1.

Press button A to display the count number of your foot steps.

Step 5: Succeed

Now you have create a pedometer by your own. Let's try it!

Step 6: Source

This article is from:

If you have any questions, you can contact:



    • Tape Contest

      Tape Contest
    • Arduino Contest 2019

      Arduino Contest 2019
    • Trash to Treasure

      Trash to Treasure