A Device That Counts Your Steps
by juliecamille37270 in Circuits > Sensors
418 Views, 1 Favorites, 0 Comments
A Device That Counts Your Steps
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
Protocol
-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
-Connect the microbit card to your computer using the cable, then download the file to your computer.
Finally
-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
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