You are on page 1of 5

ZigBee-Based Irrigation System for Home Gardens

A. R. AI-Ali, Murad Qasaimeh, Mamoun AI-Mardinia, Suresh Radder and I. A. Zualkernan


Department of Computer Science and Engineering, American University of Sharjah, UAE
P. O. Box 26666, Sharjah, UAE
Email: aali@aus.edu

Abstract- Single-chip microcontrollers equipped with designed [4]. The system can use up to three soil moisture
wireless transceivers are gaining popularity in smart home sensors and up to four thermocouple temperature to control the
automation because of their built-in resources, low power irrigation schedule. A wireless irrigation system consists of
consumption, size, afford ability and durability. Research and weather station that is equipped with Bluetooth and global
development professionals are seizing the opportunity to design position system (GPS) was designed [5]. The weather station
and integrate more functions and services for smart home
transmits the status of the soil moisture and temperature and
monitoring and control systems utilizing such microcontrollers.
surrounding air temperature through Bluetooth to a
This paper presents a wireless irrigation system for a smart home
computerized base station which can be access the internet.
garden that can be integrated with existing smart home control
Some has utilized the mobile phone short messaging service
systems. The system consists of slave nodes and a master station
(SMS), GPS and Camera to collect farm fields' photos and
each of which is equipped with a wireless microcontroller. Each
slave node is equipped with a temperature sensor, a soil-moister
broadcast it for remote inspection [6-8]. Some of the reported
sensor, a water valve, a microcontroller and a zigbee transceiver.
irrigation systems use soft computing tools such as fuzzy logic
The slave microcontroller reads and frames the surrounding
and neural networks to control the irrigation schedules and
temperature of the garden's grass and trees along with soil better manage the water resources [9-12]. It was also reported
moisture. Then, the frame is forwarded to the master station via that some systems may save 20%-30% of water consumption
a zigbee ad-hoc network. The master station has an embedded in comparison to conventional methods [11]. Utilizing such
fuzzy logic irrigation algorithm to water the grass and trees systems increases crop yield per square meter and optimizes
based on a set of rules. A home web-server is interfaced with the energy requirement based on particular timing operation [12].
master station for remote access monitoring and operation. The
proposed system can be operated as a stand-alone unit or can be
On the other hand, smart homes are equipped with smart
integrated with existing home automation systems.
appliances that are fully automated using wired and/or wireless
embedded controllers. Several standby power reduction and
Keywords- zigbee; smart home; fuzzy logic; remote energy management systems have been reported [13-16]. Smart
monitoring; energy meters have also been implemented in millions of
residential premises to better manage and save power [17-20].
Smart home appliances are monitored and controlled remotely
I. INTRODUCTION
as well as locally using wired and wireless stand-alone
embedded systems that utilized single chip microcontrollers
Single chip based embedded systems, smart sensors and [21-25].
wireless networks are gaining ground in irrigation systems of From the aforementioned studies, one can conclude that
large farmlands, greenhouses, pastures and fruit orchards [1- smart homes that are equipped with controllers provide
12]. A wireless sensor network that monitors soil humidity and multiple integrated functions and services but lack irrigation
temperature, and solar radiation was designed [1]. The functions to water garden grass and trees.
collected data from these sensors is transmitted to a web
service via a coordinator. Farmers can access, monitor and This paper proposes an outdoor garden automatic irrigation
manage the system via the World Wide Web. Another wireless system for smart homes. This added service can be a stand­
sensor network with irrigation valve control system was alone or integrated within the existing smart home automation
developed [2]; the valve actuation is based on a single chip systems as a sub-module. The proposed system is based on
microcontroller with an embedded customized firmware, a Web Server-Master-Slaves architecture; each slave consists of
power deriver circuit, a communication protocol and a web a set of sensors, water valve actuators, single chip
interface. The wireless access range reached 1610 meters microcontroller and wireless transceiver. The master receives
under the line-of-sight condition and 170 meters under the garden temperature and soil moisture from the slave nodes.
obstructed conditions. A zigbee-based data acquisition was The water valves are operated according to predefined
designed for street forestation trees, bonsai plants and irrigation modes. The system is interfaced with a PC-server to
greenhouse [3]. The weather condition is collected and enable access through the Internet to manage the irrigation
transmitted to a Java based control algorithm that makes the scenarios remotely.
makes the irrigation scheduled based the plant type and The rest of the paper is organized as follows: Section II
predefined scenarios. specifies the system requirements. Section III describes the
A low-cost RFID-based system to monitor the soil moisture proposed system hardware architecture. Section IV details the
status in crops field and surrounding air temperature was embedded software operation scenarios. Implementation and

