Project showcase
Timer Controlled Valve for Irrigation

Timer Controlled Valve for Irrigation © MIT

Valve automatically closes after user-defined time

  • 8,873 views
  • 3 comments
  • 16 respects

Components and supplies

Ph abx00005 iso (1) bavevgguw1
Arduino 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 Team The Instrumentation Crustaceans

  • 27,784 views
  • 5 comments
  • 28 respects

Android Controlled Toy Using Raspberry Motor Shield

Project tutorial by Volkan Sarıoğlu

  • 7,403 views
  • 6 comments
  • 24 respects

Integrated HOME Irrigation System

by Hernanduino

  • 4,935 views
  • 0 comments
  • 19 respects

Arduino Controlled Piano Robot: PiBot

Project tutorial by Remy Jeremy Yoo

  • 13,262 views
  • 6 comments
  • 49 respects

Smart Irrigation Controller

Project tutorial by Christian

  • 11,689 views
  • 12 comments
  • 37 respects

RC Car to BT Car Controlled with Blynk

Project tutorial by Team Daxes Hacks

  • 7,099 views
  • 2 comments
  • 7 respects
Add projectSign up / Login