Akhilesh Jodh
Computer Technology
KDK College of Engineering, Nagpur, India
akhileshjodh@gmail.com
Aman Kumar Shahu
Computer Technology
KDK College of Engineering,
Nagpur, India
amanshahu789@gmail.com
Himanshu Thakkar
Computer Technology
KDK College of Engineering,
Nagpur, India
thakkarh303@gmail.com
Kartik Dhunisinghani
Computer Technology
KDK College of Engineering,
Nagpur, India
kd19081998@gmail.com
Prof. Abhishek Nachankar
Computer Technology
KDK College of Engineering,
Nagpur, India
Abhishek_srpce@rediffmail.com
Abstract—
An electronic coin-based water dispenser system is developed by using Arduino and IR sensor. The system is automatic as it is capable of dispensing water using sensors and motors. First the coin is inserted in the coin acceptor, now the coin is been validated if it is valid or not .If coin is not valid then it is returned .If valid then IR Sensor checks for vessel or the object for pouring the water .If the vessel is not detected Arduino does not start Water Pump for fetching water .If vessel is detected the Arduino sets the timer and for the given time the water starts dispensing ,if the vessel or glass in which water is being poured is removed in between of pouring water then water stops dispensing as Arduino cuts the supply .It also stops dispensing if the glass is fully filled , thus we present water dispenser system with water saving feature.
Keywords– Arduino, IR SENSOR.
1. INTRODUCTION
Samuel Taylor Coleridge a great poet and philosopher said, “Water-Water everywhere, nor any drop to drink”. A single drop of water is precious and we cannot afford to waste it. By taking this in mind we present our idea for making a Water Dispenser System where the water wastage is almost negligent. In this we took inspiration from coin-based telephone system, coin for a call for a specific duration, similarly coin based water system. Insert coin and pour water until certain time duration or
object(vessel) is filled or object is removed suddenly.
1.1 Block Diagram
The block diagram for Coin operated water dispenser is shown in fig.1.1:
The first three blocks- transformer, rectifier and regulator are used for a proper regulated power supply. The four blocks- Display, water pump, IR sensor, Coin sensor are integrated together with Arduino/ATmega328.

1.2 Hardware and Software Description
- Arduino/AT mega 328
- Transformer
- Rectifier
- Regulator
- IR Sensor
- LCD
- Coin sensor
- Water pump
- C language programming in Arduino
Arduino/AT mega 328 AT mega 328 is a single chip microcontroller. It is RISC based microcontroller that has 32 KB ISP flash memory. This chip is implemented over the popular platform called as Arduino development platform, Arduino Uno or Nano models. AT mega 328 of Atmel is an 8-bit microcontroller. It works on 5 volts power supply. It contains 14 digital input/output pins and 6 analogy inputs .AT mega 328 has 2 KB of SRAM and 1KB of EEPROM. Arduino can be powered via USB connection. The 14 digital pins on Arduino UNO can be used as input and output pins using ‘Pin Mode ()’, ‘digital Write ()’,’ and digital Read () functions. The 6 analogue inputs are labelled from A0 to A5. A reset pin is there to reset the Arduino. It provides UART serial communication with computer. Arduino AT mega 328 is shown in the figure. Connections and pin configuration can be clearly understood by the picture.

Transformer
It is one of the components used for obtaining the regulated power supply in the circuit. Transformer works on the principle of an electro-magnetic induction. It contains primary and a secondary coil, primary is connected to the main power supply and secondary is connected to the circuit. So, a step-down transformer of 12 volts is used in the circuit.
Rectifier
It is used to convert current i.e. alternating current to direct current. Bridge rectifier which consists of 4 diodes is used. On one hand AC voltage is given and the rectified DC output is obtained on the other hand.
Regulator
Voltage regulator is used to get a constant voltage during complete process. IC 7805 is used as the voltage regulator. It is a member of fixed series. It is used to maintain a regulated voltage of 5Volt DC.
IR SENSOR
An infrared sensor is an electronic device that emits a ray in order to sense an object in its path.IR sensor is the combination of IR LED and an IR photodiode.IR LED is the emitter and the photodiode is the detecter.IR photodiode is sensitive to IR light of same wavelength as emitted by the IR LED.IR sensor is used in the water dispenser to check whether the object is placed or not.
Whenever the glass is placed in front of an IR sensor, then the light emitted by IR LED will fall on the glass (it acts like an object.) and the reflected light will be detected by the photodiode. A signal is sent to the controller which controls the water pump.

