COVID-19 is a serious pandemic and the coronavirus is spreading quickly and easily between humans. There are ways to curb the spread of this virus and one way is to wash hands using soap for at least 20 seconds. Sometimes, if the person carelessly touches, which could be contaminated – after washing his/ her hands, he/she has a higher chance of contracting this coronavirus disease. If you go out, it is safe to wash your hands before entering your premises. You do not have to touch the door handle because the door lock system is automated. In my project, a person will only be granted access once he/ she washes his/ her hands.
The person could be wearing face masks when they go to public places but their hands may not be clean. Even if he/ she cleans their hands, they could touch the surface which was touched by a virus carrier. The virus carrier’s hands would be contaminated. Coronavirus could last on a contaminated surface from several hours to days depending on the environmental conditions such as humidity and temperature. By washing your hands before entering the premises, this way of spreading coronavirus could be prevented.

I have made a prototype to wash hands safely with automatic door control system. I have made an touchless sanitiser spay so that you do not have to touch the surface of the faucet and is automatic.
LATEST PROJECTS:
1. IoT Projects
2. Raspberry Pi Projects
I would suggest you to use a solenoid water valve instead of the submersible water pump. The tube is modelled as the sanitiser in this prototype. This model could be used in malls, offices and your home. This model could be used in places with automatic sliding doors or automatic door system, by replacing the single channel relay module with solid state relay module.
COMPONENTS:
1. LCD
2. IR SENSOR
3. Relay.
4. I2C LCD Module
This prototype could also be used as an automatic alcohol-based hand sanitizer dispenser, but when using the hand sanitiser, the container should be closed as the alcohol could evaporate.
4. Ir Sensor Details.
5. Ultrasonic Sensor.
if you want to wash your hands, place your hands within 15 cm from the ultrasonic sensor. According to my Arduino program, this will switch on the relay module. The submersible water pump is connected to the relay module and an external power supply. The external power supply can be adjusted to provide the appropriate voltage. The water pump is switched on and the water is pumped from the container to your hands through a tube, which is modelled as the faucet in this prototype.
IMPORTANT:
1. Arduino Software Download
2. Wire.h Download Library
3. LiquidCrystal_I2C.h Download Library
4. Servo.h Download Library
After washing your hands, place your hand in front of the IR tracking sensor. The IR sensor sends a LOW signal when an object is detected within 2cm. The LOW signal makes the servo motor to rotate 90° and open the door.
If you place your hand in front of the IR tracking sensor without washing your hands, the door will not open and the LCD display module will show a message asking you to wash your hands.
ARDUINO TESTED CODE:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Servo.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define trig 5
#define echo 4
Servo servo;
const int sensor = 3; 
const int Relay = 6;
int state;
int value; 
long duration;
int distance;
void setup() 
{
  lcd.begin();
  lcd.print("Wash your hands");
  lcd.setCursor(0,1);
  lcd.print("before you enter");
  servo.attach(9); // The servo motor D9
  pinMode(trig, OUTPUT); // trigger pin as OUTPUT
  pinMode(echo, INPUT); // echo pin as INPUT
  pinMode(sensor, INPUT); //  IR sensor as INPUT
  pinMode(Relay, OUTPUT); // relay module as OUTPUT
  Serial.begin(9600); // baud rate as 9600
}
void loop() 
{
  digitalWrite(trig, LOW); 
  delayMicroseconds(5);
  digitalWrite(trig, HIGH); // Set the trigger pin HIGH
  delayMicroseconds(10);
  digitalWrite(trig, LOW); 
  value=digitalRead(sensor); // Read the digital signal sent by the IR sensor
  duration = pulseIn(echo, HIGH); // Calculate time taken (in microseconds) 
  distance = (duration/2) * (331.3/10000); // Calculate the distance from the sensor 
  if(distance>1 && distance<15)
{
    lcd.clear();
    lcd.setCursor(1,0);
    lcd.print("Hands detected");
    lcd.setCursor(0,1);
    lcd.print("Wash hands - 20s");
    digitalWrite(Relay, HIGH); //Turns on solenoid water valve
    state=1; // Assign state variable to 1
    delay(1000); // Delay period of 1 second 
    lcd.clear();
    lcd.print("You are safe now");
  }else
{
    digitalWrite(Relay, LOW); //Turns off the submersible water pump
}
   if((state==1)&&(value==LOW))
{ 
    lcd.clear();
    lcd.setCursor(1,0);
    lcd.print("You may go in");
    lcd.setCursor(1,1);
    lcd.print("10 seconds left");
    servo.write(90);
    delay(10000); // The door will be opened for 10 seconds
    servo.write(0);
    lcd.clear();
    lcd.print("Wash your hands");
    lcd.setCursor(0,1);
    lcd.print("before you enter");
    state=0;
   } else if((state==0)&&(value==LOW))
{ 
    lcd.clear();
    lcd.print("Wash your hands");
    lcd.setCursor(0,1);
    lcd.print("To Open Gate");
}
}

About the Author

Subramanian

Hello! My Dear Friends. I am Subramanian. I am writing posts on androiderode about Electronics testing and equipments.

View All Articles