A touchless water dispenser uses an IR sensor to detect whether or not a hand/glass is present near it. If detected, then a relay module is automatically triggered that is connected to a solenoid valve. This trigger turns the valve on to start the dispensing of water.
Here we will also make one more model of automatic touchless water dispenser that can dispense a hand sanitizer or soap along with water. So let’s make our prototype of an automatic touchless water dispenser.
Bill Of Material
First of all we need to collect the following components:
Some extra parts are needed such as a pipe/hose (as per requirement and with a diameter similar to the solenoid valve inlet and outlet).
Construction of Touchless Water Dispenser
Connect the solenoid valve inlet with any water source using any pipe or hose and then connect the components as described below. Here we will connect the power pins of the IR sensor i.e. VCC and -VE to a 5V Battery or to any other DC power source. Here VCC pin of the IR sensor is connected to the +ve pin of the battery or power source and GND is connected to -ve pin of the power source. We will also connect the VCC and GND pins of the relay modules in the same way. Next, the digital out pin of the IR sensor is to be connected to the in the pin of the relay.
|NO (Normally Open)||+Ve|
|12V Power source||Relay|
Contactless water and sanitizer dispenser
Here we will use the two IR sensors and a 2 channel relay module with solenoids, valve1 and valve2. The digital output pin of the 1st IR sensor is connected to the IN1 pin of the relay module for controlling the 1st relay of the relay module (that triggers valve1 on/off). The digital output pin of the 2nd IR sensor is connected to the IN2 pin of the relay module that triggers valve2 on/off.
Bill of Material
Now power the device and then put the glass or hand near the IR sensor. When the IR sensor with high input comes near the relay, the plunger is pushed to make contact with NO (Normally open ) and C (common ) and hence the valve turns to on position, therefore allowing the water to flow to fill the glass. When the glass is removed from there, then the valve automatically turns to off position.
If it is working in a reverse way(i.e on when not detect on and when detect off) then try the to connect the valve pin to NC