978-1-4799-6532-8/15/$31.00 ©2015 IEEE


testing are discussed in section V followed by a conclusion in embedded irrigation algorithms that will be described in
section VI. section IV.
e. Server Module.
II. THE PROPOSED SYSTEM REQUlREMENTS
This module integrates the master and slave modules
To design an effective and efficient system, the functional described earlier with a home web server. The server is a high­
and non-functional requirements should be specified. The end personal computer that is equipped with wireless interface
following requirements must be satisfied for the proposed
for communicating with the master-module. Adding the server
system:
allows web access for a remote operation. Figure 3 depicts the
• Made from off-the-shelf complements and Easy to system slave-master-server hardware building blocks.
install and configure.
• Easy to operate and switch between manual and
automatic operation modes.
M.icro­
• Supports two way wireless communications between Controller
server, master and slave,
• Displays periodic and historic sensor array data of each
slave.
• Allows operation through the Internet and smart phone.
Fig. I. Building blocks for the Slave-Node
• Should be mobile, cost effective, reliable and secure
To fulfill the above mentioned requirements, the proposed I Slave-Nodl�O I Slavc-Nodc-l I Siave-Nodc-N I
.. ..
irrigation system must have hardware and software .e:. .e:.
..

.e:.
architectures. Both architectures are described in the following � � �
sections.

III. PROPOSED SYSTEM HARDWAE ARCHITECTURE

