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 The 20 Second Handwash
  • 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: vimarsh_
  • Date Created: 21 Mar 2020 6:20 PM Date Created
  • Views 2777 views
  • Likes 10 likes
  • Comments 6 comments
  • ultrasonic sensor
  • arduino uno
  • fightinggermsch
  • covid-19
  • nanoramach
  • soap
  • arduino
  • coronavirus
Related
Recommended

The 20 Second Handwash

vimarsh_
vimarsh_
21 Mar 2020
image

Fighting Germs

Enter Your Electronics & Design Project for a chance to win an $200 Shopping cart of product!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

  • Introduction
  • Why does soap work?
  • The idea
  • Design
  • Materials
  • Coding and Assembling
  • Demonstration
  • Conclusion

 

Introduction

 

Amid the covid-19 outbreak in the world. To prevent from spreading or contracting with the disease washing the hands is very important.

 

Hands must be washed with soap. Liquid soap is recommended because most of them don't have some harmful chemicals. I would not recommened using sanitizers a lot as because of alcohol, you skin may become dry and it would burn a lot. It has happened to me.

So use soap.

 

Why does soap work?

 

One side of the soap molecule (the one that’s attracted to fat and repelled by water) buries its way into the virus’s fat and protein shell. Fortunately, the chemical bonds holding the virus together aren’t very strong, so this intrusion is enough to break the virus’s coat. “You pull the virus apart, you make it soluble in water, and it disintegrates,”

Then the harmless shards of virus get flushed down the drain. And even if it the soap doesn’t destroy every virus, you’ll still rid them from your hands with soap and water, as well as any grease or dirt they may be clinging to. Soap will also wash away bacteria and other viruses that may be a bit tougher than coronavirus, and harder to disintegrate.

The trick is this all takes a little time to happen, and that’s why you need to take at least 20 seconds to wash your hands.

First off, your skin is wrinkly, and it takes time for soap to penetrate into all the tiny folds and demolish the viruses that lurk within. Then the soap needs a few moments to do its chemical work. “You do need a bit of time for all the soap to interact back and forth with the virus particle,” Twenty seconds should do the trick just fine.

Alcohol, the main ingredient in hand sanitizer, can destroy viruses, too. Sanitizers “actually work in a similar way, the alcohol molecules are somewhat amphiphiles”. The thing is, you need a very high concentration of alcohol to achieve the same effect. (Chemicals called quaternary ammonium compounds — the main ingredient in Lysol — kill viruses too but can be a bit harsher on the skin.)

 

Source: https://www.vox.com/science-and-health/2020/3/11/21173187/coronavirus-covid-19-hand-washing-sanitizer-compared-soap-is-d…

 

 

The idea

Because washing hands for 20 seconds is must and to keep track of time is also difficult.

So, I wanted to design a simple solution that can tell when the time is up but also to which you don't need to actually physically touch.

 

Design

So here is my basic design idea:

  • There will be an ultrasonic sensor measuring the distance. When you put soap and move the hand closer to the sensor the tic-tok starts
  • The arduino will then count 20 seconds and then blinks RED led thrice to know that you have done washing your hands.
  • The cycle resets

 

Materials

  • Arduino Uno ( any can be used. Make sure you have Ultrasonic senros supporting that voltage)\
  • HC-SR 05 (Ultrasonic Sensor)
  • RGB LED
  • 100 Ohm resistor

 

Coding and Assembling

 

I used program called PictoBlox to code Arduino. It is a scratch based application to basically write Arduino Programs. Its free and opensource.

I generally just use Arduino IDE, but wanted to try this for simple projects and it works really great and you can do things fast. I could write the whole code (more like drag and drop) in less than 15 minutes.

They have great tutorials on their website. A must read for this powerful tool.

 

The code is very simple and extremely easy to read.

imageimage

 

Here is the file. https://bit.ly/20sHandwash

 

The converted Arduino Code:

//This arduino code is generated by PictoBlox

