Smart Automatic Irrigation System
Smart Automatic Irrigation System
Session: 2015-2019
Group Members:
NAME: ABDUL HASEEB REG# :15SWTBTECE 182 ROLL NO:
1212
NAME: MOHSIN IQBAL REG#: 15SWT BTECE 197 ROLL NO:
1222
NAME: SYED NOOR SHAH REG#: 15SWTBTECE 195 ROLL NO:
1220
Supervised by:
SUPERVISOR NAME
Engr. Iqbal Munir
GOVERNMENTCOLLEGE OF TECHNOLOGY
MINGORA AWAT
ABSTRACT
“The Automatic Water irrigation electrical control technology will improve irrigation
efficiency, promoting water conservation and reducing the environmental impacts. The
objectives of this project are to avoid wastage of water and increase irrigation efficiency
by using an Arduino micro controller based irrigation system. This will also improve the
traditional irrigation system in Pakistan, enabling the irrigation system to have high
efficiency and low water usage. The existing irrigation system being tedious, time
consuming and very wasteful in water usage. The micro controller based Automatic
water irrigation system gives the best feature than the traditional one”.
i
APPROVAL CERTIFICATE
It is certified that the work presented in this thesis Proposal, entitle “AUTOMATIC
WATER IRRIGATION SYSTEM” was conducted by ABDUL HASEEB , SYED
NOOR SHAH and MOHSIN IQBAL under the supervision of IQBAL MUNIR is hereby
approved as partial fulfillment of the requirement for the award of BTECH degree in
ELECTRICAL.
Signature of Signature of
Supervisor Chairman
Signature of
External Examiner
ii
DEDICATION
Dedicated to our beloved parents and teachers who enabled us and gives us the
opportunity to achieve our goals and aims and to the whole Humanity as we had tried our
best to serve humanity through this project.
iii
ACKNOWLEDGEMENT
In the name of Allah, The most gracious, merciful, the most compassionate, the
One and only supreme power, the One who make everything possible, and the One
without Who’s will the simplest is impossible. We are thankful to our parents for their
prayers and support, as we could never have achieved this moment without them. We are
extremely grateful to our project supervisor IQBAL MUNIR for his guidance, support and
motivation we needed and also for the constructive criticism as it would have difficult to
complete this project without his support. It is also an honor for us to thank our
departmental staff for their support and encouragement during the course of our project.
Last but not least we are thankful to our well-wishers.
Students 1 Abdulhaseeb
2 Syed Noor Shah
3 Mohsin iqbal
iv
TABLE OF CONTENTS
ABSTRACT.........................................................................................................................i
“The Automatic Water irrigation electrical control technology will improve irrigation
efficiency, promoting water conservation and reducing the environmental impacts. The
objectives of this project are to avoid wastage of water and increase irrigation efficiency
by using an Arduino micro controller based irrigation system. This will also improve the
traditional irrigation system in Pakistan, enabling the irrigation system to have high
efficiency and low water usage. The existing irrigation system being tedious, time
consuming and very wasteful in water usage. The micro controller based Automatic
water irrigation system gives the best feature than the traditional one”...............................i
APPROVAL CERTIFICATE.............................................................................................ii
DEDICATION...................................................................................................................iii
ACKNOWLEDGEMENT..................................................................................................iv
Chapter 1..............................................................................................................................1
Introduction..........................................................................................................................1
1. Automatic Water Irrigation System.................................................................................1
1.1.1 What is automatic water irrigation system?........................................................1
1.2 Background of the project.........................................................................................2
1.3 Problem Statement.....................................................................................................2
1.4 Objectives of the Project............................................................................................3
1.5 Scope of the project...............................................................................................3
Chapter 2..............................................................................................................................4
Literature review..................................................................................................................4
2.1 Literature review........................................................................................................4
2.2 Traditional irrigation..................................................................................................4
2.3 Smart irrigation..........................................................................................................4
2.3.1 Drip irrigation.........................................................................................................4
2.3.2 Sprinkler irrigation..................................................................................................6
Chapter 3..............................................................................................................................7
Working Methodology.........................................................................................................7
3.1 System Diagram.........................................................................................................7
3.2 Working of the system...............................................................................................8
3.3 Flow Chart.................................................................................................................8
3.4 Interfacing..................................................................................................................9
v
3.4.1 Soil moisture interfacing with Arduino..............................................................9
3.4.2 Rain Sensor interfacing with Arduino..............................................................10
3.4.3 Relay board interfacing with Arduino..................................................................11
Chapter 4............................................................................................................................12
Hardware............................................................................................................................12
4.1 Arduino Uno............................................................................................................12
4.1.2 Basic feature of Arduino Uno Board:...................................................................13
4.2 Soil moisture sensor:................................................................................................14
4.3 Rain Sensor..............................................................................................................15
4.4 Water pump.............................................................................................................16
4.5 Relay........................................................................................................................17
4.5.1 Function:...............................................................................................................17
Chapter 5............................................................................................................................18
Software.............................................................................................................................18
5.1 Arduino Programming language..............................................................................18
5.2 Arduino IDE............................................................................................................18
5.2.1 Serial Monitor:......................................................................................................18
5.3.2 Pin Definitions......................................................................................................19
5.4 Arduino Code:.........................................................................................................19
5.5 Wiring diagram:.......................................................................................................22
Chapter 6............................................................................................................................23
Conclusion/Result and Recommendation..........................................................................23
6.1 Conclusion/Result....................................................................................................23
6.2 Recommendation.....................................................................................................23
Refernces…………………………………………………………………………………24
vi
TABLE OF FIGURES
vii
Chapter 1
Introduction
In Pakistan, agriculture is the need of most of the Pakistanis source of income and it is
one of the main source of income. Agriculture also has a major impact on economy of the
country. The consumption of water increases day by day that may leads to the problem of
water scarcity.
This system is designed to observe the field/farm’s status whether the corps required
water, if the corps needed water the system gets signal and start the water pump and
irrigate the crops. Therefore when the required amount is fed into the field, the system
power off the water pumps (keyed with electric motor by shaft). Therefore efficient use
of water for irrigation, labor cost, etc., drives the need for highly efficient automated
water irrigation systems. The automatic water Irrigation is a method of supplying water
for irrigation. It is suitable for almost all fields, crops as well as Vegetables and gardens:
Residential, Industrial, Hotel, Resorts, Public & Government Enterprises, Golf Links,
Race Courses.
1
1.2 Background of the project
Pakistan is a populated country. It has been estimated that seventy five percent of our
population is related to agriculture sector. The present irrigation system is almost hundred
years old. The management of current irrigation system is big challenge. About 25% of
the irrigated area of Pakistan is affected by waterlogging and salinity/ sodicity problems.
The crop yield in Pakistan is on the lower side. The current estimated irrigation efficiency
in Pakistan is 35.5%. This means that only 35.5% of the water that reaches the fields is
actually used by the crops. An estimated 41.6 MAF of groundwater is pumped annually
in Pakistan of which more than 90% is used for irrigation. To meet the food need of the
ever-growing population, an efficient use of water is a must for sustainable agricultural
growth and agriculture-oriented activities to gain more benefits from this sector.
Increases in agricultural production will require additional water. Based on the population
growth projections, an estimated additional 10 MAF of water will be needed at the farm
gate by 2025.
These days the importance of agriculture is not to be understated. The scientists are trying
since some decades to maximize the output of agriculture using less resources including
human resource, seeds, less treatment of corps and less and proper use of water resource.
Water is also a valuable resource and therefore its usage should be in an efficient manner.
Also, water scarcity is one of the most important factors driving growth in agriculture-
based industries in Pakistan. To keep this points in mind we are going to design the smart
irrigation system in order to modernize, digitalize, minimize the human intervention and
time saving the smart irrigation system is a suitable and useful system needed nowadays.
2
comes up with a remedy to solve the above problem with high efficiency and low water
usage.
3
Chapter 2
Literature review
i) Traditional irrigation
In traditional methods water is taken from the irrigation canals, channels on the gravity
principles, or water pumps which supply the carried water to furrows or strips which are
made in the field. In this system water is take to the fields through channels or pipes
connected with a water pump while pump takes water from a lake, river, bore well to
farming field. This system is widely used in farming irrigation system. this system has
low cost system for irrigating a large area farming field. In this system the farmer fully
engaged for irrigating the crop field with number of workers. Huge amount of water
waste and large number of workers are engaged during watering.
i) Drip irrigation
4
ii) Sprinkler irrigation
5
Figure 1 Drip irrigation
6
Above systems are generally operate by a user and has the drawbacks of water wastage,
flooding, (wastage of seeds) time consuming and engagement of large amount workers,
but a smart irrigation tells that the total system is controlled by autonomous mean
automatically control the total irrigation system whether the farmer is not present in his
farm field and send messages to the farmer about the information of farm field. Which
require no worker for operating, and also less waste of water with compared to previous
three methods.
7
Chapter 3
Working Methodology
The system basically consists of three blocks which are input, control and output block.
The control block is an Arduino microcontroller which takes input signal from input
block, process it, as programmed, and then provide signal to the output block
SOIL RELAY
MOISTURE
SENSOR
ARDUINO
MICROCONTROLLER
WATER
PUMP
1
RAIN
SENSOR
8
3.2 Working of the system
The moisture sensor measure the moisture content in the soil if the moisture sensor is dry
then read the rain sensor, if the rain sensor is also dry then the D8 pin of Arduino
becomes high thus energize the relay coil. The relay switches ON the water pump. And
when the moisture sensor and rain sensor is wet, then the system will remain switch OFF.
And during the running condition if the rain start the system will switch OFF the motor
automatically
9
Figure 4 Flow Chart of Automatic Water Irrigation
3.4 Interfacing
The components which are used in this project are interfaced with Arduino
microcontroller are as follow:
10
Figure 5 Soil moisture interfacing with Arduino
Bread GND
Board
Vcc
D0
5V
GND
Rain Sensor
D7
Arduino UNO
11
3.4.3 Relay board interfacing with Arduino
The VCC of relay is connected to 5v of Arduino, GND is connected to GND of Arduino
and RC1 connected to D8 pin of digital port of Arduino.
Relay has three output terminals NC, NO and COM. the COM is Connected to Phase
wire of the 220v Supply and NO is connected to water pump.
5V
G
N
Water Pump D
D8
Arduino UNO
GND Vc
c
R
C1
Relay
Module
12
13
Chapter 4
Hardware
Arduino board designs use a variety of microprocessors and controllers. The boards are
equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to
various expansion boards (shields) and other circuits. The boards feature serial
communications interfaces, including Universal Serial Bus (USB) on some models,
which are also used for loading programs from personal computers. The microcontrollers
are typically programmed using a dialect of features from the programming languages C
and C++. In addition to using traditional compiler toolchains,
the Arduino project provides an integrated development environment (IDE) based on the
Processing language project.
14
4.1.2 Basic feature of Arduino Uno Board:
Arduino Uno comes with USB interface i.e. USB port is added on the board to
develop serial communication with the computer.
Atmega328 microcontroller is placed on the board that comes with a number of
features like timers, counters, interrupts, PWM, CPU, I/O pins and based on a
16MHz clock that helps in producing more frequency and number of instructions
per cycle.
It is an open source platform where anyone can modify and optimize the board
based on the number of instructions and task they want to achieve.
This board comes with a built-in regulation feature which keeps the voltage under
control when the device is connected to the external device.
Reset pin is added in the board that reset the whole board and takes the running
program in the initial stage. This pin is useful when board hangs up in the middle
of the running program; pushing this pin will clear everything up in the program
and starts the program right from the beginning.
There are 14 I/O digital and 6 analog pins incorporated in the board that allows
the external connection with any circuit with the board. These pins provide the
flexibility and ease of use to the external devices that can be connected through
15
these pins. There is no hard and fast interface required to connect the devices to
the board. Simply plug the external device into the pins of the board that are laid
out on the board in the form of the header.
The 6 analog pins are marked as A0 to A5 and come with a resolution of 10bits.
These pins measure from 0 to 5V, however, they can be configured to the high
range using analogReference() function and AREF pin.
13KB of flash memory is used to store the number of instructions in the form of
code.
Only 5 V is required to turn the board on, which can be achieved directly using
USB port or external adopter, however, it can support external power source up to
12 V which can be regulated and limit to 5 V or 3.3 V based on the requirement
of the project.
16
Figure 10 Soil moisture sensor
A pump is a device that moves fluids or sometimes slurries, by mechanical action. Pumps
can be classified into three major groups according to the method they use to move the
fluid direct lift, displacement, and gravity pumps. Pumps are operated by some
17
mechanism (typically reciprocating or rotary), and consume energy to perform
mechanical work to move the fluid. Pumps operate via many energy sources, including
manual operation, electricity, engines, or wind power. Pumps has many sizes, from
microscopic for use in medical applications to large industrial pumps.
Pumps are of different ratings, sizes are available in market. In this project a DC operated
(12v, 1.2A) motor/pump is being used for pumping water from the reservoir into the
sprinkler.
4.5 Relay
The relay is the device that open or closes the contacts to cause the operation of the other
electric control.
4.5.1 Function:
Relays are switches that open and close circuits electromechanically or electronically.
Relays control one electrical circuit by opening and closing contacts in another circuit. As
relay diagrams show, when a relay contact is normally open (NO), there is an open
contact when the relay is not energized. When a relay contact is Normally Closed (NC),
there is a closed contact when the relay is not energized. In either case, applying
electrical current to the contacts will change their state.
18
Relays are generally used to switch smaller currents in a control circuit and do not
usually control power consuming devices except for small motors and Solenoids that
draw low amps. Nonetheless, relays can "control" larger voltages and amperes by having
an amplifying effect because a small voltage applied to a relays coil can result in a large
voltage being switched by the contacts.
Protective relays can prevent equipment damage by detecting electrical abnormalities,
including overcurrent, undercurrent, overloads and reverse currents. In addition, relays
are also widely used to switch starting coils, heating elements, pilot lights and audible
alarms.
Chapter 5
Software
19
5.2 Arduino IDE
The Arduino Integrated Development Environment (IDE) is the main text editing
program used for Arduino programming. It is where will be typing up code before
uploading it to the board in order to program. Arduino code is referred to as sketches.
20
‘#define pinNamepinNumber’.
The functionality is either input or output and is defined by using the pinMode () method
in the setup section.
21
{digitalWrite(relay,HIGH);} // Turn on relay
if(m>500) // if soil moisture sensor value greater then 500
{digitalWrite(Greenled,HIGH);} // Turn on Greenled
if(val==1) // if rain sensor value = 1
{digitalWrite(Greenled,HIGH);} // Turn on Greenled
if(m>500) // if soil moisture sensor value greater then 500
{digitalWrite(Redled,LOW);} // Turn off Redled
if(val==1) // if rain sensor value = 1
{digitalWrite(Redled,LOW);} // Turn off Redled
22
[Link](); // update lcd
delay(100);// update lcd after 0.1 second
lcd.Clear_LCD();// clear lcd
}
23
Chapter 6
Conclusion/Result and Recommendation
6.1 Conclusion/Result
The smart prototype smart irrigation is ready to use.
This system is applicable in irrigation of small and large areas fields as well as
domestic lawns, gardens and fruit plants.
With the result of this project, first step in the future will be to transfer this project
to large scale.
The smart irrigation system improve irrigation efficiency, Promotes water
conservation and reduce the environmental impacts.
This system allows farmers for cultivation in those places which has water
scarcity, thus Control water wastage in order to preserve water resources.
This system eliminates large number of workers engaged with irrigation.
The smart sprinkler irrigation system gives the best feature than the traditional
one.
6.2 Recommendation
An extension to this system to control the system via Zig Bee instead of wire
connections. The system is incredibly versatile and economical. It doesn't need
individuals on duty. Moreover, to create more responsive mobile application
which have more controlled data.
Also we can operate this system by using renewable energy which is solar power
instead of batteries and long transmission power wires. using solar energy, will
help to reduce future cost.
Using IOT we can monitor the plants condition and control via internet from
everywhere in the world.
For large scale irrigation of large areas the use of PLC is suitable for good results
References :
[1] International journal of engineering sciences & researchtechnology(IJESRT) survey
of smart irrigation system [Link]*dr. [Link]** issn: 2277-9655
[2] water conservation potential of landscape irrigation smart controllers (m.d. dukes)
24
[3] Sankar, P., Norman, S.R,(2009) “Embedded System for Monitoring Atmosphere is
Weather Conditions Using Weather Balloon”, International Conference on Control and
Automation.
[4] Programming with C++ By C M Aslam
[5] Practical Arduino By Jonathan Oxer,
[6] [Link]
[7] [Link]
25