LCD
A liquid crystal display is the user interface. There are 16 pins in all with which it can be interfaced with Arduino/ATmega328. Command is given to the LCD through microcontroller and accordingly it displays.
COIN SENSOR/DETECTOR
Coin sensor is the device which is used to detect the valid coin (for which it is programmed). Coin sensor module is separately programmed for a single coin. It is connected to Arduino with pin 2. When the correct coin is detected, it passes the signal to the microcontroller (that the correct coin is inserted). The command is given to the LCD and it displays “correct is valid”
When both the conditions are satisfied (coin is correct and the glass is present) then the water will be poured out.

WATER PUMP
Pumping of water is done by a device called DC water pump. It moves water by mechanical action. Rotary or Reciprocating mechanism is basically involved in its working. It works on DC power supply of 12 volts. Water pump can be driven with the help of the transistor. Microcontroller passes the signal to the water pump to start its working when the two conditions are satisfied (glass is present and coin is detected).
Software Description
The programming is done on Arduino with the help of Arduino integrated development software environment called as Arduino software (IDE) using C language.

HARDWARE SPECIFICATION
TABLE: -HARDWARE SPECIFICATONS
II. WORKING
Coin Based water system takes the input as a coin and gives output as dispensing water if the coin is valid .The Arduino is the brain of this device and is programmed for sequential execution of the components(Coin Acceptor and Detector ,LCD,IR Sensor and Water Pump) which runs the device .Coin acceptor and detector is a component which accepts the coin and validates the coin .If the given coin is correct then IR sensor checks for the vessel in which water must be poured .When the vessel(glass) is detected by IR sensor then LCD timer is set and Water Pump start dispensing water.

III. RELATED WORK
[1]. C L WADWA, Former Professor & Head, Electrical Engineering Department, Delhi College of Engineering “smart water Controlling System”.
According to them, many of us are wasting water on a daily basis without even realising it. Water is essential for our everyday activities.
They have made a project which works as a ATM as soon as coin is entered water starts flowing but in this project we have come up with an idea where we will use sensors to detect object and timer so that for only particular time the water will be poured and with help of this method wastage of water can be avoided.
IV. CONCLUSION
The paper introduces coin-based water dispensing device, it had been possible due to various components like IR Sensor, LCD, Coin Accepter Detector, Water Pump, etc. were required to make this electronic water dispensing device.
The system can be programmed for any denomination of coin and dispensing of water can be controlled, so that neither a drop of water gets wasted.
This Electronic Water Dispensing machine is easy to install and easy to use. This can be installed on roads, railway station (public places) and also in commercial buildings.
V. FUTURE SCOPE
This fog computing application can be used in all kind of portals. For e.g. in banking, organizations, corporate world etc. It has also been used in any cloud environment, to store and load data into the cloud. It has also played the vital role in the IOT in future.
VI. ACKNOWLEDGEMENT
This research paper is made feasible with the help and support of my parents, teachers, family, friends, and all the people who guided me throughout my work. Especially, we. Would like to thank all the professors of my department who have suggested me and helped me in writing this paper. Finally, we honestly thank to our parents, family, and friends, who gave us emotional and financial support. Without the support of these peoples this research paper would not be possible.
VII. REFERENCES
- C L WADWA, Former Professor & Head, Electrical Engineering Department, Delhi College of Engineering “smart water Controlling System”.
- Arduino Microcontroller processing for everyone, Morgan, Claypool by steven Barrett.
- Muhammad Mazidi, Janice Mazidi and RolinMcKinlay, “The 8051 Microcontroller and Embedded Systems using Assembly and C”, Pearson Education, 2nd edition.
- Nicola Ivan Giannoccaro, Luigi Spedicato;” Ultrasonic Sensors for Measurements of Liquid Level, Volume and Volumetric Flow in a Tank”, Volume 1, Issue 1 April 2012, ISSN: 2159-2055.
- S.M. Khaled Reza, Shah Ahsanuzzaman Md. Tariq, and S.M. Mohin Reza, “Microcontroller Based Automated Water Level Sensing and Controlling: Design and Implementation Issue,” Proceedings of the World Congress on Engineering and Computer Science, vol I, 2014.