Touchless Water Tap Using Arduino

by TECHATRONIC in Circuits > Arduino

17 Views, 0 Favorites, 0 Comments

Touchless Water Tap Using Arduino

1620326775202.jpg

Hello Guys, Welcome back to another interesting and easy projects based on Arduino Microcontroller. Today we're going to make a Touchless Water tap. Although the picture above seems to be bulky but believe me it is rather very simple and easy to make. The main components we're going to use today is Arduino, IR Sensor & 12V DC Pump.

Touchless water tap is a new technology developed to prevent unnecessary water usage by preventing the water flow. This is also gaining popularity in large public crowded places such as malls and restaurants, where people share the tap, vulnerable to transfer of germs and bacteria. So, the use of this type of taps and faucets is gaining popularity. A sensor detects the position of the hand or any other object and turns on and off a water pump on according to it.

You can also use Ultrasonic sensor in place of IR Sensor used in this project. For more detailed information visit original post of this article. As we’re working with DC supply in this tutorial, so there is not much careful attention to electrical insulation and other stuff but if you're implementing it on advanced basis then keep in mind all these factors before finalizing it.

Material Required

  • Arduino UNO
  • IR Sensor
  • Single Channel Relay Module
  • 12V DC Water Pump
  • 12V DC Power Supply
  • LED(Green And Red)
  • 2x 220-ohm Resistor
  • Jumper wires
  • Breadboard
  • USB Cable to connect Arduino UNO to Computer

Circuit Diagram

Automatic Water Tap 10.jpg

Code

 // Techatronic.com  
 int val = 0 ;  
 void setup()  
 {  
  Serial.begin(9600);  
  pinMode(4,INPUT);  // IR sensor output pin connected  
  pinMode(8,OUTPUT); // Green led pin  
  pinMode(9,OUTPUT); // Red led pin  
  pinMode(10,OUTPUT); // Relay  
  pinMode(10,HIGH);  // Relay  
 }  
 void loop()   
 {  
  val = digitalRead(4); // pir sensor output pin connected  
  Serial.println(val); // see the value in serial monitor in Arduino IDE  
  delay(100);  
 if(val == 1 )  
 {  
  digitalWrite(8,HIGH);  // Green led on  
  digitalWrite(9,LOW);  // Red led off  
  digitalWrite(10,HIGH); // Relay Module  
 }  
 else  
 {  
  digitalWrite(8,LOW);  // Green led off  
  digitalWrite(9,HIGH); // Red led on  
  digitalWrite(10,LOW); // Relay Module  
 }  
 }
For a detailed Explanation about How the code works, visit its original post.