A Device That Counts Your Steps

by juliecamille37270 in Circuits > Sensors

418 Views, 1 Favorites, 0 Comments

A Device That Counts Your Steps

7F448759-249C-4BEB-B8E4-6A43F6AF3201.png

Making this pedometer will allow you to know how many steps you take per day, transcribed into kilometres according to your walking speed.

You only have to store it in your coat or bag pocket to count your steps.

The Accelerometer will be used in this program. It is a sensor that measures movement. The accelerometer of your microbit card detects when you tilt it from left to right, from front to back and from top to bottom. It corresponds to the two small dots at the top of the map

If you have a problem or a question with this program, please, tell me as soon as possible.

Materials

D8DE4362-F0B8-486F-8AF8-D09F8A304425.png

1 computer

-1microbit card (15€) (Link)

-1 microbit battery (2€) (Link)

-1 micro USB cable (2€) (Link)

-2 rechargeable batteries (5€)(Link)

Total cost of less than €25.

Protocol

575237BE-0AC0-432B-B46F-DE2B2C407148.png

-Connect to https://makecode.microbit.org/ and create a new project called a pedometer.

-Create 3 variables named "step" "step/km" "kilometre"

-Rewrite the program corresponding to your speed.

(Slow walking: program 1; brisk walking: program 2)

Connect Microbit

8C2F56BF-6F0C-491D-969D-83322D003845.jpeg

-Connect the microbit card to your computer using the cable, then download the file to your computer.

Finally

0ECF1FD1-E2B9-457C-ABB7-F7E39038B6B7.jpeg

-Move it on the card, disconnect it from the computer and connect it to the batteries.

-You only have to take it during your walks in your bag or in the pocket of your coat.

And

D7ABED85-B518-42FC-9B0F-21AE806447D7.png

The card shows the number of steps all the time except when button A is pressed, then the map screen will show the number of kilometres