Hand Washing Timer - Microbit Project 

This is a 3 week project - please be ready to share your program by the 20th May 2021 for feedback

Project Brief - 

It is very important a the moment to wash our hands for the right amount of time.  You should always wash your hands for at least 20 seconds!
 

Can you make a program that will tell people how long they have washed their hands?

Requirements:

Handsfree Device - we do not want to touch anything

Accurate timing - we need to wash for 20seconds

Start and Stop markers - we need to tell the user when the time starts and finishes

Idea 1 -  Hands free switch using a light sensor

The Microbit is able to measure the light level above it.  This sensor can be used as a hands-free switch.   If someone covers the Microbit, this reduces the light level and can be used as a Starting Event for our program.  

A Forever Loop will keep sensing for someone to start the timer.

Can you think of where this sensing switch technology is already used in our everyday lives?

Idea 2 - Timing 

We will also need a Variable to help us measure the time taken.  This can either count up or down.

We will call our variable Time

A simple count down code with a time variable

Your challenge

Combine these ideas, apply previous code or research your own and make a simple hand washing timer program.

There are many different ways to complete this task.   Check the Make code site for more ideas.   Here is a more accurate way to run a timer.  See the video and code below to see how...

Good luck Yr4  - You will share this in OneNote.

Learning Intentions

Can I program a simple computer?

Success Criteria

I can apply prior learning 

I can create a simple program

I can test and improve with iterations

I can explain my coding choices

I can share my learning

Helpful sites

Microbit Block Gallery

Microbit.Org

The Light Sensor

Comments

  1. I can't find the code to make it

    Posted by Jiho Kim, 12/05/2021 at 10:23

    1. Have you tried searching with Google - Keywords - Microbit, makecode, timer ???? - Also most of the code you need is above, start with these bits and see how they work by testing them.

      Posted by Max Hopwood, 12/05/2021 at 13:42

    2. I have my own micro-bit

      Posted by DB:Cloud:DB:iSAMSstu:13619, 02/06/2021 at 10:45