2022 Smart Irrigation System
2022 Smart Irrigation System
We declare that this senior project entitled by “Smart irrigation system using
Arduino” is the result of our own research except as cited in the references. The senior
project has not been accepted for any degree and is not concurrently submitted in
candidature of any other degree.
Names
Date: ____/_____/2022
i
APPROVAL PAGE
I hereby declare that I have read this senior project and, in my opinion, this
senior project is sufficient in terms of scope and quality for the award of a LAUREA
MAGISTRALE of electrical engineering and I accepted for the submission to the
examining panel.
Yours Sincerely,
Name: ___________________________________
Title: ____________________________________
Signature ________________________________
Date:___/______/________________
ii
ACKNOWLEDGEMENTS
First of all, we would want to express our gratitude to Allah for allowing us to
complete our proposed thesis and, indeed, our entire lives: we can accomplish
everything with him, who gives us strength.
Second, we would like to express our gratitude to our best supervisor, Mr.
Abdulahi Ali Amed, for his professional direction, follow-up, and tremendous
assistance, as well as for his valuable thoughts, remarks, and participation throughout
the proposal's learning process.
We would also want to express our gratitude to the people who took part in our
study and gave up their valuable time. We would want to express our gratitude to our
dear friends for their unconditional support throughout the process, both in terms of
maintaining our harmony and assisting us in fitting the puzzle pieces together. We will
be eternally thankful for your efforts. Of course, without the subjects' cooperation, this
proposal thesis would not have been conceivable.
Last but not least, we would like to thank our parents for their unconditional
support, both financially and emotionally throughout our academic endeavors. In
particular, the patience and understanding shown by our mothers, Fathers, sisters,
brothers and our friends during the time of this course, is greatly appreciated.
iii
ABSTRACT
When the soil moisture sensor senses the dry soil, it will show the moisture
level on the LCD display, and the relay module will switch on the water pump
automatically to start the watering process or vice versa. Hardware testing is conducted
to ensure the proposed system is fully functional.
iv
TABLAE OF CONTENTS
TITLE PAGE
DECLARATION I
APPROVAL PAGE II
ACKNOWLEDGEMENTS III
ABSTRACT IV
TABLAE OF CONTENTS V
LIST OF FIGURES VIII
LIST OF TABLES IX
LIST OF ABBREVIATIONS X
CHAPTER ONE INTRODUCTION 1
1.0 Overview 1
1.1 Background of the Study 2
1.2 Problem Statement 5
1.3 General Objectives: 6
1.4 Specific Objectives 6
1.5 Research Question 6
1.6 Significance of the study 6
1.6.1 Advantages of the System 7
1.6.2 Others Advantages 8
1.6.3 Area of Application 8
1.7 Scope of the Study 8
1.7.1 Time Scope 8
1.7.2 Geographical Scope 8
1.7.3 Content scope 9
1.8 Definition of key terms 9
CHAPTER TWO LITERATURE REVIEW 11
2.0 Introduction 11
2.1 Reviewed Literature 11
v
2.1.1 Web Based Service to Monitor Automatic Irrigation System for the
Agriculture Field Using Sensors. 11
2.1.2 Automated Irrigation System 12
2.1.3 Prototype for Automatically Navigated Water Irrigation System 13
2.1.4 Moisture Based Automatic Irrigation System 13
2.1.5 The Development of an Automated Irrigation System Using an Open Source
Microcontroller 13
2.1.6 Design and Implementation of Automatic Plant Irrigation System 14
2.1.7 Arduino Based Automatic Irrigation System 14
2.2 Conclusion 15
2.3 Irrigation systems history (ancient) 15
2.4 Modern irrigation methods 18
2.4.1 Surface irrigation 18
2.4.2 Sprinkler Irrigation 19
2.4.3 Drip irrigation 20
2.5 Smart Irrigation System 21
2.6 Need of Smart Irrigation 22
CHAPTER THREE METHODOLOGY 23
3.0 Introduction 23
3.1 Functional block diagram 23
3.2 Components of automation 25
3.2.1 Microcontroller 25
3.2.2 Arduino Uno 26
3.2.3 Arduino IDE 28
3.2.4 The Soil moisture sensor 31
3.2.5 LCD and I2C (IIC) 33
3.2.6 Water Pump 34
3.2.7 Relay Switching Circuit/Connection 35
3.2.8 Breadboard 37
3.2.9 Jumper wire 38
3.3 Software Design (Programming) 39
3.3.1 Proteus 39
3.3.2 Programming 39
vi
CHAPTER FOUR RESULT AND DISCUSSION 42
4.0 Introduction 42
4.1 System implementation 42
4.1.1 Main construction 42
4.2 System operation 44
4.3 System installation 45
4.4 Cost of smart irrigation system 46
4.5 Result 47
CHAPTER FIVE CONCLUSION AND RECOMMENDATIONS 48
5.0 Conclusion 48
5.1 Recommendation 49
5.2 Future Work 49
REFERENCES 51
APPENDICES 53
vii
LIST OF FIGURES
viii
LIST OF TABLES
Table 2.1 Web based service to monitor automatic irrigation using sensors 11
Table 2.2 Automated watering system 12
Table 2.3 Prototype for automatically navigated water irrigation system 13
Table 3.1 Arduino functions 28
Table 3.2 Arduino IDE 29
Table 3.3 Soil moisture sensor specifications 33
Table 4.1 System connection 44
Table 4.2 Cost of smart irrigation system 47
ix
LIST OF ABBREVIATIONS
x
CHAPTER ONE
INTRODUCTION
1.0 Overview
The background of the study, the problem statement, the purpose of the
research, specific objectives, research questions, scope of the study, significance of the
study, and definition of key terms were all covered in this chapter.
1
1.1 Background of the Study
The greatest crisis in modern day and age is a great disparity in the agricultural
sector turnover. The great losses incurred in agriculture: material losses or financial
losses – most of them are attributed to crop health and quality. If the crops are
determined to be not up to par, this may result in a loss. In order to prevent this, we
need to maintain the quality of crops and keep them at maximum health. On a practical
basis, this is nearly impossible for a farmer who has large lands to observe and
maintain. However, this is currently being managed manually. There is a danger in
this; many of the laborers prefer to work at white collar jobs, and as a result, there is a
large deficiency in manpower. This makes automated farming a necessary part of the
future. The greatest cause for the crops being not on par is improper irrigation (other
than natural calamities). If the irrigation issues are resolved, most of the problems are
solved. Hence this is the pinnacle point that needs to be renovated with technology.
Automating this part of the process will be extremely beneficial to farmers. (Anand.
2015)
The automated plant irrigation system will help to reduce the work load on
farmers, and help to keep the farmlands well irrigated at all times. Most of the farmers
all over the world suffer to maintain their crops with proper watering methods, but find
them helpless. This system will help farmers irrigate their lands even single-handedly,
without the need of additional manpower. Its user friendly simple circuitry will make
the user feel comfortable in using this system. The user only needs to install the circuit
and sensors and connect the pump to the circuit and its complete. The system will start
functioning upon power-up, and will need no trigger to keep it running. Automated
irrigation system provides a promising solution to farmers where the presence of a
farmer in the farm is not compulsory anymore during the process of irrigation.(Anand.
2015)
2
quality of the crops, in addition, limiting the production cost. To reach these
prerequisites, automation systems must be introduced. It is important that producer
considers on the early framework periods of mechanics and actualizes, so can achieve
an elevated level of automation(Anand. 2015)
Water is the most important cultural practice and most labor intensive task in
daily greenhouse operation. Without water no plants, no life so watering system ease
the burden of getting water to plants when they need it. Knowing when and how much
to irrigate is two important aspects of watering process. For these all above, we are
making this project so that in less water we can manage to plant and make environment
green. Though this technic we can save water and when there is no water then also we
can plant crops or plants. With the help of this technic farmers will also face less issues
or problems regarding farming or having good yield in their farms. As the unplanned
use of water inadvertently results in wastage of water This can lead to permanent loss
of aquifer capacity, water level quality will also decrease and other problems.(Gaiker,
Fasale, and Varule. 2017)
The new technology and the other application helps to make this area with the
great help as they deliver efficiency and accuracy. In the Automatic Plant watering
system using Arduino, the most significant advantages are the water is supplied only
when the moisture in soil goes below a pre-set threshold value. This saves us a lot of
water. In recent times, the farmers where using manual controls technics for the
applications of farm but now with the help of new technic the farmers irrigate the land
at regular intervals by turning the water-pump on/off when required. But sometimes
this new technic also makes deficiency of water which can be occur because of no time
management or access of water to plant. (Gaiker et al. 2017)
3
The inspiration for this concept comes from places where agriculture is the
main source of income and where climatic circumstances result in a lack of rain and
water shortages. Agriculture is the backbone of our nation. Farmers working on
farmland are completely reliant on rain and bore wells to irrigate their crops. Even if
the farmland has a water pump, farmers must switch it on and off manually whenever
the water is required.
The goal of the project is to use sensors to detect soil dryness and deliver sufficient
water to the plants. To reduce the amount of human labor required by the farmer, this
project makes it simple to manage the plants. The following purposes will be served
by the automated irrigation system:
This project is in partial fulfillment of the requirement for the final year mini-
project in electrical engineering for the academic year 2021-2022. (EE). We decided
to research this project because farmers in Somalia, in particular, sometimes use too
much or too little water in their crops, resulting in poor results. As a result, this project
helps in the accurate placement of water. We built our own soil moisture sensor to
capture moisture from the ground. It automatically pumps water into the soil if the
moisture value is less than 300.
4
1.2 Problem Statement
When plants are watered by humans, the amount of water lost rises, resulting
in enormous crop recession because too much water reaches the roots of the plants.
This can make farmers morally and physically exhausted, resulting in a drop in
agricultural output and gardens in the country.
Aside from the high cost of water, labor is getting increasingly costly. As a
result, if no attempt is made to optimize these resources, more money will be spent in
the same process. Technology is most likely a solution for lowering costs and
preventing resource loss; this project could be a powerful way to deal with such a
situation.
Despite the fact that our country's economy is mostly dependent on agriculture
and that the climate is isotropic, we are still unable to fully use agricultural resources.
Farmers in Somalia use more or less water in their crops, and the results aren't always
flawless. As a result, this project aids in the correct placement of water.
To solve this problem, we'll create a smart irrigation system that monitors soil
moisture levels and autonomously waters plants. The motor pump is turned off when
the circuit detects sufficient moisture in the soil.
5
1.3 General Objectives:
The aim of this project is to build smart irrigation system that sense soil
moisture using Arduino.
At the present time every work can be done in the easiest way by the use of
machines. No doubt, automation increases the productivity and saves a lot of time and
effort. Irrigation is the most significant part of agriculture to yield maximum profit
from your investment in the field. However, there are several machines which can be
used in agriculture field by farmers to ease their work. Unfortunately, such machines
6
are not affordable by farmers due to high cost. All they need is a simple and low-cost
machine that can be used easily for agricultural purposes.
In this project, we'll look at how to make a smart and simple irrigation system
using low-cost components. The goal of this irrigation system is to monitor soil
moisture content and immediately turn on the water pump.
Saves water - Studies show that drip irrigation systems use 30 - 50% less water
than conventional watering methods, such as sprinklers.
Improves growth - Smaller amounts of water applied over a longer amount of
time provide ideal growing conditions. Drip irrigation extends watering times
for plants, and prevents soil erosion and nutrient runoff. Also, because the flow
is continuous, water penetrates deeply into the soil to get well down into
the root zone.
Discourages weeds - Water is only delivered where it's needed.
Saves time - Setting and moving sprinklers are not required. A timer delay as
per environment can be added to the system for automatic watering.
Helps control fungal diseases, which grow quickly under moist conditions.
Also, wet foliage can spread disease.
Adaptable - A drip irrigation system can be modified easily to adjust to the
changing needs of a garden or lawn.
Simplest Method - Start by drawing a map of your garden and yard, showing
the location of plantings. Measure the distances required for lengths of hose
or plastic tubing to reach the desired areas.
7
1.6.2 Others Advantages
Very sensitive
Works according to the soil situation
Low cost and reliable circuit
Complete elimination of manpower
Roof Gardens
Lawns
Agriculture Lands
Home Gardens
This research was carried out between February 2021 and February 2022,
which is the time frame that the university committee of research has set aside for
students to complete their studies.
Mogadishu, Somalia, was the site of this research. Because it is the most active
city in the country in terms of commercial operations, Mogadishu is an appropriate
location for this type of research.
8
1.7.3 Content scope
9
with water, so that each plant has the amount of water it needs, neither too much nor
too little.( Www.Eijkelkamp)
10
CHAPTER TWO
LITERATURE REVIEW
2.0 Introduction
2.1.1 Web Based Service to Monitor Automatic Irrigation System for the
Agriculture Field Using Sensors.
Table 2.1 Web based service to monitor automatic irrigation using sensors
11
In this paper is shown that the author is using web based system to monitor the
data of the irrigation system developed. Arduino with grove moisture sensor and water
level sensor are used to detect the moisture level of water in the pot of plant and to
monitor the water level is to determine if the water has been used up or decrease and
cannot irrigate the plant anymore. They designed this to keep the system still works
even when there is no worker to irrigate the plant and to monitor water consumption
of the plant. With the help of the web based system the admin can monitor how much
water is being used for irrigating the plant that day. Zigbee protocol is used for the
Arduino microcontroller and the system to communicate with each other.
12
2.1.3 Prototype for Automatically Navigated Water Irrigation System
The moisture sensors measure the moisture level of the different plants. If the
moisture level is found to be below the desired level, the moisture sensor sends the
signal to the Arduino board which triggers the Relay to turn ON the Water Pump and
supply the water to respective plant. When the desired moisture level is reached, the
system halts on its own and the Water Pump is turned OFF.(Truneh and Balcha 2021).
Therefore, This automated irrigation system will reduce human labor and water
consumption thereby increasing productivity. This type if automated irrigation system
is ideal for indoor agriculture or vertical agriculture etc. It could also be used for home
gardening needs or could be used in multiple potted plants. (Sengottuvel and Hussain
2018)
14
System. With this automated technology of irrigation, human intervention can be
minimized. The moisture sensors will be bed in on the field. Whenever there is a
change in water concentration, these sensors will sense the change and gives an
interrupt signal to the micro-controller. Soil is one of the most fragile resources whose
soil pH property used to describe the degree of the acidity or basicity, which affects
nutrient availability and ultimately plant growth. Thus, the system will provide
automation, remote controlling and increased efficiency. Humidity sensor is connected
to internal ports of microcontroller via comparator; whenever there is a fluctuation in
temperature and humidity of the environment, these sensors sense the change in
temperature and humidity and give an interrupt signal to the micro-controller and thus
the motor is activated. A buzzer is used to indicate that the pump is on.(Minz, Saha,
and Dev 2019).
2.2 Conclusion
Based on the research papers reviewed earlier there are procedures that can be
used for the system to be used for cooperating with each other. This project must also
take account of how it can further be used to help the user. As we know this project,
Smart Irrigation System aims to irrigate the plant automatically with the help of
Arduino microcontroller, sensor and system to monitor the information. This can be
used to aid the development of this project to its completion better.
6000 BC Irrigation began at about the same time in Egypt and Mesopotamia
(present day Iraq and Iran) using the water of the flooding Nile or Tigris/Euphrates
rivers. The flood waters, which occurred July through December, were diverted to
fields for 40 to 60 days. The water was then drained back into the river at the right
15
moment in the growing cycle. (AHMED, MUTAZ, OMER and AHMED November
2016))
1700 BC (Shaduf) The Egyptian “Shaduf” (Figure 2.1) and the water wheel, or
“noria” or “sania” are probably among the earliest devices for lifting water from the
Nile River for irrigation and domestic uses. A modified version of the shaduf, called
locally Diou or Dlou, was developed in North Africa and the Arabian Peninsula at the
beginning of the ca 12th century BC. It was refined later on with the introduction of a
pulley and animal traction for lifting water from deep wells.(Angelakis et al. 2020)
500 BC (Sakia) the first use of what is now called a pump. This device was an
endless series of pots on a rope which ran over two pulleys. The oxen-powered device
powered a cogged wheel allowing the pots to enter the water supply, fill and then be
raised and emptied. The Sakia was similar to the Noria except that it was powered by
an external force rather than the flow of the river’s current. (AHMED, MUTAZ,
OMER and AHMED November 2016))
Surface irrigation is the oldest and most common method of applying water to
crops. It involves moving water over the soil in order to wet it completely or partially.
The water flows over or ponds on the soil surface and gradually infiltrates to the
desired depth. Surface irrigation methods are best suited to soils with low to moderate
infiltration capacities.(FAO. 2001).
Basin irrigation,
Border irrigation,
Furrow irrigation, and
Wild flooding.
Each surface system has its own unique advantages and disadvantages
depending on such factors as:
18
For the most part, the most often used characteristics to distinguish surface
irrigation systems are physical features of the irrigated fields. (Walker 2003)
Sprinklers are, therefore, designed to work at certain pressure levels, which are
recommended as their operating pressure. If the pressure is above or below than the
recommended level, then the distribution of water will be affected. When the pressure
19
is low, the water drops become larger and they cannot irrigate the crops that are far
from the system. If the pressure is high, then the droplets will be smaller and the crops
will not be irrigated evenly. It can also damage the sprinkler heads. Although
sprinklers are adaptable to most soils, they are best suited for sandy soil. These can be
used for irrigating lawns, gardens and agricultural fields.(https://ncert.nic.in/ 2019)
20
Figure 2.6 Drip irrigation
A Smart irrigation system performs its function well and has a good influence
on the environment in which it is installed. Once it is implemented in an agricultural
field, water distribution to crops and nurseries becomes simple and does not require
ongoing human assistance. Automatic watering may also be accomplished with the
use of mechanical devices such as clay pots or a bottle irrigation system. Irrigation
systems are difficult to deploy due to their high cost and intricate design. We have
developed certain projects on autonomous irrigation systems utilizing various
technologies after taking some essential elements into mind from experts' help.
The automated irrigation system on soil moisture sensing project aims to create
an irrigation system that uses relays to turn on or off submersible pumps in response
to soil moisture levels.
21
2.6 Need of Smart Irrigation
Irrigation systems that are intelligent are convenient. Smart irrigation systems
may save you money and help with water conservation if installed and programmed
properly. Lawn grass and plants that have died must be replanted, which can be costly.
However, the cost reductions from automated irrigating systems can be substantial.
Watering using a hose or an oscillator wastes water since neither approach is precise
enough to target plant roots. Water conservation is promoted through automatic
irrigation systems that may be set to release more exact amounts of water in a particular
region.
22
CHAPTER THREE
METHODOLOGY
3.0 Introduction
The diagram below shows a functional block diagram of the proposed smart
irrigation system using Arduino. It contains a number of functional blocks, namely:
acquisition block, microcontroller block, monitoring block, and automatic functional
block.
Acquisition block
This block consists of one soil moisture sensor that collects data from the soil.
Whether to transmit high or low voltage to the microcontroller to indicate whether the
soil is wet or dry is dependent on the moisture level of the soil. It will deliver a low
output voltage when the soil is moist and a high output voltage when the soil is dry.
This sensor is directly connected to the Arduino.
23
Microcontroller block
The Arduino Uno is the microcontroller. In this block and it is the project's
basic hardware. It collects data from the soil moisture sensor and processes it according
to the microcontroller's requirements.
Monitoring block
This block is made up of a single LCD that displays the moisture level as well
as the status of the DC water pumps as received from Arduino.
24
3.2 Components of automation
In the proposed smart irrigation using Arduino we are using the following
component and give each suitable explanation. As shown in figure 3.2 the system uses
Arduino Uno, LCD, Soil moisture sensor, relay, water pump, Breadboard, Battery and
so on.
3.2.1 Microcontroller
25
known as single-chip microcomputers, are used to operate a variety of electrical and
mechanical devices. Microcontrollers have advanced to the point where they can be
used for more complicated applications since their introduction. Some modern
microcontrollers are also programmable, allowing them to be utilized in a wider range
of applications.
Arduino has become a popular choice for designers and developers looking to
create innovative hardware projects due to its simplicity and low cost. Massimo Banzi
established Arduino in 2005 in Italy as a method for non-engineers to have access to a
low-cost, easy-to-use resource for hardware project creation. Because the board is
open-source, it is distributed under a Creative Commons license that allows anybody
to create their own. Hundreds of Arduino compatible clones and variations are
accessible on the internet, but only the Arduino-branded boards are approved.
26
Despite the fact that it was not the first board to be published, it is still the most
extensively used and documented. Due to its widespread popularity, the Arduino Uno
offers a plethora of online project guides and forums to assist you in getting started or
getting out of a bind. We like the Uno a lot because of its great features and ease of
use.
27
Table 3.1 Arduino functions
28
Figure 3.4 Arduino IDE
NO Name Function
1 Menu Bar Gives you access to the tools required to create and save
Arduino sketches.
2 Verify Compiles your code and checks for errors in spelling or
Button syntax.
3 Upload In this case, send the code to the board that is connected like
button Arduino Uno. When uploading, the lights on the board blink
rapidly.
4 New Sketch Opens a new tab, with a blank drawing
5 Sketch Name When the sketch is saved, the sketch's name is shown here.
6 Open Allows you to open a saved drawing, or one of the examples
Existing stored.
Sketch
7 Save Sketch This saves the sketch that you are currently opening.
8 Serial This will show your Arduino's serial details when the board
Monitor is connected
9 Code Area This region is where you write the sketch code which tells the
board what to do.
10 Message Area This area informs you the saving status, compiling code,
errors and such more.
11 Text Console Shows descriptions of an error messages, the size of the
compiled program and additional information.
12 Board and Tell you which board it is using and which serial port it is
Serial Port attached to.
29
Steps for Using Arduino Ide are following:
1. There are several different varieties of Arduino microcontrollers. The Arduino
Uno is the most popular, although there are more options. Before you start
developing, do some research to determine which version is the best fit for your
project?
2. To get started download and install the Arduino Programmer (also known as
the integrated development environment) (IDE)
3. Connect your Arduino to your computer's USB port. This may need the use of
a special USB cable. If you're using various Arduinos, you'll need to adjust the
port because each one has a separate virtual serial-port address.
4. In the Arduino Programmer, choose the board type and serial port.
5. Use one of the Arduino Programmer's preloaded programs, or sketches, to test
the microcontroller. To load one of the sample sketches, open it and hit the
upload button. The Arduino should start responding to the program: for
example, if you configure it to blink an LED light, the light should begin to
blink.
6. To upload new code to the Arduino, you'll either need access to code that you
can enter into the programmer or you'll have to write it yourself using the
Arduino programming language. A typical Arduino sketch consists of five
sections: a header describing the sketch and its author; a section defining
variables; a setup routine that sets the initial conditions of variables and runs
preliminary code; a loop routine where you add the main code that will execute
repeatedly until the sketch is stopped; and a section where you can list other
functions that activate during the setup and loop routines. The setup and loop
procedures must be included in all drawings.
7. Disconnect your Arduino from your computer after uploading the new sketch
and integrating it into your project as suggested.
8. Simply click the "Upload" button in the environment to begin uploading the
software. Wait a few seconds; the RX and TX covers on the board should be
flashing. The message "Done uploading." will show in the status bar if the
upload is successful.
30
Why Arduino?
This sensor has two electrodes. The moisture content surrounding this soil
moisture sensor is measured. A current is transmitted through the soil between the
electrodes, and the resistance to the current indicates the soil moisture. Water
resistance will be low if the soil has more water, allowing more current to move
through. When the soil moisture is low, the sensor module, on the other hand, produces
a high amount of resistance. There are digital and analogue outputs on this sensor.
Digital output is easy to use; however it is not as precise as analogue output. The soil
moisture sensor is frequently integrated in some type of insulation. Insulation is
frequently used for electrical reasons, such as electrical isolation of the sensor. Soil
moisture sensors are used to determine how much water is present in the soil. Multiple
soil moisture sensors form a soil moisture probe.
Except that dissolved salts considerably modify the water conductivity and can
mislead the experiments, soil electrical conductivity is simply tested using two metal
conductors spaced apart in the soil. Embedding conductors in a porous gypsum block
31
that releases calcium and sulphate ions to flood the soil background level of ions is a
cheap remedy. Over the range of -60 to -600 kPa, the water absorbed by the block is
associated with soil water potential, giving a tertiary indication for usage in medium
to heavy soils. Internal calibration methods are used to offset changes owing to solutes
and temperature in non-dissolving granular matrix sensors with a more stringent
specification for the range 0 to -200 kPa.
In this project we will use soil moisture sensor LY-69 to sense moisture content
of the soil. In agriculture, soil moisture measurement is essential for farmers to better
manage their irrigation systems. Farmers can not only use less water to raise a crop in
general, but they can also boost yields and crop quality by managing soil moisture
during important plant growth phases.
32
Table 3.3 Soil moisture sensor specifications
Working Voltage 5v
Working Current <20mA
Interface type Analog
Working Temperature 10°C~30°C
LCD (Liquid Crystal Display) screens are electrical display modules that may
be used in a variety of ways. A 16x2 LCD display is a relatively simple module that
may be found in a variety of devices and circuits. The reasons for this are as follows:
LCDs are inexpensive; they are simple to program; they have no restrictions on
showing unique and even bespoke characters (unlike seven segments), animations, and
so on.
A 16x2 LCD can display 16 characters per line on each of its two lines. Each
character is presented in a 5x7 pixel matrix on this LCD. Command and Data are the
two registers on this LCD. The LCD command instructions are stored in the command
register. A command tells the LCD to perform a certain activity, such as initializing it,
cleaning its screen, setting the cursor location, managing the display, and so on. The
data to be shown on the LCD is stored in the data register. The ASCII value of the
character to be shown on the LCD is the data. It’s a flat panel display that makes
advantage of liquid crystals' light modifying characteristics. The backlight will create
screen images for displaying the content generated by the Arduino's code.
The LCD screen is utilized in this project to display the soil moisture level as
well as the pump status, which is programmed into the ARDUINO board early on. An
LCD is a text-display device. LCDs are available in a number of formats, including
multi-character, multi-line displays. A typical LCD format is 16x2 that means, it can
show two lines of 16 characters each.
33
Figure 3.6 LCD (16x2)
Inter – Integrated Circuit (IIC or I2C) is a serial computer bus is seen in Figure
3.7. It's a tiny connector that connects CPUs and microcontrollers to lower-speed
peripheral ICs. The I2C has four ports and they are VCC, GND, ASDA, and ASCL
those ports connect I2C to Arduino. It was utilized to link the LCD to the Arduino in
this project.
A water pump is a device that is used to provide water for a specific purpose.
By connecting it to a microcontroller, it may be operated electrically. It can be turned
on and off with the use of signals. Pumping is a term used to describe the process of
34
providing water artificially. Water pumps come in a wide variety of designs. In this
project, pumping water to the plants is accomplished with the help of a tiny DC water
pump (DC mini water pump).
35
to drive an electric motor or other loads directly. Solid state relays contain no moving
components and switch using semiconductor chips.
Because relays are switches, the same terminology that applies to switches also
applies to them. A relay is a device that switches one or more poles, each of which
contacts can be thrown in one of three ways.
When the relay is activated, NO contacts link the circuit; when the relay
is inactive, NO contacts disconnect the circuit.
NC contacts disconnect the circuit when the relay is activated; the
circuit is connected when the relay is inactive.
CO or double-throw (DT), contacts control two circuits: one normally
open contact and one normally-closed contact with a common terminal.
36
Figure 3.10 Single channel relay
3.2.8 Breadboard
37
Figure 3.11 Breadboard
Jumper wires are just cables with connector pins on both ends that may be used
to link two sites without having to solder them together. Jumper wires are commonly
used with breadboards and other prototyping devices to make quick adjustments to a
circuit.
38
3.3 Software Design (Programming)
3.3.1 Proteus
It used the program Proteus ISIS to mimic our hardware model. Simulator
models such as the Atmega328, LED, LCD display, switches, pots, relays, resistors,
transistors, and sources were employed, and the results were cross-checked against
hardware results.
3.3.2 Programming
The Arduino IDE software may be used to program the Arduino Uno. The
Arduino microcontroller is a simple-to-use yet powerful single-board computer that
has gained popularity in both the hobby and professional markets. Because the
Arduino is open-source, the hardware is inexpensive and the development software is
free. The Arduino Uno board has a 5 V Atmel ATmega328 microprocessor with 2 KB
of RAM, 32 KB of flash memory for program storage, and 1 KB of EEPROM for
parameter storage. The clock speed is 16 MHz, which amounts to 300,000 lines of C
source code being executed every second. There are 14 digital I/O pins and 6 analog
input pins on the board. When executing software while not connected to the host
computer, there is a USB port for communicating to the host computer and a DC power
jack for attaching an external 6-20 V power source, such as a 9 V battery. Headers are
supplied for connecting 22 g solid wire or header connectors to the I/O pins.
39
Arduino is a simplified version of C/C++ programming language.
Programming the Arduino will be familiar if you know C. There's no need to worry if
you don't know C because only a few instructions are required to execute useful
operations. The ability to develop control software on the host PC, download it to the
Arduino, and have it execute automatically is a key feature of the Arduino. If you
disconnect the USB wire from the PC, the software will continue to run from the top
each time you press the reset button. Remove the battery and store the Arduino board
for six months in a closet. The last program you saved will execute when you reconnect
the battery. This means you connect the board to the host PC to build and debug your
software, but you don't need the PC to run it after that's done.
40
Figure 3.14 Arduino IDE interface
41
CHAPTER FOUR
4.0 Introduction
Let us construct the core assembly part of our system and their collaboration
which contains the following elements: Soil moisture sensor, Arduino, Relay, LCD,
water pump, connecting wires and breadboard,
42
Figure 4.1 Core construction
As shown in the figure above, the link between components and how they work
together is demonstrated. The soil moisture sensor connects with the Arduino using
three ports: A0, ground, and Vcc. Ground and Vcc are used as power sources, and A0
reads the soil moisture level as analog data, which is then passed to the Arduino via
pin A0, which processes the data and converts it to digital, after which the Arduino
sends the information to the relay, which determines whether it is HIGH or LOW, and
displays the result on the LCD. The Arduino is connected to the relay through three
ports: pin 7, ground, and VCC. Ground and VCC pins provide electricity, while pin 7
receives instructions from Arduino to connect or detach the power supply to the water
pump. The liquid crystal display is connected to the I2C LCD Module through 16
Connections, and the I2C LCD Module has four ports: VCC, GND, SDA, and SCL,
which are connected to the Arduino via VCC, GND, A4, and A5 respectively. The
ground and VCC pins have been utilized to power the LCD. The Arduino and
breadboard serve as the major processing and connecting center for the various parts
of the system.
43
Table 4.1 System connection
The Arduino is the center of this system, connecting all of the essential
hardware, as seen in Figure 4.2. The process starts from the soil moisture sensor. The
soil moisture sensor collects data from the soil and sends it to the Arduino board for
processing and decision-making. Next the value that the Arduino receives from the
moisture sensor is displayed on the LCD display. At the same time, the gathered data
will also be sent to the relay module, which determines whether the water pump should
be turned on or off. If the circumstance necessitates turning on the water pump, the
water pipe connected to the pump will begin to pull water from the water source and
push it to the other side of the water pipe to finish the soil watering operation.
44
Figure 4.2 System operation
We combined the main construction to produce the desired result. The primary
portion of the system is where the instructions are given and where the code is written
using the Arduino IDE (integrated development environment), which decides and
monitors if the soil needs to be irrigated or not, as well as how it is doing. When the
soil humidity reaches 100%, the soil moisture sensor reads the soil level as LOW and
sends analog data to the Arduino, which processes the data and sends information to
both the LCD and the relay. The LCD displays the word "irrigation cont." and the
sensor level to indicate that the soil requires water. When the relay gets the
information, it connects to the water pump to provide electricity. And the irrigation
will continue until certain circumstances are met, at which point the water pump will
begin to pump out the water. The representation of the statement above is shown in
the diagram below.
45
Figure 4.3 Dry soil
46
Table 4.2 Cost of smart irrigation system
1 Arduino Uno 1 $7
5 Breadboard 1 $2
8 12 Volt DC Adaptor 1 $4
Total 22.85
4.5 Result
The implementation and result have been detailed in this chapter. With our
project, we were able to demonstrate that we were effective in meeting the project's
objectives. Finally, the project is finished and ready for usage. We discuss and
demonstrate the outcome of our experiment in a few sentences. We'll show you a few
examples and try to simplify things for you. We also included the cost analysis and
additional Advantages. As a result, we expect that our project will aid gardeners and
farmers in watering their plants and gardens.
47
CHAPTER FIVE
5.0 Conclusion
The soil moisture sensor measures the moisture level (water content) of the
plants. If the moisture level is found to be below the desired level, the moisture sensor
sends the signal to the Arduino which generates the Water Pump to turn ON and supply
the water to plant. When the preferred moisture level is reached, the system halts on
its own and the Water Pump is turned OFF. As a result, the complete system's
functionality has been thoroughly examined, and it is stated to work properly.
Farmers and gardeners who do not have enough time to irrigate their
crops/plants are the most essential beneficiaries of this endeavor. It also covers farmers
who waste water while irrigating their crops. The project can be expanded to include
greenhouses where manual supervision is scarce. The concept can be used to develop
fully automated landscapes and farms. When combined with the notion of rainwater
collection, it has the potential to save a lot of water if done correctly. This technique
can be used to generate remarkable outcomes with most types of soil in agricultural
fields with significant rainfall shortages. The smart irrigation system was designed,
implemented, and met the research objectives:
48
• Use the soil moisture (humidity) sensor to detect soil moisture.
• Use the LCD screen to display the humidity data from the sensor.
• An Arduino is programmed and connected to a cell phone to control the watering
system automatically.
• To automatically turn on and off the water pump in order to irrigate the plant's
land when the soil is dry or moist.
5.1 Recommendation
The following are the primary considerations that should be considered when
developing irrigation strategies that are efficient for risk and based on water resources:
Preliminary assessment of site conditions. Choosing the right soil moisture sensors is
crucial. Installation and maintenance of sensors, as well as the selection of suitable
areas. The proper interpretation and application of soil humidity data.
Since the project's goal was to use a water pumping system for irrigation and
control it with an Arduino, there were a few things that might be done to make it better.
To irrigate the field with the appropriate amount of water, water level sensors could
be fitted. A noise sensor might also be installed to safeguard the farm field from
animals or even humans approaching the farm by emitting a loud sound such as an
alarm. This project can be developed in the future by adding a GSM module to make
a text message or telephone call for the alarm.
Another proposal for this project is to include electronic gate valves so that
multiple farms can be irrigated separately at different times using a single system, as
shown in Figure 4.4. Each land area should have its own sensors as an input to the
controller. In addition, the electronic gate valves should be connected as an output to
the controller.
49
Figure 5.1 Irrigation system control with 4 different lands
50
REFERENCES
51
HASSAN, A., WM Shah, and N. Harum. 2019. “The Development of an Automated
Irrigation System Using an Open Source Microcontroller.”
Journal.Utem.Edu.My 3(1):101–7.
https://ncert.nic.in/. 2019. “Introduction to Microirrigation System.” (July):1–42.
Minz, Sandeep, Ankit Saha, and Mrinmoy Ranjan Dev. 2019. “ARDUINO Based
Automatic Irrigation System.” 3(1):31–36.
FAO 2001 "Sprinkler Irrigation Systems Planning, Design, Operation and
Maintenance."
Schattman, Rachel E., and Chloe Boutelle. 2018. “Getting Started with Drip
Irrigation:Components and Costs.” (November):1–8.
Sengottuvel, P., and J. Hameed Hussain. 2018. “Design and Implementation Of
Automatic Plant Irrigation System.” 118(18):741–46.
American Philosophical Society. 2010. “The Origin and Spread of Qanats in the Old
World Author ( s ): Paul Ward English Published by : American Philosophical
Society Stable URL : Http://Www.Jstor.Org/Stable/986162.” 112(3):170–81.
Truneh, Hunegnaw Ylkal, and Talegeta Moges Balcha. 2021. “Moisture Based
Automatic Irrigation System.” 9(8):927–34.
Walker, Wynn R. 2003. “Surface Irrigation Simulation , Evaluation and Design.”
52
APPENDICES
CODE
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600);
lcd.init();
lcd.backlight();
lcd.clear();
pinMode(7, OUTPUT);
digitalWrite(7, HIGH);
delay(1000);
lcd.setCursor(0, 0);
lcd.print("IRRIGATION");
lcd.setCursor(0, 1);
lcd.print("SYSTEM IS ON ");
lcd.print("");
delay(3000);
lcd.clear();
}
void loop() {
int value = analogRead(A0);
Serial.println(value);
if (value > 950) {
digitalWrite(7, LOW);
lcd.setCursor(0, 0);
lcd.print("Water Pump is ON ");
} else {
digitalWrite(7, HIGH);
lcd.setCursor(0, 0);
lcd.print("Water Pump is OFF");
}
if (value < 300) {
lcd.setCursor(0, 1);
lcd.print("Moisture : HIGH");
} else if (value > 300 && value < 950) {
lcd.setCursor(0, 1);
lcd.print("Moisture : MID ");
} else if (value > 950) {
lcd.setCursor(0, 1);
lcd.print("Moisture : LOW ");
} }
53