Automatic Water Dispenser
and Hand Dryer
by,
Gunigari Nihith (21EC10030) (Group Captain)
Rishabh Singla (21EC30042)
Ayush Kumar (21HS10017)
Sambit Stita Siri Sai Pradhan (21IM10029)
Kunal Vitthal Waghmare (21GG20001)
February, 2022
Abstract
Aim: To make Automatic Water Dispenser and Hand Dryer which is used to
reduce contact between people and reduce passage of dangerous Viruses and
Bacteria.
Results:
Final Outcome: We have successfully made Automatic Water Dispenser and
Hand Dryer with help of software like Arduino IDE, TinkerCAD, Freecad.
And using Arduino Uno, Two Ultrasonic Sensors, Servomotor, Breadboard,
Water can, CPU fan and NPN Transistors.
The project is running successfully without any defect.
ii
Contents
Acknowledgements v
1
1 Motivation....................…………..……………………………………. 1
2 Your model 2
3 Conclusions 3
Some Complex Results and how did you solve 4
References 5
iii
Acknowledgements
We express our solemn gratitude to the DIY coordinators
of IIT Kharagpur, who gave us the opportunity to shape
our thoughts to reality via this project.
We are extremely grateful to our mentor, Prof. Poulomi
Ganguly for her advice and guidance, without which this
project would not have been successful.
We would also like to thank all the TAs for their support
and help by the virtue of which this project has been
successfully completed,
All our fellow batchmates as well as seniors who advised
us and helped at the time of need.
Fellow group members for backing each other up and
facing all odds together.
iv
Chapter 1
Introduction
In this project we as a team made a Automatic water Dispenser and a Hand Dryer,
which is used to wash hands without making contact with them and hand dryer is
used to dry our hands after washing them.
1.Motivation
The motivation for this work is as we can see the deadly effects of Covid pandemic
around the globe, we need to take more steps to stop this dangerous virus, so we
thought of making a Automatic Water dispenser which reduces contact between
people and reduces passage of dangerous viruses.
v
Chapter 2
Automatic Water Dispenser and Hand dryer
Things we used:
Software:
➢ Tinkercad: We have used Tinkercad for preparing
circuit model and for writing code for it and we also
simulated the circuit using Tinkercad
➢ Arduino IDE: We have used Arduino IDE for
excecuting the code for hardware.
➢ Freecad: We used Freecad for making 3D model of
our project.
Hardware:
➢ Arduino Uno: Arduino Uno is used for
programming the software.
vi
➢ Water Can : It is used to store water in it.
➢ Ultrasonic Sensors: We used two ultrasonic sensor
in this project, one to detect object closer to the tap
and another to detect object closer to the hand dryer.
➢ Servomotor:We used a servomotor for opening and
closing of the tap when the ultrasonic sensor detect a
object closer or farther from the can
vii
➢ Breadboard and Jump wires: We used a breadboard
and jump wires to connect the arduino to other
components of the project.
➢ Fan for hand dryer:We used a CPU fan to make the hand
dryer
viii
➢ NPN Transsistor and Diode: We used a NPN transistor
and a diode to control the movement of fan
Circuit
Diagram:
Arduino Uno
DC
Motor
Servomotor
NPN
Transistor
Breadboard
Ultrasonic Sensors
ix
Flow Chart of working of Project :
Start
Placing Hands Placing Hands
near tap near hand dryer
Recognition of Recognition of
hands by sensors hands by sensors
near tap near hand dryer
Execution of code Execution of
code
Rotation of
Servomotor Rotation of Fan
with help of
NPN transistor
Tap will be switched Air flow takes place through
on and flow of water fan and dryes your hand
takes place
x
Code used for simulation of the Circuit
#include <Servo.h>
Servo myservo;
int echopin = 11;
int trigpin = 12;
int trigpin2 = 6;
int echopin2 = 7;
int transistor = 8;
long duration;
int distance;
long duration2;
int distance2;
void setup() {
Serial.begin(9600);
myservo.attach(13);
pinMode (echopin,INPUT);
pinMode (trigpin,OUTPUT);
pinMode (echopin2,INPUT);
pinMode (trigpin2,OUTPUT);
pinMode (transistor,OUTPUT);
}
void loop() {
digitalWrite(trigpin, LOW);
delayMicroseconds(2);
digitalWrite(trigpin,HIGH);
delayMicroseconds(10);
digitalWrite (trigpin, LOW);
duration = pulseIn(echopin, HIGH);
distance= duration*0.034/2;
Serial.println(distance);
if(distance < 5){
myservo.write(0);
Serial.println("Tap On");
Serial.print(distance);
delay(100);
}
else if(distance >= 5){ xi
myservo.write(85); // change these degrees according to your tap
Serial.println("Tap Off");
}
else if(distance >= 5){
myservo.write(85); // change these degrees according to your tap
Serial.println("Tap Off");
Serial.print(distance);
delay(120);
digitalWrite(trigpin2, LOW);
delayMicroseconds(2);
digitalWrite(trigpin2,HIGH);
delayMicroseconds(10);
digitalWrite (trigpin2, LOW);
duration2 = pulseIn(echopin2, HIGH);
distance2= duration2*0.034/2;
if(distance2<5)
{
digitalWrite(transistor, HIGH);
Serial.println("Motor On");
Serial.println(distance2);
}
else
{
digitalWrite(transistor, LOW);
Serial.println("Motor off");
Serial.println(distance2);
}
xii
➢ Chapter 3
Results and Discussion
Finally, we conclude our work and present the results of project work.
This is the photo of Automatic Water Dispenser. It works well, you can clearly see
the sensors placed beneath the tap. And the servo motor is connected to handle of tap
so that it can rotate the handle.
xiii
Here, This is Automatic Hand Dryer. Here We can see the sensors are placed below
the fan. So, when we place the hand near the fan we will feel a warm breeze which
will dry our hands.
xiv
Conclusion
Our project is made to reduce passage of dangerous viruses and
deadly diseases.
Drinking water is a basic need and washing hands are daily
work we will do before eating, so that can spread viruses or
bacteria through the tap we use to get water.
This is the motivation behind our project.
This type of dispensers can be used in public toilets as they are
used by numerous people.
And the hand dryer is used for drying the hands after washing
them. They are also made using ultrasonic sensors, so that there
is no need to touch them.
Some Complex Results and Solutions for those
➢ The servomotor which was used is very light and it was
not able to lift up the handle of the tap. For this we used
different types of wires to attach servomotor and handle of
tap and finally we used a light copper wire was used.
➢ And there was a problem with rotation of tap handle as it
was not rotating properly, so that there was not proper
flow of water through it. For this we changed the angle of
rotation of servomotor in the code and we used different
angels for this and we finally got a proper rotation at an
angle 85°.
➢ When we connected the Fan and Servomotor to the same
ground pin, the circuit was not working simultaneously
for both Fan and servomotor. We replaced the ground pins
for each one independently
xv
References
We used these videos from Youtube as our reference:
https://youtu.be/uJ9r2lP-ARA
https://youtu.be/ujxio0hXuSg
https://youtube.com/playlist?list=PLV3C-t_tgjGFyXP_-AF37AoIuxM9jzELM
https://youtu.be/PR6QPwkacks
xvii