//MACROS are defined here
float getDistance(int trig,int echo){
        pinMode(trig,OUTPUT);
        digitalWrite(trig,LOW);
        delayMicroseconds(2);
        digitalWrite(trig,HIGH);
        delayMicroseconds(10);
        digitalWrite(trig,LOW);
        pinMode(echo, INPUT);
        return pulseIn(echo, HIGH)/58.0;
}

//Gloabl Variables are declared here
float d;

void setup() {
    //put your setup code here, to run once:
    Serial.begin(115200);
    pinMode(13, OUTPUT);
    pinMode(11, OUTPUT);
    pinMode(12, OUTPUT);
    
    
    digitalWrite(13, true);
    digitalWrite(11, true);
}

void loop() {
    //put your main code here, to run repeatedly:
    
    
    d = getDistance(2, 3);
    Serial.println(d);
    digitalWrite(11, false);
    if((d < 7)) {
        digitalWrite(11, true);
        digitalWrite(12, false);
        delay(20 * 1000);
        digitalWrite(12, true);
        for(int i = 0; i < 3; i++) {
            digitalWrite(13, false);
            delay(0.5 * 1000);
            digitalWrite(13, true);
            delay(0.5 * 1000);
        }
        delay(4 * 1000);
    }
}

 

Demonstration

Video

 

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

 

Conclusion

So, this was a simple project but I think that such simple projects can collectively help all of us to combat the current global crisis i.e., https://who.int/covid-19

  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 5 years ago +4
    A good project. It might need some sort of box to protect the electronics from the water. A buzzer would also be useful. I was also interested in the PictoBlox concept as I have seen Scratch before but…
  • 14rhb
    14rhb over 5 years ago +3
    Great work vimarsh_ and just the sort of simple project that can have a huge impact for little cost, I'm sure I never spend long enough washing my hands so might have to build one. Can I however just point…
  • vimarsh_
    vimarsh_ over 5 years ago in reply to 14rhb +2
    Thanks for your feedback! Actually I self-filming this with phone setup on some sturdy materials, so forgot to clean it up. But all of use in the house clean the tap as well as the surrounding area with…
Parents
  • 14rhb
    14rhb over 5 years ago

    Great work vimarsh_  and just the sort of simple project that can have a huge impact for little cost, I'm sure I never spend long enough washing my hands so might have to build one.

     

    Can I however just point out from your video that if your hands were infected then touching the tap at the start and again at the end will undo much of your great handwashing. My only suggestion would be to use some of the soap lather on the tap halfway through to clean it or to use a tissue to dry your hands and then to close the tap off (disposing of it into a bin immediately).

     

    Stay well image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • vimarsh_
    vimarsh_ over 5 years ago in reply to 14rhb

    Thanks for your feedback!

     

     

    Actually I self-filming this with phone setup on some sturdy materials, so forgot to clean it up. But all of use in the house clean the tap as well as the surrounding area with tissue papers / towels.

    Also, when I am cleaning my hands and some foam has become excess, then I do just clean the tap too. But still I must take some care regarding it. Thanks for pointing it out :-)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • vimarsh_
    vimarsh_ over 5 years ago in reply to 14rhb

    Thanks for your feedback!

     

     

    Actually I self-filming this with phone setup on some sturdy materials, so forgot to clean it up. But all of use in the house clean the tap as well as the surrounding area with tissue papers / towels.

    Also, when I am cleaning my hands and some foam has become excess, then I do just clean the tap too. But still I must take some care regarding it. Thanks for pointing it out :-)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • 14rhb
    14rhb over 5 years ago in reply to vimarsh_

    No problem. The tap was just something I noted and pointed it out more so that other readers also give it consideration - to help us all stay healthy image . At my home I'm lucky enough that the main tap is a lever so I can operate with the back of my hand (which I hope is always cleaner).

     

    By the way, your video would make a great public health advert in any country for how to wash hands properly. At my work there are so many that think a quick dip under the tap to get them wet is enough, sad as there is hot/cold water. soap and paper towels to use.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 5 years ago in reply to 14rhb

    Hospitals and people who work in them will opt for 'paddle style' knobs on the sink, or other simple means to turn them on or off. This usually means using an elbow to turn the water off. The "touch" style ones are similar as people don't have to use their clean hands to turn the water on or off.

    • 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