Tooth Brush Timer

Introduction: Tooth Brush Timer

the idea is to create a 2 persons timer for toothbrushing

for this, I used a microbit V1 .

It helps my kids to brush their teeth for the recommended duration.

If you have kids and a micr:bit and you want to ensure they have clean teeth; don't hesitate to copy my instructable.

Supplies

1 micro:bit V1 version

1 laptop with internet access for makeCode

that's all

Step 1: Code Variables

the idea is to allow 2 persons using the microbit even they don't arrive in the bathroom on the same time.

The goal is to allow micro:bit doing 2 animations on the same screen.

For that, we will use the LED folder.

1/ when kid 1 arrives , he pushes the A or B button and the animantion begins for 3 minutes

2/ when kid 2 arrives, he pushes the second button and a second animations begins for 3 minutes as well.

so we need to creat 2 different variables (Timer and Timer 2)

Step 2: Animate Toothbrush

Due to the fact kids can arrive separately, we need to draw 2 differents animations on the same micro:bit.

Thus, we can't use the "basic" folder to create animation.

We need to use the LED folder of the MakeCode application and to draw toothbrush pixel by pixel.

Step 3: Save Your Batteries

in aim to save your batteries, micro:bit has to stop lighting LED when kids have gone.

As consequence, you have to shut off the screen at the end of the loops.

Step 4: Brush Your Teeth

you can now enjoy the micro:bit and ensure to have nice teeth ;-)

Block Code Contest

Participated in the
Block Code Contest

Be the First to Share

    Recommendations

    • Home and Garden Contest

      Home and Garden Contest
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Stick It Challenge

      Stick It Challenge

    2 Comments

    0
    Pixelo
    Pixelo

    1 year ago

    So, since I am an American who doesn't know French (Thank you Google Translate), I have posted the translations for the code here.
    I also have the link here.
    P.S. WHY DOES THE CODE HAVE TO BE FRENCH? CAN IT AT LEAST BE A LANGUAGE THAT WE CAN UNDERSTAND (like English)!?!

    ho 1.pngho 2.png
    0
    lebossnico
    lebossnico

    Reply 1 year ago

    thank you Pixelo for the translation.
    Since I am using a french computer, Makecode is in french language.
    regards.