Friday, April 16, 2021

Code for Smart Hand Wash project

Refer this code which is used to built smart hand wash project and is based on C language. The code is simple and small.

CODE

#include <Servo.h>                 //servo library
Servo servo;     
int trigPin = 5;   
int echoPin = 6;   
int servoPin = 7;
int led= 10;
long duration, dist, average;   
long aver[3];                             //array for average

void setup()

{       

    Serial.begin(9600);
    servo.attach(servoPin); 
    pinMode(trigPin, OUTPUT); 
    pinMode(echoPin, INPUT); 
    servo.write(0);                     //close cap on power on
    delay(100);
    servo.detach();
}

void measure()

      

digitalWrite(10,HIGH);
          digitalWrite(trigPin, LOW);
          delayMicroseconds(5);
          digitalWrite(trigPin, HIGH);
         delayMicroseconds(15);
         digitalWrite(trigPin, LOW);
         pinMode(echoPin, INPUT);
         duration = pulseIn(echoPin, HIGH);
         dist = (duration/2) / 29.1;    //obtain distance
}
void loop()

{       
          for (int i=0;i<=2;i++)     //average distance

 {   
         measure();               
         aver[i]=dist;           
        delay(10);              //delay between measurements
  }


 dist=(aver[0]+aver[1]+aver[2])/3;   

 if ( dist<50 )          //Change distance as per your need
 {

       servo.attach(servoPin);
       delay(1);
       servo.write(0); 
       delay(3000);       
       servo.write(150);   
      delay(1000);
      servo.detach();     
}
Serial.print(dist);
}


Overall design, Activity diagram of smart hand wash project

These are the design and activity diagram of smart hand wash project. Hope this will help you. 

        ACTIVITY DIAGRAM








Thursday, April 15, 2021

A Detailed Project on "Smart Hand Wash" for Bachelors and Masters CS and IT students



INTRODUCTION

 In this COVID-19 pandemic period which is a global outbreak, hand hygiene is the core preventive measure in the spread of the disease as advised by WHO (World Health Organization) which includes washing hands with water and soap regularly, hand sanitizing using hand sanitizers, etc.
           This project aim to design and implement a low cost smart hand wash dispenser with door controller. It is based on ARDUINO UNO, Ultrasonic Sensor and Servo Motor that can help to solve the challenges faced by security guards at different stations such as bank doors, school gates, hospital gates etc.
           We are also able to get attendance system in this smart hand sanitizer. So need to use that old fingerprint scanner machine and all. Just ID card will work.
With Help of This smart sanitizer no need to touch anything. So it is true to say “TOUCH LESS DO MORE”.

APPLICATIONS:

  1. It is extremely valuable in Hotel and eatery.
  2.  Home Application.
  3.  School and Industrial Application.


         ADVANTAGES:

  1. This task is Low cost Automation Project.
  2. Simple to Install and exactness is high.
  3.  Power Consumption is Low.


        DISADVANTAGES:

  1. Extra Cost is required to introduce this framework.
  2. Sensor detecting separation is low.

OBJECTIVES

This study is focus on designing the automatic hand washer. Through this well design technology, it can prevent the deathly disease from spreading into others. 
The objectives of this project are as below:
1) To design a well and convenient automatic hand washer.
2) To allow users to soap, wash and dry their hands without a single touch from the
users.
3) To do simulation of water flow in the nozzle of the automatic hand washer.

PROBLEM DESCRIPTION OF EXISTING SYSTEM:

•There are many systems present.
•We need to touch the hand wash before using it.

PROPOSED SYSTEM:

Our proposed system is made up of the Ultrasonic sensor was interfaced to the
microcontroller, codes were written with the Arduino sketch and the physical
sensor  was connected to the microcontroller. The Arduino UNO is a
microcontroller  board based on the ATmega328p(datasheet).It has 14 digitals
outputs  and inputs pins of which 6 can be used as PMW outputs,6 analogs
inputs,  a 16MHz quartz crystals, a USB connection ,a power jack, an ICSP reset
button.
SIGNIFICANCE OF PROJECT:

