Tottillo Healthkits
Published © GPL3+

Anti-stress kit

Creation of a mini-station to get t° and light levels, stepcounter and deep-breathing counter to get info about body state and relax

BeginnerFull instructions provided1 hour502
Anti-stress kit

Things used in this project

Hardware components

BBC micro:bit board
BBC micro:bit board
×1

Software apps and online services

Vittascience

Story

Read more

Schematics

Micro:bit with the battery

Code

Detailed code for the micro:bit

Python
from microbit import *
import utime

steps = 0

while True:
  if microphone.sound_level() > 200:
    display.scroll('1 2 3 4 5', delay=150, wait=True)
  if accelerometer.current_gesture() == 'shake' :
    utime.sleep(1)
    steps = steps + 1
  if button_b.is_pressed():
    display.show('T:')
    display.scroll(str(temperature()), delay=150, wait=True)
    display.show('L:')
    display.scroll(str(display.read_light_level()), delay=150, wait=True)
  if button_a.is_pressed():
    display.scroll(str(steps), delay=150, wait=True)

Credits

Tottillo Healthkits

Tottillo Healthkits

21 projects • 89 followers
I am e-health engineer Diana. Interested in general wellness and awareness of what parameters affect our well-being and health.

Comments

Add projectSign up / LoginAbout BBC micro:bit