Diana Khalipina
Published © GPL3+

Step Counter + App

Check your everyday activity, get info about recommended norms and share your progress on social networks!

BeginnerFull instructions provided2 hours1,745
Step Counter + App

Things used in this project

Hardware components

Battery Holder, 3 x AAA
Battery Holder, 3 x AAA
×1
BBC micro:bit board
BBC micro:bit board
×1

Software apps and online services

MIT App Inventor 2
MIT App Inventor 2
Vittascience platform

Story

Read more

Schematics

App to upload and analyse the data (in english)

App created by Mit App Inventor to analyze the meaning of the number of the steps and share media files about your progress in the internet

App to upload and analyse the data (in french)

App created by Mit App Inventor to analyze the meaning of the number of the steps and share media files about your progress in the internet

Code for Micro:bit on Vittascience platform

Code

Code for Micro:bit step counter

Python
Code to count number of steps and display it
from microbit import *

steps = None

steps = 0


while True:
  display.scroll(steps)
  sleep(50)
  if accelerometer.current_gesture() == 'shake':
    steps = (steps if isinstance(steps, int) else 0) + 1

Credits

Diana Khalipina

Diana Khalipina

19 projects • 86 followers
I am e-health engineer Diana in Paris. Wish one day everybody become self-quantified. ❕❕ ONLINE COURSES OF PROGRAMMING MEDICAL PROJECTS ❕❕

Comments

Add projectSign up / LoginAbout BBC micro:bit