The Development of An Automated Irrigation System Using An Open Source Microcontroller
The Development of An Automated Irrigation System Using An Open Source Microcontroller
aslindahassan@utem.edu.my
Fig. 7. Code fragment for setting the LCD display and water pump switch
A. Soil Moisture Sensor Test
Fig. 7. Code fragment for setting the LCD display and water pump switch
TABLE I. III. SYSTEMSENSOR
MOISTURE TESTINGTEST PROCEDURE
This section
Test describes
III. Sthe test
Soil
YSTEM strategySensor
Moisture
TESTING that is used for this
project. The testdescribes
This section is used the
Test Purpose
toTodetermine
test whether
test strategy that
the sensor is the
values usedhardware
andfor
its this
and software will be tested early to
functionality. make sure
project. The test is used to determine whether the hardware that it is
functioning
and software according
will betotested
the requirement.
early to make sure that it is
Test A glass of water and Arduino IDE.
functioning
A. Soil according
Moisture to theTest
Sensor requirement. International
Environment Fig.9.Journal
Fig. 10. of Human
Moisture
Moisture sensor and
test
sensor test Technology
forfor
wetwet Interaction (IJHaTI), V
condition
condition
A. Soil Moisture
Expected Sensor Test
Step Step 1: Implement code to determine Fig. 10. Moisture sensor test for wet condition
TABLE I. MOISTURE SENSOR TEST
the moisture PROCEDURE
level of the soil with
Test Soil
TABLE I. Moisture Arduino
Sensor
MOISTURE IDE.
SENSOR TEST PROCEDURE
Test Purpose To test the sensor values and its functionality.
Test
Test Soil Moisture
A glass Step
Sensor
of water 2: Open
and Arduino IDE. the serial monitor in
Test Purpose
Environment To test the sensorArduino
values andIDE and see the measure
its functionality.
Test
Expected A glass
Step of water sensor
1: Implementandcode value
Arduino for the
IDE.
to determine thedry condition.
moisture level of
Environment
Step the soil with Arduino IDE.
Expected Step 1: ImplementStep 3: toImmersed
code themoisture
determine the soil moisture
level of
Step sensor
the soil with Arduino IDE.into a glass of water and see
ISSN: 2590-3551
for the wet condition in the serial 4
monitor in Arduino IDE too. ISSN: 2590-3551 4
Expected Result The soil moisture sensor is light up in
the controller when it is switched on,
and it can show the lower and upper
boundaries of the sensor value in dry
and wet conditions. Fig
into a
Figure 8 and Figure 9 show the Fig. 10.Fig.The
11. result forfor
The result thethefunctionality moisture
functionality moisture sensor
sensor test test which
‘OFF’
functionality test for the moisture sensor. In water
B. Monitoring System Test
this test, the soil moisture sensor captures high
From Fig. 11, it is shown that once the soil moisture sensor
is immersed into a dry soil, the LCD display is able to show the
The
ISSN: 2590-3551 eISSN: 2600-8122 content
Vol.which
3 No.is the
1 3% moisture
April 2019 percentage and the pump 105 irriga
status is ‘ON’. This means that the soil is insufficient of water contro
and the water pump will be switch on to start the watering found
International Journal of Human and Technology Interaction
B. Monitoring System Test Fig. 12 shows that once the soil moisture
From Fig. 11, it is shown that once the soil sensor is immersed into a wet soil, and the LCD
moisture sensor is immersed into a dry soil, display is able to show the content which is the
the LCD display is able to show the content 90% moisture percentage and the pump status
which is the 3% moisture percentage and the is ‘OFF’. Fig.
This means
13. LCD Outputthat
based the
on wetsoil is sufficient of
soil condition
pump status is ‘ON’. This means that the soil is water and the water pump will be switch off to
Fig. 12 shows that once the soil moisture sensor is immersed
insufficient of water and the water pump will be stopa wet
into thesoil,
watering process.
and the LCD display is able to show the content
switchFig.on11.to
Thestart the
result for the watering process.
functionality moisture sensor test which is the 90% moisture percentage and the pump status is
‘OFF’. This means that the soil is sufficient of water and the
IV.
water pump will CONCLUSION
be switch off to stop the watering process.
TABLE
B. II. MONITORING
Monitoring System Test SYSTEM TEST PROCEDURE
The main purpose of this paper is to propose an
From Fig. 11, it is shown
Test that once
Monitoring the soil moisture sensor
System IV. CONCLUSION
is immersed into a dry soil, the LCD display is able to show the automated irrigation system that water the plant
Test Purpose To test the function of the monitoring The main purpose of this paper is to propose an automated
content which is the 3% moisture percentage and the pump without any human control. The implemented
system. irrigation system that water the plant without any human
status is ‘ON’. This means that the soil is insufficient of water automated
control. irrigation system
The implemented automated is foundsystem
irrigation to be is
Testthe water pump will
and Arduino IDE, Soil
be switch on Moisture Sensor,
to start the watering
Environment LCD Display and Soil (Wet and Dry). feasible
found to beand costand
feasible effective after after
cost effective optimizing
optimizingthe the
process. water resources for the agricultural production. Besides the
Expected Step Step 1 : Implement code LCD display
water resources for the agricultural production.
automated irrigation system, the proposed system also provides
TABLE II. M ONITORING SYSTEM TEST PROCEDURE
function using the Arduino IDE. Besides
the thefunction
monitoring automated irrigation
where users are able tosystem,
check the thesoil
Test Monitoring System moisture
proposed based on the also
system reading displayed the
provides on the LCD. The
monitoring
Test Purpose To test theStep 2 : Put
function of thethe soil moisture
monitoring system. sensor proposed system has been designed and tested to function
Test intoSoil
Arduino IDE, theMoisture
dry soilSensor,
and seeLCDtheDisplay
content
and function where
automatically. For users are able
future works, the to check the
automated soil
irrigation
Environment Soil (Weton andthe
Dry).
Expected
LCD screen.
Step 1 : Implement code LCD display function using
moisture
system based
can be on the
configured reading
to measure thedisplayed
moisture level on(water
the
Step the Arduino IDE. content)
LCD. according
The proposedto the moisture
system requirement
has been of the different
designed
Repeat the step 2 by putting into the
plants.
wetthesoil.
Step 2 : Put soil moisture sensor into the dry soil and tested to function automatically. For future
and see the content on the LCD screen.
Expected Result The soil moisture sensor must be able works, the automated irrigation system can be
ACKNOWLEDGMENT
Repeat thetostep
differentiate between
2 by putting into the wet the
soil.wet and configured
Special thanksto measure thetomoisture
of gratitude level Teknikal
the Universiti (water
dry soil by showing the percentage
Malaysia
content)Melaka for sponsoring
according the fund under
to the moisture the UTeM
requirement
Expected on the LCD
The soil moisture sensordisplay
must be screen. If the soil
able to differentiate
Result between isthedrywet Short Term Grant with the reference number:
theand dry soil shown
percentage by showing should the
of the different plants. A high appreciation to Digital
percentagebeonlow,
the LCD display
while the screen.
soil is Ifwet
the the
soil is dry PJP/2018/FTMK(1B)/S01628.
the percentage shown should be low, while the soil is
percentage shown should be high. Forensics and Computer Networking (INSFORNET) research
wet the percentage shown should be high. group under Center for Advanced Computing Technology (C-
ACT); andACKNOWLEDGMENT
Faculty of Information and Communication
Special thanks
Technology (FTMK)ofthegratitude
use of thetoexisting
the Universiti
facilities to
complete
Teknikal thisMalaysia
research. Melaka for sponsoring the
fund under the UTeM Short Term Grant with
REFERENCES
the AQUASTAT,
[1] reference“Water number:
Uses,” FAO, PJP/2018/FTMK(1B)/
2016. [Online]. Available:
S01628. A high appreciation to Digital Forensics
http://www.fao.org/nr/water/aquastat/water_use/index.stm.
[2]
andM. A. Hanjra and M. E. Qureshi, “Global water crisis and future food
Computer Networking (INSFORNET)
security in an era of climate change,” Food Policy, vol. 35, no. 5, pp.
research group under Center for Advanced
365–377, 2010.
Computing
[3] A. K. Braimoh,Technology
“Global agriculture(C-ACT); andandFaculty
needs smart science policies,”
Agriculture and Food Security, vol. 2, no. 1, BioMed Central, p. 6,
of Information
2013.
and Communication Technology
Fig.
tion (IJHaTI), Vol. 3, 11.
Fig.LCD
No. 1, Output
12.April
LCD 2019based
Output ondry
based on dry
soilsoil condition
condition (FTMK)
[4] M. Flörke,the useI. Bärlund,
E. Kynast, of theS. Eisner,
existing facilities
F. Wimmer, to
and J. Alcamo,
complete
“Domesticthis research.
and industrial water uses of the past 60 years as a mirror of
socio-economic development: A global simulation study,” Glob.
ISSN: 2590-3551 5
REFERENCES
[1] AQUASTAT, “Water Uses,” FAO, 2016. [Online].
Available: http://www.fao.org/nr/water/
aquastat/water_use/index.stm.
[2] M. A. Hanjra and M. E. Qureshi, “Global water
crisis and future food security in an era of climate
change,” Food Policy, vol. 35, no. 5, pp. 365–377,
2010.
Fig. 12.
Fig.LCD Output
13. LCD Outputbased onwet
based on wetsoilsoil condition
condition
[3] A. K. Braimoh, “Global agriculture needs smart [15] P. Singh and S. Saikia, “Arduino-based smart
science and policies,” Agriculture and Food irrigation using water flow sensor, soil moisture
Security, vol. 2, no. 1, BioMed Central, p. 6, 2013. sensor, temperature sensor and ESP8266 WiFi
[4] M. Flörke, E. Kynast, I. Bärlund, S. Eisner, module,” in IEEE Region 10 Humanitarian
F. Wimmer, and J. Alcamo, “Domestic and Technology Conference 2016, R10-HTC 2016 -
industrial water uses of the past 60 years as a Proceedings, 2017.
mirror of socio-economic development: A global [16] Š. Koprda, M. Magdin, and M. Munk,
simulation study,” Glob. Environ. Chang., vol. 23, “Implementation of microcontroller arduino in
no. 1, pp. 144–156, 2013. irrigation system,” in Lecture Notes in Computer
[5] G. Severino, G. D. ’urso, M. Scarfato, and G. Science (including subseries Lecture Notes in Artificial
Toraldo, “The IoT as a tool to combine the Intelligence and Lecture Notes in Bioinformatics),
scheduling of the irrigation with the geostatistics 2016, vol. 9771, pp. 133–144.
of the soils,” Futur. Gener. Comput. Syst., vol. 82, [17] P. Mohandas, A. K. Sangaiah, A. Abraham,
pp. 268–273, 2018. and J. S. Anni, “An automated irrigation
[6] K. L. Steenwerth et al., “Climate-smart system based on a low-cost microcontroller for
agriculture global research agenda: Scientific tomato production in South India,” in Studies
basis for action,” Agriculture and Food Security, in Computational Intelligence, vol. 676, Springer,
vol. 3, no. 1. BioMed Central, p. 11, 2014. Cham, 2017, pp. 49–71.
[7] “Arduino - Home.” [Online]. Available: https:// [18] P. S. Barath, M. Dutta, A. Chaudhary, and M.
www.arduino.cc/. [Accessed: 23-Sep-2018]. S. Jangid, “A Novel Adaptive Framework for
[8] S. Monk, Programming Arduino: getting started Efficient and Effective Management of Water
with sketches, 2nd Editio. McGraw-Hill Education Supply System using Arduino,” in Proceedings
TAB, 2011. of the 2014 International Conference on Information
and Communication Technology for Competitive
[9] J. A. Langbridge, “ArduinoTM Sketches. Tools
Strategies - ICTCS ’14, 2014, pp. 1–4.
and Techniques for Programming Wizardry,”
Electronics, 2015. [19] D. K. Swamy, G. Rajesh, M. J. K. Pooja, and A. R.
Krishna, “Microcontroller Based Drip Irrigation
[10] S. V Devika, S. Khamuruddeen, S. Khamurunnisa,
System,” Techno-Societal 2016, no. 6, pp. 1–4, Dec.
J. Thota, and K. Shaik, “Arduino Based Automatic
2013.
Plant Watering System,” Int. J. Adv. Res. Comput.
Sci. Softw. Eng., vol. 4, no. 10, pp. 449–456, 2014. [20] B. Keswani et al., “Adapting weather conditions
based IoT enabled smart irrigation technique
[11] D. Divani, P. Patil, and S. K. Punjabi, “Automated
in precision agriculture mechanisms,” Neural
plant Watering system,” in 2016 International
Comput. Appl., pp. 1–16, Sep. 2018.
Conference on Computation of Power, Energy,
Information and Communication, ICCPEIC 2016, [21] F. Ahmed, “An IoT-big data based machine
2016, pp. 180–182. learning technique for forecasting water
requirement in irrigation field,” in Lecture Notes
[12] K. K. Kishore, M. H. S. Kumar, and M. B. S. Murthy,
in Business Information Processing, 2018, vol. 310,
“Automatic plant monitoring system,” in 2017
pp. 67–77.
International Conference on Trends in Electronics and
Informatics (ICEI), 2017, pp. 744–748.
[13] N. Agrawal and S. Singhal, “Smart drip irrigation
system using raspberry pi and arduino,”
in International Conference on Computing,
Communication & Automation, 2015, pp. 928–932.
[14] C. Kumar Sahu and P. Behera, “A low cost smart
irrigation control system,” in 2nd International
Conference on Electronics and Communication
Systems, ICECS 2015, 2015, pp. 1146–1151.