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 hours507
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

11 projects • 44 followers
Je suis une ingénieure, je passe maintenant du temps à développer des projets de santé basés sur des arduinos et à créer des sites.

Comments

Add projectSign up / LoginAbout BBC micro:bit