tusham_agarwalakroid
Published © MIT

Smart irrigation system

This is a manual and automatic irrigation system

AdvancedShowcase (no instructions)19,632
Smart irrigation system

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Solar Power Manager (for 9V/12V/18V solar panel)
DFRobot Solar Power Manager (for 9V/12V/18V solar panel)
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
9V battery (generic)
9V battery (generic)
×1
water pump
×1

Software apps and online services

Arduino IDE
Arduino IDE
MIT App Inventor
MIT App Inventor

Story

Read more

Schematics

Schematic of project

In this image all the components with the connections are given

App interface of our project

This is the app which helps us to connect with Bluetooth and let farmers pump the water from far

Code

Code of project

Arduino
This the code of the Arduino of our project
const int motor = 13;
const int soilin = A0;
int sensorValue = 0;
char bt;
const int limit = 200;

void setup()
{
  Serial.begin(9600);
  pinMode(motor, OUTPUT);
  pinMode(soilin, INPUT);
}

void loop()
{
  sensorValue = analogRead(soilin);
  
  if (sensorValue < limit)
  {
    digitalWrite (motor, HIGH);
    delay(1000);
    digitalWrite (motor, LOW);
  }
  
  while (Serial.available()>0)
  {
    bt=Serial.read();
    delay(20);
    if (bt=='2')
    {
      Serial.println (sensorValue);
    }
    else if (bt=='1')
    {
      digitalWrite (motor, HIGH);
    }
    else if (bt=='0')
    {
      digitalWrite (motor, LOW);
    }
  }
}

Credits

tusham_agarwal

tusham_agarwal

0 projects • 3 followers
akroid

akroid

0 projects • 5 followers

Comments