Fight Coronavirus: Simple Handwash Timer

6,089

27

9

Introduction: Fight Coronavirus: Simple Handwash Timer

About: The Tech Lab endeavors to create a whole new generation of tech innovators and developers in Bangladesh and ultimately, in the world. Being the first of it’s kind in the country and in the world, it provides E…

With the current pandemic in the world, the situation seems pretty scary. The Corona virus might be anywhere. As far as we know, one might carry the virus for a few days without even showing any symptoms. Scary indeed.

But hey, don't get too scared. There are some easy ways we can fight against this virus. One is to wash our hands, properly. Our hands are the main carrier of all sorts of germs. We frequently touch our eyes, nose, and mouth without even noticing it. Germs from unwashed hands might get into our food as well, some of which may even grow in the food and when we eat those, they can make us seriously sick. And washing hands with soap can mostly kill them.

But how long do you think you wash your hands? Do you sing the happy birthday song? Once or twice? Is it always enough or do you actually just scratch your hands a little for 5 seconds and wash it off?
If we actually count our typical hand washing time, most of us barely washes for 10 seconds, which is definitely not enough. So here at The Tech Lab, we wanted to make something simple, something to force us to wash for at least a good 20 second.

This simple timer sits next to your hand soap dispenser. It has a sensor on top that detects when you take your hand in front of the soap dispenser. Then it starts counting down 20 seconds, lighting up one LED after another. Once the green LED turns on, you have washed your hands long enough to kill most of the germs, and you can wash the soap off with water.

Supplies

  • Arduino Nano/Uno
  • HC-SR04 Ultrasonic Distance Sensor
  • 1 Red LED
  • 1 Green LED
  • 4 Blue LED
  • Enclosure
  • Breadboard and jumpers for breadboard version
    or,
    Perfboard/veroboard if you know how to solder ;)

Step 1: How It Works

We made this project super simple so that anyone can build it on the weekend. Not only is it fun to make with children but it is also educational, and definitely useful in the current situation. The main brain of this countdown timer is an "Arduino". It's a tiny computer that can be programmed using personal computers. Arduinos are widely used for learning, prototyping and even actual products. If you don't have any experience with it then don't worry, we will walk you through the process easily and you will be able to get started with Arduino, maybe even make more future projects with it if you like the idea of it.

So the Arduino is connected to an ultrasonic distance sensor, and 6 LEDs. The Arduino is sending ultrasonic sound waves with the distance sensor and checking the time it takes for the sound waves to be reflected back to the sensor. Using the time, it measures the distance of anything right in front of it. So the Arduino is always reading the sensor, waiting for your hand to appear within 30 centimeter. As soon as it detects something within 30 centimeters, the Arduino turns on the red LED and waits for 4 second for you to take some water and soap on your hands. Then it starts the 20 seconds countdown. Eventually the 5 blue LEDs light up, one by one, over the period of 20 seconds.

Once the green LED turns up, you have washed your hands for long enough and you can rinse off the soap.

Step 2: Making the Breadboard Version

There are two version of this project that you can build. One is on a solder-less breadboard and another is on a veroboard or perfboard. If you know don't know how to solder or have very little experience with it, we encourage you to make the breadboard version as it requires no soldering. We recommend Arduino Uno if you want to make the breadboard version since Arduino Nano requires soldering.

Making this project on the breadboard is really simply. We just have connect our Arduino to the sensor and 6 LEDs. You can follow the picture provided above that shows how to hook things up with both Arduino Uno and Nano, whichever taste you prefer. We use jumper wires to connect everything together. Don't forget to check the LED polarities. The longer pin is usually the positive pin, so the longer pins should be connected to the Arduino digital pins. The shorter pins on the other hand should be connected to ground (GND) pin of the Arduino.

Step 3: Making the Veroboard/Perfboard Version

If you have some experience with electronics and you know how to solder, you can solder this onto a solder-able board or even design a PCB of your own. The schematic is provided above, here's the EasyEDA design file so that you can export the PCB easily.

When soldering, make sure you get the LED polarities correct. You can also add some 150 Ohm resistors to all the LEDs so that they get a longer lifetime. We excluded the resistors to make this project more beginner friendly. Not using resistors is completely fine according to our test, the LEDs seem to be just fine. They should last fairly long as they are only lit up for 4 seconds at a time.

Step 4: Uploading the Code

Once we are done building the circuit, it's time to upload the code to the Arduino board. If you have never used Arduino before, we recommend you to go through the getting started documentation on the official Arduino website. You will have to install the Arduino IDE (Integrated Development Environment) onto your computer or notebook. Then download the code attached below in this step.We have wrote many comments in the code to make it easy to understand for newbies.

Now connect the Arduino to your computer with the cable that came with it. Open the code on your computer using the Arduino IDE. From Tools > Board, select the Arduino that you're using. For us it was an Arduino Nano. Also select the port for your Arduino from Tools > Port. Next, click the Upload Button on top left corner. The upload should begin. You should get a "Done Uploading" message once it's complete.

