Touchless Water Dispenser Using Arduino
Touchless Water Dispenser Using Arduino
WATER
DISPENSER
USING
ARDUINO
GROUP – 17 ECE-A
CONTENTS
Abstract
Components
Ab out c omp onents
Bloc k d iag ram
C irc uit d iag ram
Code
Working
Procedure
Advantages
Disad vantag es
ABSTRACT
About 71% of earth is covered with water but sadly only 2.5% of it is used for drinking purpose, the
reason for this is with rise in population, pollution and climate change, humans waste a lot of water due
to our negligence.
In this project the automatic water dispenser is been designed using sensors in IoT environment. For an
automatic water dispenser we used Arduino U N O and IR proximity sensor in the IoT environment. If
the water level reaches the bottom, a level sensor senses and gives out an alarm so that the user gets to
The manual taps are replaced with a smart taps that opens and closes on its own automatically due to this
3
COMPONENTS
Arduino UNO
Solenoid valve
IR sensor
Transistor (SL100)
Resistor (1K)
Diode (IN4007)
Power supply board
Tube
Water reservoir
Relay
Piezo Buzzer
ABOUT
COMPONENTS
• ARDUINO U N O
Arduino is a microcontroller based board which
was developed by arduino.cc. Uno is a
microcontroller board based on an 8-bit
ATmega328P microcontroller.
• SOLENOID VALVE
A solenoid valve is basically an Automatic
Valve which is electrically operated and thus
removes the need for an Operator or an engineer
or any other person to operate this valve
manually.
• IR SEN SO R
An infrared (IR) sensor is an electronic device
that measures and detects infrared radiation in
• TRANSISTOR
A transistor is a semiconductor device used to amplify or
switch electrical signals and power. It is composed of
semiconductor material.
• RESISTOR
A resistor is a passive two-terminal electrical
component that implements electrical resistance as a
circuit element.
• DIODE
A diode is a two-terminal electronic component
that conducts current primarily in one direction.
Diodes can be used as rectifiers, signal limiters,
voltage regulators, switches, signal modulators,
signal mixers, signal demodulators, and oscillators.
The fundamental property of a diode is its tendency
to conduct electric current in only one direction.
• RELAY
A relay is an electrically operated switch that can be turned
on or off, letting the current go through or not, and can be
controlled with low voltages, like the 5V provided by the
Arduino pins.This relay module has two channels (those
blue cubes). There are other models with one, four and eight
channels. This module should be powered with 5V, which is
appropriate to use with an Arduino.
• PIEZO BUZZER
In simplest terms, a piezo buzzer is a type of
electronic device that’s used to produce a tone, alarm or
sound. It’s lightweight with a simple construction, and it’s
typically a low-cost product. Yet at the same time,
depending on the piezo ceramic buzzer specifications, it’s
also reliable and can be constructed in a wide range of sizes
that work across varying frequencies to produce different
sound outputs.
BLOCK DIAGRAM
CIRCUIT DIAGRAM
CODE
int ir1=12;int base=13; sensorValue = analogRead(analogInPin);
const int analogInPin = A0; outputValue = map(sensorValue, 0, 1023, 0, 255);
const int analogOutPin = 9; analogWrite(analogOutPin, outputValue);
int sensorValue = 0; Serial.print("sensor = ");
int outputValue = 0; Serial.print(sensorValue);
int piezoPin = 8; Serial.print("\t output = ");
int RelayPin= 6; Serial.println(outputValue);
void setup() if (outputValue< 150){
{ digitalWrite(RelayPin, HIGH);
Serial.begin(9600); delay(3000);
pinMode(ir1, INPUT); tone(piezoPin,1000,500);
pinMode(base, OUTPUT); delay(1000);
pinMode(A0, INPUT); }
pinMode(piezoPin,OUTPUT); else if(outputValue>670){
pinMode(RelayPin,OUTPUT); digitalWrite(RelayPin, LOW);
} delay(3000);
void loop() { }
int s=digitalRead(ir1); delay(2);
if(s==0){ }
digitalWrite(base, HIGH);
delay(50000);
}
else{
digitalWrite(base,LOW);
}
WORKING