•This system helps the entire process automatically.

METHODOLOGY

        Here, An Arduino Uno microcontroller is used since it is easy to program, has inbuilt ADC, DAC. The input to the Arduino is given using an ultrasonic sensor, which is used to sense the distance, it emits ultrasonic frequency from one side and the notes the time taken by sound wave to get reflected back. When the sensor senses the hand, at a distance less than 7cm from the sensor, the Arduino gives a 100ms pulse from its digital output pin. The pump cannot be used directly, hence a relay is used as a switch. The relay accepts the pulse from Arduino and makes the pump run. The pump is 3 to 12V submersible type, which pumps out a few drops of hand sanitizer on to the hands, after pumping, the distance is sensed for every 1000ms(1s) for scanning purposes.

TOOLS AND TECHNOLOGY

TOOLS:

Arduino IDE: It is used to write and upload programs to Arduino board. The
Arduino IDE supports languages C and C++ using special rules of code
structuring.

TECHNOLOGY:

C LANGUAGE: It is imperative computer programming language,
supporting structured programming, lexical variable scope and recursion, while
a static type system prevents many unintended operations.

HARDWARE AND SOFTWARE REQUIREMENTS TO RUN THE PROJECT:-

HARDWARE REQUIREMENTS:

•Operating System: Window 7 or above
•Processor: i3 or above.
•Installed Memory(RAM): 4 GB RAM
•System Type: 32-bit or 64-bit Operating System
•Ultrasonic sensor (distance measure)
•Arduino UNO
•Arduino Connector
•Battery (9 volts)
•Jumper Wires
•Servo Motor
•Hand Wash
•Battery Connector

SOFTWARE REQUIREMENTS:

•Arduino IDE 1.8.3

FEASIBILITY STUDY

A feasibility study aims to objectively and rationally uncover the strengths and weaknesses of an existing business or proposed venture, opportunities and threats present in the natural environment, the resources required to carry through, and ultimately the prospects for success. In its simplest terms, the two criteria to judge feasibility are cost required and value to be attained. This project refers to the five areas of feasibility - Technical, Financial, Operational, Resource and Time.

Technical feasibility

This assessment is based on an outline design of system requirements, to determine whether the company has the technical expertise to handle completion of the project.

Financial feasibility

In case of a new project, financial viability can be judged on the following parameters:
•Total estimated cost of the project.
•Financing of the project in terms of its capital structure, debt to equity ratio
and promoter's share of total cost.
•Existing investment by the promoter in any other business.

Operational feasibility study

Operational feasibility is the measure of how well a proposed system solves the problems, and takes advantage of the opportunities identified during scope definition and how it satisfies the requirements identified in the requirements analysis phase of system development.

Resource feasibility

Describe how much time is available to build the new system, when it can be built, whether it interferes with normal business operations, type and amount of resources required, dependencies, and developmental procedures with company revenue prospectus.

Time feasibility

A time feasibility study will take into account the period in which the project is going to take up to its completion. A project will fail if it takes too long to be completed before it is useful. 

RESULTS
          In the above paper, Arduino is used as a microcontroller for calculating the distance between the sensor and the hand placed below it. If it is less than 7cm, then pump runs for 100ms through a relay and pumps out few mL of liquid alcohol based hand sanitizer and also senses the distance for every 1000ms. Components like pump, relay, Arduino microcontroller were tested. The Hand Sanitizer used was liquid type with Isopropanol and Chlorohexidine Gluconate (0.3%). This can also be used for gel type hand sanitizer also.

CONCLUSION

The system surely help in implementing the hand hygiene without any challenges as it is a must to sanitizer if you are to access any entry point. It is much safer and more recommended due to its touch less property which zeros down any chances for cross contamination. This is a user friendly system that anyone can make use of. It can be concluded here that the system has been successfully implemented and the aim is achieved without any deviations.


Code for Smart Hand Wash project

Refer this code which is used to built smart hand wash project and is based on C language. The code is simple and small. CODE #include <S...