To satisfy the hardware architecture requirements, the [\01 aster


proposed system consists of three basic modules: slave, master
and server modules. These modules are developed in a modular
Fig. 2. Master-Slaves hardware layout
fashion and thus allowing master-slaves or server-master­
slaves to operate as standalone modules.

A. Slave Module
This module consists of several off-the-shelf components
namely; temperature and soil moister sensors, a signal
conditioning circuit, single-chip microcontroller with ZigBee
transceiver [26], driver circuit and a water valve. The
C
microcontroller has built-in digital input/output ports, analog­ I
i
to-digital-converter and programmable memory. Figure 1 e
shows the slave-module basic building blocks. In this module, www
'='
the microcontroller gathers the temperature and soil moister .

and operates the water valves based on an embedded irrigation


algorithm that will be described in section IV. The � Server

microcontroller sends the collected data to the master using a


low-power wireless Zigbee network.
Fig. 3. Proposed system overall hardware building blocks

B. Master Module IV. SYSTEM SOFTWARE ARCHITECTURE


This module consists of several add-on slave-modules and one To satisfy the system software requirements, the irrigation
master that coordinates with the slave modules as described in system algorithm is divided into two modes of operation;
section II-A. The master is a single-chip microcontroller that manual and fuzzy operation modes:
is also used in the slave-module integrated with wireless
Zigbee transceiver. Figure 2 shows the master-slaves hardware A. Manual Operation Mode
layout. Through wireless transceiver, the master module
In this mode, two slaves are used. One monitors and irrigates
gathers the sensors array data from each slave node and
the garden trees through one valve while the other monitors
commands the water valve of each slave-module based on
and irrigates the garden grass through another valve. The
system is scalable. Additional slave nodes can be added as Dry Ilormal Wet
desired. Each slave is essentially stand-alone. The
microcontroller in the slave reads the temperature and
moisture sensors and water the trees and grass manually.
Home owner turns ON/OFF the watering valve manually
0.8
, (V
whenever required. 05

B. Fuzzy Operation Mode


0.2 �
In this mode, the master node communicates with slave nodes
using the Zigbee protocol to form a wireless sensor network
[26]. The operation of slave nodes is automatically 10 20 3U
'''\
4V 5()
\
60 70 8() 90 100
coordinated via the master node. The master receives each i'lput variable "So oiSlure"
slave sensor' s readings and coordinates the watering process Fig. 4. Temperature Membership Functions
based on a fuzzy logic algorithm. For each slave, the fuzzy
logic algorithm has two attributes for the inputs and one Col4 Warm H ot
attribute for the output. The input attributes are the
temperature (Temp) and soil moisture (S-Moist), and the
0.6
output attribute is the water valve (W-Valve).
There are three steps that are involved in the fuzzy logic
algorithm namely; fuzzification, rules-based inference engine
and defuzzification:
• Fuzzification
The fuzzification process converts the crisp input
variable values into linguistics terms and maps them 5 10 15 20 25 3D 35
with a set of membership functions. Each slave-node ilpui variable "TelfClerature"
has two crisp input values namely; temperature and soil Fig. 5. Soil Moisture Membership Functions
moisture. It is assumed that the temperature linguistic
terms are cold, warm and hot. The soil moisture • Defuzzification:
linguistic terms are dry, normal and wet. Figure 4 and 5 The defuzzification process is the method of
show the proposed membership functions along with converting the rule-based engine decision into a single
their ranges. quantifiable output. The water valve for each slave
• Rules-Based Inference Engine node has two linguistic terms namely; ON and OFF.
A set of fuzzy rules is assembled using: Table I shows output membership functions for the
"If < premises> Then < conclusion>" structure water valve. Once a rule is decided based on the inputs
The number of rules is obtained using the following from the fuzzifier, the output valve is turned ON or
formula [28]: OFF accordingly. The root-sum-square (RSS) and
N=Pl xP2 x . . . . . . . . . xPN fuzzy centroid algorithm methods are used to calculate
Where: the crisp value for the valve status [27]. For example,
N is the total number of possible rules for the fuzzy the temperature was set at l3°C and soil moisture was
set at 37%. The corresponding weights for the l3°C
system and PN is the number of linguistic terms for the
temperature are; Cold=Rl=O. 4, Warm=O.6 and
input linguistic variables N.
Hot=O. O and for 37% soil moisture are; Dry=O.8,
Since there are three membership functions for the Normal=O.2, Wet=O. O). For this case, four rules
temperature and three membership functions for the attributes to the "ON" status (Rl, R4, R7 and R8) and
soil moisture, the total number of rules is: N = 3 * 3 = five rules attributes for the OFF status. (R2, R3, R5, R6
9. Table I shows the rules and weight calculations. and R9). Using the RSS method, the output valve
status is calculated as shown in the equations 7-8.
TABLE I. FUZZY RULES Equation 9 combines both "ON" and "OFF" weights to
Rule IF Temp. AND Soil THEN Water calculate the actual valve weight.
# Moist. Valve

I if cold and dry then on


2 if cold and norm. then off (0
3 if cold and wet then off
4
5
6
if
if
if
warm
warm
warm
and
and
and
dry
norm.
wet
then
then
then
on
off
off
Tempg�'attnW,"'rm(.i)
{ l !: -,r
!>
10 < x:S; 15
= . lS < x < 20 (2)
7 if hot and dry then on l !: - ,r
20 :S; x < 25
8 if hot and norm. then on s:

9 if hot and wet then off


The details of the web server, database and user privileges
20 � x< 2S
) software development are not reported because it is standard
x � 25
which do not add any new idea rather than it is common and
easy to develop. Similar web access arrangements were
(4) reported by the first author [28].

{.r-:l�
10
35 < x <
- 45
TerQJe:ratlJllB' • 13

I
SolMolowre

{
- 37
I IZS
X) = 1 45 < x < 55 (5) 2 r I I A
--
(l
s
-:t"
55<
- x< 6 I J. I I?S
r I
55 � x :510
6 I J. I
x 2: 60 I { I 17"""
1
r r-. I 70::::::'
s
I L..l.. I I ZS!
.oN = .J.'U + .''14· 9 I { I IZS I
D 35 a I
00 o!-
1 _!!!!IrooIIi!!�
!!
OJ'' = Fig. 6. Simulation example "water valve ON"

,""=T=e=m:;p="F�=tU ="'=-=1=6 .1 SoilMoi � l u r" . ! � alerV�lve·O.2.5


=:
(8)
,... I =;:::::;:
.� :;= .L�I I ZSI
:==�=� �=::::= ::;::: I �I VS I
VS I
I ZSI
IZS I

V. SIMULATION, IMPLEMENTATION AND TESTING

To verify the proposed software, the fuzzy logic algorithm


was simulated using the MA TLAB fuzzy logic toolbox. Nine Fig. 7. Simulation example "water valve OFF

different inputs were used to trigger nine rules. As shown in


Wa�r-Valve-l
Figure 6. For an input temperature of 13° C and input soil
moisture of 37%, the simulation gave water valve weight of
0.6, which turned the water valve ON. This simulation result Server �
outputs a weight of 0.60 matches and conforms to the
calculated weight of 0.609 (see section V) with a small error of
0.6-0.609 0.009. Figure 7 shows another case where the
Moist-l
Zigbee Transceiv �
=
..,---1�
simulated inputs values turn OFF the water valve.
A hardware prototype of the proposed system was built
using an off-the-shelf microcontroller [26]. Figure 8 shows the Zigbee Transceiver

hardware experimental setup for one slave node. The simulated


fuzzy logic algorithm is implemented using the microcontroller
Water-Valve-2
fuzzy logic library based on C program [27].
Fifteen different input sets are selected to test the nine rules.
As shown in table II, the experimental results conform to the
simulation results. However the little water valve output weight Manual-Auto Switch

differences between the experimental and simulations do not Slave-2 Microcontroller

change any of the water value status (ON to OFF or vice­ Ternp-2

verse). Zigbee Transceiver

Home owners can access the system using the World Wide
Web to monitor and tum on the fuzzy logic control system. Fig. 8. Prototype experimental setup
TABLE IT SIMULATION AND EXPERIMENTAL RESULTS evaluation", Computers and Electronics in Agriculture, Vol. 84, pp.
132-143,2012.
Test # Temp. Soil Water Valve Output [8] Genghuang Yang, Yuliang Liu, Li Zhao, Shigang Cui, Qingguo Meng
Input Moisture and Hongda Chen, "Automatic Irrigation System Based on Wireless
Input Simulation Experimental Network, the 2010 8th IEEE International Conference on Control and
Results/ Results/ Automation,pp. 2I20-20IS,Xiamen,China,9-11 June,2010.
Valve Status Valve Status
[9] Guifen Chen; Lisong Vue, Research of irrigation control system based
01 05 10 0. 750 ION 0. 73010N on fuzzy neural network, International Conference on Mechatronic
02 12 SO 0.25010FF 0.2S010FF Science,Electric Engineering and Computer,pp. 209 - 212,2011.
03 29 50 0. 75010N 0. 75010N
[10] K. Srinivasa Raju, D. Nagesh Kumar, Lucien Duckstein. "Artificial
04 13 37 0.609/0N 0.63010N
neural networks and multicriterion analysis for sustainable irrigation are
OS 17 40 O.SIOION 0.S2010N planning",Computers & Operations Research,Vol. 33,No. 4,pp. 1138-
06 26 70 0.2S010FF 0.23010FF IIS3,2006.
07 09 40 O.SIOION 0.S2010N
[II] Ye Na, Liu Junfeng, "Smart orchard soil moisture monitoring system
08 05 70 0.2S010FF O.OOOIOFF based on wireless communication technology", IEEE Int. Conference on
09 IS 40 0.S3010N 0.S2010N Software Engineering and Service Sciences pp.600- 603,2010.
10 12 30 0. 7S010N 0. 73010N
[12] Umair,S.M., Usman,R.,"Automation of Irrigation System Using ANN
Based Controller", International Journal of Computer and Electrical
Engineering,Vol. 10,No. 02,pp. 45-51,2010.
VI. CONCLUSION [13] Hyung-Chul Jo, Sangwon Kim, Sung-Kwan Joo,"Smart heating and air
conditioning scheduling method incorporating customer convenience for
An automatic fuzzy logic based smart home irrigation system
home energy management system", IEEE Transactions on Consumer
was proposed, developed, simulated and tested. The system Electronics,Vol. 59,No. 2,pp. 316-322,2013.
used off-the-shelf components. Home owners can irrigate their [14] Guangming Song, Fei Ding, Weijuan Zhang, Aiguo Song, "A wireless
garden grass and trees manually or automatically via local power outlet system for smart homes", IEEE Transactions on Consumer
control or remote control using the Internet. The system was Electronics,Vol. 54,No. 4, pp. 1688 - 1691,2008.

tested using software simulation tools and an experimental [IS] Joon Heo, Choong Seon Hong, Seok Bong Kang, Sang Soo Jeon,
"Design and Implementation of Control Mechanism for Standby Power
hardware system. The simulation results and the experimental Reduction", IEEE Transactions on Consumer Electronics, Vol. 54, No.
setup performance were as expected and satisfactory. The 1,pp. 179 - 185,2008.
system can be integrated with other home automation systems [16] Dae-Man Han, Jae-Hyun Lim,"Smart home energy management system
with little modifications. using IEEE 802.15.4 and zigbee", IEEE Transactions on Consumer
Electronics,Vol. S6,No. 3, pp. 1403 -1410,2010.

ACKNOWLEDGMENT [17] Benzi, F., Anglani,N. , Bassi,E., Frosini,L.,"Electricity Smart Meters


Interfacing the Households ", IEEE Transactions on Industrial
The authors would like to thank the Computer Science and Electronics,Vol. 58,No. 10,pp. 4487-4494. 2011 ,
Engineering Department, American University of Sharjah, [18] Akselrad, D., Petcu, V., Romer, B. , Schmid, A., Bytschkow, D.,
UAE, for providing the resources. Special thanks go to Ms. Engelken, M. , "Making home energy usage transparent for households
Jumanah Aldmour and Ms. Lalitha Murugan for their using smart meters", IEEE International Conference on Consumer
Electronics - Berlin (ICCE-Berlin),pp. ISO - IS3,2011.
contribution in fuzzy logic simulation and testing.
[19] Anglani,N. ,Bassi,E., Benzi,F., Frosini,L., Traino,T. ,"Energy smart
meters integration in favor of the end user", IEEE International
REFERENCES Conference on Smart Measurements for Future Grids,pp. 16 - 21,20II.
[1] Francisco G. Montoya , Julio Gomez,Alejandro Cama,Antonio Zapata­
[20] Luis Olmos, Sophia Ruester, Siok-Jen Liong, Jean-Michel Glachant, "
Sierr, Felipe Martinez, Jose Luis De La Cruz And Francisco Manzano­
Energy efficiency actions related to the rollout of smart meters for small
Agugliaroa," Monitoring System For Intensive Agriculture Based On
consumers", application to the Austrian system, Energy, Vol. 36, No. 7,
Mesh Networks And The Android System", Computers and Electronics
pp. 4396-4409, 2011
in Agriculture,Volume 99,pp. 14-20,2013.
[21] I1-kyu Hwang, Dae-sung Lee, Jin-wook Baek, "Home network
[2] Robert W. Coates, Michael J. Delwiche, Alan Broad, and Mark Holler,
configuring scheme for all electric appliances using ZigBee-based
"Wireless sensor network with irrigation valve control", Computers and
integrated remote controller", IEEE Transactions on Consumer
Electronics in Agriculture, Volume 96,pp. 13-22,2013.
Electronics,Vol. 5S,No. 3,pp. 1300 - 1307, 2009.
[3] Xiaoxue Yang, "Design and Implementation of Intelligent Urban
[22] Yung-Wei Kao, Shyan-Ming Yuan,"User-configurable semantic home
Irrigation System", IEEE 2nd International Conference on Software
automation",Computer Standards & Interfaces,Vol. 34,No. I,pp. 171-
Engineering and Service Science (ICSESS),pp. 461 - 46,July 2011.
188,2012.
[4] [19] G. Vellidis, M. Tucker, C. Perry, C. Kvien, C. Bednarz," A real­
[23] Zhenyu Zou, Ke-Jun Li, Ruzhen Li, Shaofeng Wu, " Smart Home
time wireless smart sensor array for scheduling irrigation", computers
System Based on IPV6 and ZigBEE Technology", Procedia
and electronics in agriculture Vol. 61,Issue 1,pp. 44-50,2008.
Engineering,Vol. IS,pp. 1529-1533,2011.
[5] Yunseop (James) Kim, Member, IEEE, Robert G. Evans, and William
[24] Pradeep Bansal, Edward Vineyard, Omar Abdelaziz, "Advances in
M. Iversen , " Remote Sensing and Control of an Irrigation System
household appliances",Applied Thermal Engineering, Vol. 31,No. 17-
Using a Distributed Wireless Sensor Network", IEEE Transactions on
18,pp. 3748-3760,2011.
Instrumentation and Measurement,Vol. S7,No. 7,pp 1379-1387, 2008.
[2S] Arduino users' support,http://www.arduino.cc/. 2013.
[6] Francisco Javier Mesas-Carrascosa, Isabel Luisa Castillejo-Gonzalez,
Manuel Sanchez de la Orden,Alfonso Garcia-Ferrer Application note," [26] User's Manual, Fuzzy Logic Toolbox, User's
Real-time mobile phone application to support land policy", Journal Guidehttp://www.mathworks.com/help/pdCdoc/fuzzy/fuzzy. pdf,2013.
Computers and Electronics in Agriculture, Vol. 85, pp.109-1I1, July [27] IA Zualkernan, AR AI-Ali, MA Jabbar, I Zabalawi, A Wasfy,
2012 "InfoPods: Zigbee-based remote information monitoring devices for
[7] Nicholas 1. Car, Evan W. Christen, John W. Hornbuckle, Graham A. smart-homes", IEEE Transactions on Consumer Electronics, Vol. 55 ,
Moore, " Using a mobile phone Short Messaging Service (SMS) for No. 3, Pages: 1221-1226,2009.
irrigation scheduling in Australia - Farmers' participation and utility

You might also like