Smart Irrigation System Using Iot: Submitted in Partial Fulfillment of The Requirements For The Award of The Degree of
Smart Irrigation System Using Iot: Submitted in Partial Fulfillment of The Requirements For The Award of The Degree of
Submitted in partial fulfillment of the requirements for the award of the degree of
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY
Submitted by
2016-2020
Approved by AICTE, New Delhi
Affiliated to JNTU Kakinada
Accredited by NBA (UG: CSE,ECE,EEE,ME ,CE & IT)
Accredited by NAAC(UGC) with A+ Grade
Recognised by UGC Under Section 2(f) & 12(B)
TEQIP Participated College
ADIT Recognised by Scientific & Industrial Research Organisation(SIRO)
CERTIFICATE
This is to certify that the work embodied in this project entitled “SMART
partial fulfillment for the award of the degree of Bachelor of Technology in Information
The results embodied in this project report have not been submitted to any other
We do hereby declare that the work embodied in this project entitled “SMART
IRRIGATION SYSTEM USING IOT” is the outcome of research work carried out by
JNTUK, Kakinada, for the award of the degree of Bachelor of Technology in Information
Technology during the period 2016-20. The work is original and has not been submitted
Project Associates
J.Ramya(16A51A1220)
CH.Maneesha (16A51A1214)
D.Suresh (16A51A1216)
G. Sai chaitanya (16A51A1219)
ACKNOWLEDGEMENTS
This project was impossible without the people who supported us and believed us.
We would like to express our sincere heartfelt gratitude to our honorable, esteemed
supervisor Dr. B. V. Ramana, Professor and Head, Department of Information Technology
(IT), Aditya Institute of Technology and Management (AITAM), Tekkali, affiliated to
JNTUK, Kakinada, for his kind and valuable guidance for the completion of the project
work. His consistent support and intellectual guidance inspired us to innovate new ideas. I
am glad to work under his supervision.
We thank all our friends and classmates for their love and support. Last, but not least we
would like to thank our parents for supporting us to complete our bachelor’s degree in all
ways.
Project Associates
J.Ramya (16A51A1220)
CH.Maneesha (16A51A1214)
D.Suresh (16A51A1216)
G.Sai Chaitanya(16A51A1219)
Vision of the Department
M1: Information Technology program dedicates itself to provide students with a set of
skills, knowledge and attitude that will permit its graduates to succeed and thrive as
successful information technologists.
M2: Enhance overall personality development which includes innovative thinking, team
work, entrepreneur skills, communication skills, employability skills and ethical conduct.
M3: Ensuring effective teaching–learning process to provide in-depth knowledge of
interdisciplinary areas.
M4: Providing industry interactions through consultancy and sponsored research for the
societal needs.
PEO3: Possess leadership qualities, nourish ethical responsibilities and cherish with
communication skills.
PEO4: Enrich lifelong learning with technical savvy and promote the progressive
societal needs
PROGRAM OUTCOMES (POs)
P P P P P P P P P P
P P P P PS
CO O O O O O O1 O1 O1 SO SO
O3 O6 O7 O9 O2
1 2 4 5 8 0 1 2 1 2
PR
OJ.T 2 2 2 3 3 1 1 1 3 3 3 1 1 1 1
OT
1: Slight (Low)
2: Moderate (Medium)
3: Substantial (High)
ABSTRACT
Every living organism needs food to live, We cannot imagine life without
Irrigation. If everything gets automated even irrigation systems also need to
be. We have developed a Smart Irrigation system using the concept of IoT.
As we know farming has different stages, To help these farmers in
understanding the climatic conditions, the moisture content in the soil and to
make their decisions easy we have developed Smart Irrigation System using
IoT. We used different sensors that sense temperature, moisture and humidity
of the agricultural area. Information on all sensor nodes is collected by the
Arduino module and transmits the data to microcontroller connected with the
Wi-Fi module that uploads the report on the cloud where a farmer can
monitor those parameters in their Smart phones or PC on daily basis and take
necessary steps to make their agriculture farm grow smart…
1 INTRODUCTION
India is the country of village and agriculture plays an important role for
development of country. In our country, agriculture depends on the monsoons
which has insufficient source of water. So the irrigation is used in agriculture
field. In Irrigation system, depending upon the soil type, water is provided to
plant. In agriculture, two things are very important, first to get information of
about the fertility of soil and second to measure moisture content in soil.
Nowadays, for irrigation, different techniques are available which are used
to reduce the dependency of rain. And mostly this technique is driven by
electrical power and on/off scheduling. In this technique, water level indicator
placed in water reservoir and soil moisture sensors are placed root zone of
plant and near the module and gateway unit handles the sensor information
and transmit data to the controller which in turns the control the flow of water
through the valves.
1.1 Motivation
Area of utility
The primary focus of this project is to help the farmers and reduce
their work.
This module can be implemented in perennial plant irrigation land
and gardening land.
CHAPTER 2
2. LITERATURE SURVEY
In irrigation field, soil moisture sensor, temperature sensors are placed in root of
plant and microcontroller handles the sensor information and transmits data. One
algorithm was developed to measure threshold values of temperature sensor and
soil moisture sensor that was programmed into a microcontroller to control water
quantity.
The existing method and one of the oldest ways in agriculture is the manual
method of checking the parameters. In this method the farmers they themselves
verify all the parameters and calculate the readings. It focuses on developing
devices and tools to manage, display and alert the users using the advantages of a
wireless sensor network system. It aims at making agriculture smart using
automation and IoT technologies. The highlighting features are smart GPS based
remote controlled robot to perform tasks like weeding, spraying, moisture
sensing, human detection and keeping vigilance.
The cloud computing devices that can create a whole computing system from
sensors to tools that observe data from agricultural field images and from human
actors on the ground and accurately feed the data into the repositories along with
the location as GPS coordinates. This idea proposes a novel methodology for
smart farming by linking a smart sensing system and smart irrigator system
through wireless communication technology.
It proposes a low cost and efficient wireless sensor network technique to acquire
the soil moisture and temperature from various location of farm and as per the
need of crop controller to take the decision whether the irrigation is enabled or
not.
The partial root zone drying process can be implemented to a maximum extent.
It is designed for IoT based monitoring system to analyze crop environment and
the method to improve the efficiency of decision making by analyzing harvest
statistics.
CHAPTER-3
BASICS OF IOT
Definition
4.1.1 ESP8266
INTRODUCTION TO ESP8266
ESP8266 is a complete and self-contained Wi-Fi network solution that can carry
software applications, or through another application processor uninstall all Wi-
Fi networking capabilities. ESP8266 when the device is mounted and as the only
application of the application processor, the flash memory can be started directly
from an external Move. Built-in cache memory will help improve system
performance and reduce memory requirements. Another situation is when
wireless Internet access assume the task of Wi-Fi adapter, you can add it to any
microcontroller-based design, and the connection is simple, just by SPI / SDIO
interface or central processor AHB bridge interface. Processing and storage
capacity on ESP8266 powerful piece, it can be integrated via GPIO ports sensors
and other applications specific equipment to achieve the lowest early in the
development and operation of at least occupy system resources. The ESP8266
highly integrated chip, including antenna switch balun, power management
converter, so with minimal external circuitry, and includes front-end module,
including the entire solution designed to minimize the space occupied by PCB.
The system is equipped with ESP8266 manifested leading features are: energy
saving VoIP quickly switch between the sleep / wake patterns, with low-power
operation adaptive radio bias, front-end signal processing functions,
troubleshooting and radio systems coexist characteristics eliminate cellular /
Bluetooth / DDR / LVDS / LCD interference.
pin-layout
Characteristics of ESP8266
802.11 b / g / n
Wi-Fi Direct (P2P), soft-AP
Built-in TCP / IP protocol stack
Built-in TR switch, balun, LNA, power amplifier and matching network
Built-in PLL, voltage regulator and power management components
802.11b mode + 19.5dBm output power
Built-in temperature sensor
Support antenna diversity
off leakage current is less than 10uA
Built-in low-power 32-bit CPU: can double as an application processor
SDIO 2.0, SPI, UART
STBC, 1x1 MIMO, 2x1 MIMO
A-MPDU, A-MSDU aggregation and the 0.4 Within wake
2ms, connect and transfer data packets
standby power consumption of less than 1.0mW (DTIM3)
The ESP8266 is a low cost Wi-Fi chip with full TCP/IP stack and
microcontroller capability produced by Shanghai-based Chinese manufacturer,
Espress if. These were the first series of modules made by third-party
manufacturer, AI-Thinker with the ESP8266 and remain the most widely
available.
ESP8266 Applications
The ESP8266 ESP12E Wi-Fi Module is more user friendly with the Explore
ESP8266 Wi-Fi Module. It fits on a breadboard with all pins taken out. The
module goes into programming mode with a single reset switch.
Features:
Fits on a breadboard.
Single button 'Reset' switch for programming. Uses MOSFET's to put
the module in programming mode.
All pins of ESP12E taken out.
Separate serial pins breakout compatible with FTDI cable layout.
On-board LM1117-3.3V regulator.
Works with Arduino IDE for ESP8266.
Programs can easily dumped using USB to TTL converter.
ESP8266 ESP12E features.
ESP8266, in its default configuration, boots up into the serial modem mode. In
this mode you can communicate with it using a set of AT commands. AT
commands are based on the Hayes Command Set.
AT AT+CWMODE AT+CIPSTATUS
AT+CWLIF AT+CIPMUX
AT+CWDHCP AT+CIPSERVER
AT+CIPSTAMAC AT+CIPMODE
AT+CIPAPMAC AT+CIPSTO
AT+CIPSTA AT+CIUPDATE
AT+CIPAP +IPD
4.1.2 Soil Moisture Sensor
This moisture sensor can read the amount of moisture present in the soil
surrounding it. It's a low tech sensor, but ideal for monitoring an urban garden, or
your pet plant's water level. This is a must have tool for a connected garden. This
sensor uses the two probes to pass current through the soil, and then it reads that
resistance to get the moisture level. More water makes the soil conduct
electricity more easily (less resistance), while dry soil conducts electricity
poorly (more resistance). It will be helpful to remind you to water your indoor
plants or to monitor the soil moisture in your garden.
There are two specifications where the DHT11 is better than the DHT22. That’s
the sampling rate which for the DHT11 is 1Hz or one reading every second,
while the DHT22 sampling rate is 0,5Hz or one reading every two seconds and
also the DHT11 has smaller body size. The operating voltage of both sensors is
from 3 to 5 volts, while the max current used when measuring is 2.5mA
The DHT xx sensors have four pins, VCC, GND, data pin and a not connected
pin which has no usage. A pull-up resistor from 5K to 10K Ohms is required to
keep the data line high and in order to enable the communication between the
sensor and the ESP8266 Board. There are some versions of these sensors that
come with a breakout boards with built-in pull-up resistor and they have just 3
pins. The DHTXX sensors have their own single wire protocol used for
transferring the data. This protocol requires precise timing and the timing
diagrams for getting the data from the sensors can be found from the datasheets
of the sensors. However, we don’t have to worry much about these timing
diagrams because we will use the DHT library which takes care of everything.
4.2 SOFTWARE
CODE:
#include <DHT.h>
#include <ESP8266WiFi.h>
String apiKey = "ZOV8IO069JJFUXZZ";
const char *ssid = "Galaxy M30sE082";
const char *pass = "supernova9";
const char* server = "api.thingspeak.com";
#define DHTPIN 0
DHT dht(DHTPIN, DHT11);
WiFiClient client;
void setup()
{
pinMode(A0,INPUT);
Serial.begin(115200);
delay(10);
dht.begin();
Serial.println("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
}
void loop()
{
int m=analogRead(A0);
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t))
{
Serial.println("Waiting for the sensor reading");
return;
}
if (client.connect(server,80))
{
String postStr = apiKey;
postStr +="&field1=”;
postStr += String(t);
postStr +="&field2=";
postStr += String(h);
postStr +="&field3=";
postStr += String(m);
postStr += "\r\n\r\n";
client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: "+apiKey+"\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);
Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" degrees Celcius, Humidity: ");
Serial.print(h);
Serial.print(" Soil moisture: ");
Serial.print(m);
Serial.println("%. Send to Thingspeak.");
}
client.stop();
Serial.println("Waiting...");
delay(10000);
}
CHAPTER-5
5.1 Problem Statement
In the case of traditional irrigation system water saving is not considered. Since,
the water is irrigated directly in the land, plants under go high stress from
variation in soil moisture, therefore plant appearance is reduced.The absence of
automatic controlling of the system result in improper water control system. The
major reason for these limitations is the growth of population which is increasing
at a faster rate. At present there is emerging global water crisis where managing
scarcity of water has become a serious job. This growth can be seen in countries
which have shortage of water resources and are economically poor. So this is the
serious problem in agriculture area. So we want to design an Smart Irrigation
System which is based on ARDUINO software programming using ESP8266
WIFI module that operate automatically by sensing the moisture content of the
soil.
5.2 Proposed Statement
In this model, Smart Irrigation System is based on ESP8266 WIFI module. This
prototype monitors the amount of soil moisture content in soil. A predefined
value of soil moisture is set and can be varied with crops. In case the soil
moisture of the soil deviates from the specified range. This project is mainly
based on ARDUINO based software C programming language. In simulation,
pin2 and pin3 are used as a input pin for WIFI Module and switch respectively.
This system can be implemented on a large scale for farming purposes, which
can further prove to be more advantageous. Owing to prevailing conditions and
water shortages, the optimum irrigation schedules should be determined
especially in farms to conserve water
CHAPTER-6
Result Discussion/ Outcome Analysis
6.1 Complexity Analysis
Initial Setups in Arduino IDE Software
http://arduino.esp8266.com/stable/package_esp8266com_index.json
>>Ok
ports.
Step 2: Connect the pins of Arduino Uno to ESP8266-12 pins as mention below
5v 5v
3. 3.3v,
3v CH_PD
G Gnd (both)
nd
Tx Tx
Rx Rx
Note: Program code is directly uploaded into ESP8266 module. In this case,
Arduino board is used as a Flash Burner, i.e. code is directly uploaded to
ESP8266 module.
Step 4: While uploading the program code connect the GPIO 0 to GND.
List of Components
Components Quantity
Explore ESP8266 Wi-Fi Module 1
Temperature sensor 1
Moisture sensor 1
Humidity sensor 1
Power Supply - 5v 1 (from Arduino)
3.3v 1 (from Arduino)
9v 1 (from 9v battery)
18v 2 (from 9+9v battery)
Gnd From Arduino
Wi-Fi module has to connect the internet by an internet service provider like
mobile hotspot, Wi-Fi router.
Firstly module checks status of water level indicator, if water is present then it
proceeds otherwise it terminates.
If water is present, then it checks status of soil moisture sensor 1,
If Region 1 is wet, motor will be off.
If Region 1 is dry, valve 1 will open and motor will be on for 10
seconds.
If Region 1 is humid, valve 1 will open and motor will be on for 5
seconds.
During this, valve 2 will remain closed.
Once again module checks status of water level indicator, if water is present
then it proceeds otherwise it terminates.
If water is present, then it checks status of soil moisture sensor 2,
If Region 2 is wet, motor will be off.
If Region 2 is dry, valve 2 will open and motor will be on for 10
seconds.
If Region 2 is humid, valve 2 will open and motor will be on for 5
seconds.
During this, valve 1 will remain closed.
System is usually OFF state.
It is possible to get STATUS of the field.
It is possible to make System ON whenever. Once System is ON, it will
check the status and supply the water one time only. Then again System is OFF.
It is possible to make System OFF. But usually System is always will OFF
condition
6.3 Statistical Significance
Analyzing Data from Thing Speak Server
ThingSpeak Channel ID:
Humidity Field Chart:
Temperature Field Chart
Soil Moisture Field Chart
Chapter-7
Social Implications
Conclusion:
Future Scope:
We can interface LCD screen in order to display the current status of the
soil moisture content levels, percentage of water utilized to water the
plant, duration of time for which the water pump is ON, etc. We can also
show the graphical representation of the moisture content levels in the
soil. To improve the efficiency and effectiveness of the system, the
following recommendations can be put into consideration.
Option of controlling the water pump can be given to the farmer. The
farmer may choose to stop the growth of crops or the crops may get
damaged due to adverse weather conditions. In such cases farmer may
need to stop the system remotely. The idea of using IOT for irrigation can
be extended further to other activities in farming such as cattle
management, fire detection and climate control. This would minimize
human intervention in farming activities
List of Publications and References:
[1]“Monitoring and Control of Relative Humidity in Soil using Lab
VIEW”, International Journal of Engineering Trends and Technology
(IJETT) – Volume 9 Number 10 - Mar 2014
[2]http://ethesis.nitrkl.ac.in/3342/1/Hardware_Implementation_of_Soil_
Moisture_Monitoring_System.pdf
[3]http://www.ni.com/white-paper/7588/en/