If you get an error while uploading, make sure you chose the right board and port. Try a different port until it works. You might also need to change processor if you are using an old Arduino Nano, you can find the option in Tools > Processor.

Step 5: Testing Functionality

Once you have successfully uploaded the code, it's time to check if the timer works correctly before putting it into an enclosure. Normally all the LED should be off. Take your hand in front of the sensor, the red LED should turn on. Eventually all the LED should turn on with 4 seconds interval, finally lighting up the green LED.

Congratulations! Your timer works! 👏👏

If everything doesn't work normally, first check your connections to the ultrasonic sensor. It's easy to mistakenly connect the sensor pins reversed. If an LED doesn't light up, check it's connection and polarity. If it still doesn't work, try replacing the LED.

Step 6: Making the Enclosure

Once you are done building the circuit, it might be a good idea to to put it all into an enclosure. The enclosure brings a professional look to your timer and protects it from small splashes of water.
The enclosure can be made pretty much out of anything as long as it looks nice. Using something that doesn't get wet is all you need. You can make it however you like using your creativity. It can be made from a small plastic food container, wood, cardboard, 3D printed or anything else, your imagination is the limit. Use your creativity to draw or paint your enclosure as you like.

For our enclosure we wanted it to be completely out of scratch. So we used old electrical outlet box that we had lying around. We used some wires soldered directly onto the Arduino, connecting to the LED and some header wires connecting to the sensor. We covered ours with some old carbon vinyl lying around to give it an aesthetic look. In the end it turned out pretty nice for the simple materials we used. The dimensions of our enclosure is shown in the photo above. Feel free to use the same dimensions if you like.

Step 7: Success!

You just made yourself a small handwash countdown timer!

This simple project can help keep you safe from the scary virus and bacteria all around us. In test we found that we actually used to wash our hands for a much shorter time before we used this timer. This also encourages kids to wash their hands more often as it is fun to watch this timer countdown. You can make a few, draw your favorite characters on it and put it in front of all the soap dispensers in your house.

Step 8: Last Words

With the current Corona virus, it is really important to keep ourselves safe. We can easily take this situation and turn it into a lesson to stay more safe from germs. This project is just a small contribution makers can do in this situation. We would be really happy if this helps you at all. Please let us know if you make it with the "I made it" feature. We would also like to send a thank you letter for helping fight against the Corona virus. To get it, please send us your Handwash Timer photo using this form.

Make sure to use hashtag #HandwashTimerChallenge when you post your timer photo on a social media. Let's spread this idea among all the makers out there.

If you liked this Instructables, please give us a vote in the Clock Contest :)

Thanks for reading and stay safe.

Written by Iqbal Samin Prithul, from The Tech Lab.

Clocks Contest

Participated in the
Clocks Contest

Be the First to Share

    Recommendations

    • Organization Contest

      Organization Contest
    • Audio Challenge

      Audio Challenge
    • Sewing Challenge

      Sewing Challenge

    9 Comments

    0
    ishapplemate375
    ishapplemate375

    1 year ago

    Initially the leds should be off. I am currently making this project. I downloaded the code given by you every thing is attached properly but my leds are on and when something comes close to the sensor it switches off one by one
    plz help me

    0
    The_Tech_Lab
    The_Tech_Lab

    Answer 1 year ago

    Yes, absolutely.
    Just use the same pins as Arduino Nano and the code will work just fine.

    Happy making!

    0
    craftyjam
    craftyjam

    1 year ago

    why not just use a 555 timer instead of a mcu?

    0
    The_Tech_Lab
    The_Tech_Lab

    Reply 1 year ago

    Hi
    That would totally be possible but that would mean having quite a few components. It's probably easier for beginners to do it on a breadboard with an Arduino and it's fairly cheap too.
    Thanks for your comment.

    0
    chuckstake
    chuckstake

    1 year ago

    nice thank you may try if I have time stay safe

    0
    The_Tech_Lab
    The_Tech_Lab

    Reply 1 year ago

    Thank you so much! Stay safe. :)

    0
    homer6
    homer6

    Question 1 year ago

    I haven't found a mention of a power supply or battery. Was this intentional?

    This looks easy and I plan to make one for our 3 year-old twin grandchildren. I'll bet they'll enjoy it.

    0
    The_Tech_Lab
    The_Tech_Lab

    Answer 1 year ago

    Hi! Sorry that we didn't mention about the power.

    So we suggest using the USB to power the Arduino in order to keep it beginner friendly. Adding a battery makes it slightly complicated, requiring a charging circuit, requires soldering and having to charge every now and then since this project consumes quite a bit of power. We powered ours with a USB as well. But it might get a little hard to have a wall outlet nearby so you might have to use a powerbank. But then again you have to charge it from time to time.

    If you want to make yours battery powered, it would be fairly easy to do with a single cell Lithium battery, a TP4056 charger board with protection and a 5V DC-DC voltage booster module if you have some experience. We might add that as an option in the write-up. Here's a picture showing an example connection. Collected from: https://www.mikrocontroller.net/topic/406741

    Hope that answers your question. Thank you.

    booster.jpg