Professional Documents
Culture Documents
An Automated Irrigation System Using Arduino Microcontroller
An Automated Irrigation System Using Arduino Microcontroller
net/publication/330212779
CITATIONS READS
3 33,764
4 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Aslinda Hassan on 08 January 2019.
Chapter 1
An Automated Irrigation System Using
Arduino Microcontroller
Aslinda Hassan, Siah Bing Sheng, Wahidah Md Shah and Nazrulazhar Bahaman
3
Internet of Things: Usage and Application
4
An Automated Irrigation System Using Arduino Microcontroller
system. A drip irrigation system makes the efficient use of water where
the water is slowly dripped to the roots of the plants through narrow
tubes and valves. The water flow from the system can be remotely
controlled via email.
1.3
AN AUTOMATED IRRIGATION HARDWARE
IMPLEMENTATION
This project design includes several functional blocks as shown Figure
1.1, namely: acquisition block, microcontroller block, automatic
functional block and monitoring block.
• Acquisition block
This block consists of one soil moisture sensor which takes the
data from the soil. It depends on the moisture level of the soil
whether to send high or low voltage to the microcontroller to
show that it is wet or dry. When the soil is wet, it will send the
low output voltage, whereas when it is dry, it will send the high
output voltage. This sensor is directly connected to Arduino
microcontroller.
• Microcontroller block
In this block, Arduino Uno is the microcontroller which is
the core hardware of this project. It receives the input from
the soil moisture sensor and processes the input based on the
requirement coded in the microcontroller.
• Monitoring block
This block includes an LCD display, which is used to monitor the
level of soil moisture by showing the percentage of the moisture
on the screen. When the soil is dry the percentage will be lower
and vice versa. In addition, it also shows the pump status which
is on or off, in which users will know the current pump status.
5
output voltage. This sensor is directly connected to Arduino microcontroller.
Microcontroller block
In this block, Arduino Uno is the microcontroller which is the core hardware of
Internet of Things: Usage and Application
this project. It receives the input from the soil moisture sensor and processes the
Figure
Figure1.1:
1.1: Functional Blockdiagram
Functional Block diagram
6
An Automated Irrigation System Using Arduino Microcontroller
Table 1.1:1.1:
Table Arduino
Arduinopins
pinsand
and their correspondinghardware
their corresponding hardware
Hardware
Hardware Pin
Pin
Soil moisture sensor A0, Vin, GND
Soil
LCD moisture
screen sensor A0,A5,
A4, Vin, GNDGND
AREF,
Relay
LCD module
screen 5V,
A4,GND, 2
A5, AREF, GND
thecan be used
Arduino and
board andfunction for the attached
all the necessary daily life. From Figure
hardware. 1.3, isit considered
This project can be
seen that the Arduino is the center of this system which connects all
a complete prototype where it can be used and function for the daily life. From Figure
the required hardware. The soil moisture sensor measures the level of
1.3, it can be seen
moisture fromthat
thethe Arduino
soil, and itis is
thetransferred
center of thistosystem which connects
the Arduino boardall tothe
process
required and make
hardware. Thedecision.
soil moisture sensor measures the level of moisture from the
soil, and it is transferred to the Arduino board to process and make decision.
7
Internet of Things: Usage and Application
Figure 1.3:1.3:
Figure Hardware implementation
Hardware forthe
implementation for thewhole
whole project
project (Top
(Top andand
side side
view)view)
The LCD display shows the value that the Arduino received
The LCD display shows the value that the Arduino received from the moisture sensor.
from the moisture sensor. At the same time, the data acquired is sent
Attotherelay
samemodule
time, the to
data acquired iswhether
determine sent to relay module on
to switch to determine
or off thewhether
waterto
pump.
switch on If
or the condition
off the is met
water pump. for condition
If the the wateris pump
met forto
thebewater
switched
pump on,
to be
the water pipe attached to the pump will begin to draw up the water
switched on, the water pipe attached to the pump will begin to draw up the water
from the water source, and push the water to the other side of water
from the water source, and push the water to the other side of water pipe to complete
pipe to complete the watering process for the soil.
the watering process for the soil.
78
Recent Advances on IoT
An Automated Irrigation System Using Arduino Microcontroller
The soil moisture sensor must be check the upper and lower boundaries of the analog
1.3.1 The Automated Irrigation System Operation
value from pin A0 before it is convert to digital value.
The soil moisture sensor must be check the upper and lower boundaries
In Figure
of the1.4, the code
analog fragment
value from reads
pin A0thebefore
sensoritvalue from the
is convert tosoil moisture
digital sensor.
value.
The In Figure
value 1.4, the
is analog code
value fragment
is then readsinto
converted thedigital
sensorvalue
value fromtothe
either be soil
used for
moisture sensor. The value is analog value is then converted into
switching on the water pump or to be displayed on the LCD screen. The code fragment
digital value either to be used for switching on the water pump or
converts
to bethe upper bound
displayed 400 LCD
on the into 100% and The
screen. lowercode
bound 900 into converts
fragment 0% respectively
the in
upper
the last boundof400
statement theinto 100% and lower bound 900 into 0% respectively
code.
in the last statement of the code.
void readSensor()
{
sensorvalue=analogRead(A0);
sensorvalue=constrain(sensorvalue,400,900);
soil=map(sensorvalue,400,900,99,0);
}
Figure
Figure1.4:
1.4:Part
Partof
ofthe
theprogram
program for readingsensor
for reading sensor
9
8
Internet of Things: Usage and Application
void loop()
{
readSensor();
lcd.setCursor(0,0);
lcd.print("Moisture = ");
lcd.print(soil);
lcd.print("%");
10
9
An Automated Irrigation System Using Arduino Microcontroller
Figure 1.6:
Figure 1.6:Moisture sensor
Moisture sensor test
test for dry Figure 1.7: Moisture sensor
Figure 1.7: Moisture sensor test for wet
10
The main purpose of this chapter is to propose an automated irrigation system that
11
water the plant without any human control. The automated irrigation system
implemented is found to be feasible and cost effective for optimizing water resources
for agricultural production. Besides the automated irrigation system, the proposed
Internet of Things: Usage and Application
1.5 CLOSURE
The main purpose of this chapter is to propose an automated irrigation
system that water the plant without any human control. The automated
irrigation system implemented is found to be feasible and cost effective
for optimizing water resources for agricultural production. Besides the
automated irrigation system, the proposed system also provides the
monitoring function where users are able to check the soil moisture
based on the reading on the LCD display. The proposed system has
been designed and tested to function automatically. For future works,
the automated irrigation system can be configured to measure the
moisture level (water content) according to the moisture requirement
of the different plants.
References
Books and Journals
Agrawal, N., & Singhal, S. (2015). Smart drip irrigation system using raspberry pi
and arduino. International Conference on Computing, Communication &
Automation, 928–932. http://doi.org/10.1109/CCAA.2015.7148526
Devika, S. V, Khamuruddeen, S., Khamurunnisa, S., Thota, J., & Shaik, K. (2014).
Arduino Based Automatic Plant Watering System. International Journal of
Advanced Research in Computer Science and Software Engineering, 4(10), 449–456
Flörke, M., Kynast, E., Bärlund, I., Eisner, S., Wimmer, F., & Alcamo, J. (2013). Domestic
and industrial water uses of the past 60 years as a mirror of socio-economic
development: A global simulation study. Global Environmental Change, 23(1),
144–156. http://doi.org/10.1016/j.gloenvcha.2012.10.018
Kumar Sahu, C., & Behera, P. (2015). A low cost smart irrigation control system. In
2nd International Conference on Electronics and Communication Systems,
ICECS 2015 (pp. 1146–1151). http://doi.org/10.1109/ECS.2015.7124763
12
An Automated Irrigation System Using Arduino Microcontroller
Singh, P., & Saikia, S. (2017). Arduino-based smart irrigation using water flow sensor,
soil moisture sensor, temperature sensor and ESP8266 WiFi module. In IEEE
Region 10 Humanitarian Technology Conference 2016, R10-HTC 2016 -
Proceedings. http://doi.org/10.1109/R10-HTC.2016.7906792
Onlines
AQUASTAT. (2016). Water Uses. Retrieved from http://www.fao.org/nr/water/aquastat/
water_use/index.stm
13