Project showcase
Timer Controlled Valve for Irrigation

Timer Controlled Valve for Irrigation © MIT

Valve automatically closes after user-defined time

  • 5,362 views
  • 2 comments
  • 12 respects

Components and supplies

Ardgen 101
Arduino 101 & Genuino 101
3/4" Ball Valve
×1
3/4" Ball Valve
You Can buy from Local Harware Shop
×1
Servos (Tower Pro MG996R)
Minimum 15Kg Torque
×1
Bourns 3296w 1 103lf image 75px
Multi-Turn Precision Potentiometer- 10k ohms (25 Turn)
×1
Battery 12 V
Battery to Power arduino and Servo
×1

Necessary tools and machines

3drag
3D Printer (generic)

About this project

I solved a problem in my life, I needed to automate the irrigation system in our farm, that's why I made this project "Timer Based Valve".

Code

Arduino ProgramArduino
#include <Servo.h>
Servo myservo;//servo object to control servo
int potPin = A0;    // select the input pin for the potentiometer

int val = 0;       // variable to store the value coming from the sensor
int timerdelay;

void setup() {
myservo.attach(9);//Servo Connected to Pin 9
}

void loop() {
  val = analogRead(potPin);
if(val<100)
{
timerdelay=5*1000*60://5 Minutes Delay
}
else if(val>=100 && val<=200)
{
timerdelay=10*1000*60;//10 Minutes delay
}
else if(val>200 && val<=300)
{
timerdelay=15*1000*60;//15 minutes Delay
}
else if(val>300 && val<=400)
{
timerdelay=20*1000*60;//20 Minutes Delay
}
else
{
timerdelay = 0;
}
myservo.write(180);//Open the Valve
delay(timerdelay);//Wait for specified delay
myservo.write(0);//Close the Valve
                
}

Schematics

Circuit Diagram
Diagram

Comments

Similar projects you might like

Bluetooth Controlled Light Switch

Project showcase by The Instrumentation Crustaceans

  • 23,938 views
  • 4 comments
  • 27 respects

Android Controlled Toy Using Raspberry Motor Shield

Project tutorial by Volkan Sarıoğlu

  • 6,241 views
  • 6 comments
  • 22 respects

Arduino Controlled Piano Robot: PiBot

Project tutorial by Remy Jeremy Yoo

  • 10,965 views
  • 5 comments
  • 48 respects

RC Car to BT Car Controlled with Blynk

Project tutorial by Team Daxes Hacks

  • 3,600 views
  • 2 comments
  • 6 respects

Control your windows and Bust burglars

Project tutorial by Mahmoud Labib

  • 2,961 views
  • 0 comments
  • 5 respects

Wifi Controlled Car with Central Hub

Project showcase by Team Cooper and Vaughn

  • 2,555 views
  • 0 comments
  • 11 respects
Add projectSign up / Login