Project tutorial
Arduino-Based Automatic Water Tap Using IR Sensor

Arduino-Based Automatic Water Tap Using IR Sensor © GPL3+

In this project, we have made an automatic water tap using Arduino and IR sensor to solve the problem of wastage of water in our daily life.

  • 9,712 views
  • 6 comments
  • 22 respects

Components and supplies

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)

About this project

This project is an automatic water tab system to solve the problem of water wastage in our daily life.

Code

Arduino based automatic water tab using IR sensor.C/C++
In this project we have made automatic water tab using Arduino and IR sensor to solve the problem of wastage of water in daily life.
#include <Servo.h>


const int SensorPin = 3;  
//int sensorValue = 0;                
int myservo = 9;
int pos = 0; 
Servo servo;

void setup() {
  
servo.attach(myservo);
}

void loop() {
  
  digitalRead(3);
  if(SensorPin==HIGH) 
  servo.attach(9);  
  pos = 90;               // start at midpoint 90 degrees
//  Speed = 3;              // servo moves 3 degrees each time left/right is pushed// attaches the servo on pin 9 to the servo object 
             // start at midpoint 90 degrees             // servo moves 3 degrees each time left/right is pushed    // Set initial position
             
}

Comments

Similar projects you might like

WiFi ESP8266 and DHT22 Sensor

Project tutorial by Hernanduino

  • 18,791 views
  • 7 comments
  • 20 respects

Beautifully Finished Humidity and Temperature Sensor

Project tutorial by Wicked Makers

  • 16,862 views
  • 21 comments
  • 135 respects

Arduino Control AC Water Heater temperature

Project tutorial by Mohannad Rawashdeh

  • 9,039 views
  • 0 comments
  • 6 respects

Preemptive Multitasking Scheduler for AVR

Project tutorial by Akash Kollipara

  • 1,190 views
  • 0 comments
  • 2 respects

Arduino-Based Pressure Cooker Whistle Indicator

Project tutorial by sourav344

  • 870 views
  • 3 comments
  • 7 respects

Touchless Automatic Motion Sensor Trash Can

Project showcase by Will Su

  • 19,749 views
  • 17 comments
  • 34 respects
Add projectSign up / Login