element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Fighting Germs
  • Challenges & Projects
  • Project14
  • Fighting Germs
  • More
  • Cancel
Fighting Germs
Blog [PROJECT] BBC Micro:bit – Covid-19 Hand Wash Timer – version 1 by Cabe
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Fighting Germs to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Catwell
  • Date Created: 28 Apr 2020 9:04 PM Date Created
  • Views 1975 views
  • Likes 6 likes
  • Comments 2 comments
  • pandemic
  • project
  • microbit
  • diy
  • led
  • cabeatwell
  • covid 19
  • display
Related
Recommended

[PROJECT] BBC Micro:bit – Covid-19 Hand Wash Timer – version 1 by Cabe

Catwell
Catwell
28 Apr 2020

It’s during times like these that inspire innovation. I even made something for the cause!

 

In that spirit, the “Fighting Germs” contest is here to not only reward that innovation ─ but also give to other charities for those attempting the same thing! It’s fun, it’s beneficial.

 

They say the best time to plant a tree is thirty years ago. The next best time is today.

 

 

image

 

Washing your hands for 20 seconds will destroy the Covid-19 virus.

 

Wow, is counting to 20 gets boring after a while. Also, I find my counting is somewhat inaccurate. Especially when I want to go do something else.

So, I thought a visual timer that would countdown every time I put soap on my hands would be a better option. To curb the tedium with this, I also wanted the countdown to be different looking ever time.

 

Being in a social distancing environment, lockdowns, etc.… I had to cut a few corners in the construction of the soap dispenser actuator. My shop is challenging to get to.

Behold my ingenuity… I placed a soap pump on a big button! It works too!

 

How the system works:

Once the Micro:bit is powered, you can set the time it takes to erase the image on the device’s LED screen. The screen is a 5x5 LED matrix if you don’t already know. Press the “B” button to increase the time.

There will be an image placed on the screen. I used a variety of images already in the Library. The system waits for a button press.

 

The soap dispenser would be placed on a very sensitive button. In my project, I ended up using a button I salvaged from a demolished factory. In my original plans would have been a contact switch with a travel of a micrometer. However, my salvaged button travels about 2.54 cm (an inch). I give it a gusto press, and the sequence starts.

 

A spiraling dot will erase the image and flash the screen with a square. You’re done washing!

It will reset to the next image and wait.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

First, let’s gather all the necessary components you’ll need to build this project.

1x BBC Micro:bit

1x Kitronik Inventor’s Kit (This is mainly for the breakout adapter and project wires.)

Project Wires Female - Male

1x Momentary Contact Button

 

For the momentary button - I am thinking a foot pedal push button might be a good option for simplifying this project. You can then put any soap bottle on the button and use it. The one I selected here is watertight. Might work out.

 

STEP 1

Load the code onto the Micro:bit.

I am providing the hex file you need to drag and drop onto the Micro:bit, and the python code as two separate files. For the below process, just use the hex file.

Plug the MicroUSB cable into the Micro:bit, and plug the other end of the cable to a PC or MAC.

At this point, you are going to copy over the code to the Micro:bit. I am providing the program (code) in this post that needs to be copied over. When the Micro:bit plugs into a computer, it shows up as a USB flash drive. All you have to do is copy the file over to the Micro:bit, like it’s a USB Flash Drive, and the Micro:bit will reset, and the program is active.

You can remove the Micro:bit from the computer at this point. The program will start running, and without the rest of the circuit, it will not function.

●

A little bit about the code:

image

The main feature of the program spirals the image down to nothing. It does this by drawing a bright LED, and a “black” LED behind it. A black LED is just turned off if you are wondering.

Then the code flashes a square three times when the spiral finishes.

 

STEP 2

The schematic is the simplest I could make for a first version. Wire it up like the drawing.

image

 

STEP 3

Place the soap on the button! image

image

 

 

STEP 4

When you turn the system on, it’ll start up immediately.

However, it’ll be set at 1 second. It’ll take 1 second to wipe the screen.

Press button “B” to increase the time by one second. You could set it for 20 seconds, the recommended hand wash time fighting the virus. Or 25 seconds to adjust for the time it takes to start washing, I suppose.

 

To reset the time, just turn it off and on.

 

Step 5

If you’d like to change the image without counting down, just shake the Micro:bit. The accelerometer triggers an image change.

 

Conclusion:

Fight the virus, don’t skimp on the hand washing. This just might help curb the tedium.

Attachments:
Microbit 2020 4 19 handwash timer Cabe Atwell.zip
  • Sign in to reply

Top Comments

  • genebren
    genebren over 5 years ago +2
    Very cool little project. It is good that you had a helper to do your demonstration video.
  • dubbie
    dubbie over 5 years ago +2
    An innovative and creative solution to a simplish problem. I particularly liked the use of the giant red stop button. Does this mean you have been scavenging from demolition sites during this period? …
  • dubbie
    dubbie over 5 years ago

    An innovative and creative solution to a simplish problem. I particularly liked the use of the giant red stop button. Does this mean you have been scavenging from demolition sites during this period?

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 5 years ago

    Very cool little project.  It is good that you had a helper to do your demonstration video.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube