Professional Documents
Culture Documents
a r t i c l e i n f o a b s t r a c t
Article history: In recent years many applications have been proposed for Wireless Sensor Networks (WSN). One of these
Received 29 July 2008 is precision agriculture, where WSN can play an important part in the handling and management of
Received in revised form 16 April 2009 water resources for irrigation, in understanding the changes in the crops to assess the optimum point
Accepted 21 April 2009
for harvesting, in estimating fertilizer requirements and to predict crop performance more accurately.
This paper describes our experience during the introduction and deployment of an experimental sensor
Keywords:
network at an ecological horticultural enterprise in the semiarid region of Murcia. It presents the topology
Wireless sensor network
of the deployed network using four types of nodes (Soil Mote, Environmental Mote, Water Mote and
Precision agriculture
Horticulture
Gateway Mote), some of them connected to different sensors distributed in the eld. These sensors can
measure various soil characteristics such us temperature, volumetric moisture content and salinity. For
each node, the overall architecture, hardware and software components are described. The system also
includes a real-time monitoring application operating from a computer placed in the central ofces of the
farm. The testing of the system was done in two phases: the rst in the laboratory, to validate the functional
requirements of the developed devices, the networking solution and the motes power management; the
second on the farm, to asses the functional performance of the devices, such as range, robustness and
exibility. The system was successfully implemented on a crop of ecological cabbage (Brassica oleracea).
The result was a low cost, highly reliable and simple infrastructure for the collection of agronomical data
over a distributed area in horticultural environments.
2009 Elsevier B.V. All rights reserved.
Corresponding author. Tel.: +34 968 32 56 54; fax: +34 968 32 53 45. The topology of the network need not be xed; the nodes can be
E-mail address: andres.iborra@upct.es (A. Iborra). deployed arbitrarily and adapted to changing needs. For instance,
0168-1699/$ see front matter 2009 Elsevier B.V. All rights reserved.
doi:10.1016/j.compag.2009.04.006
26 J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535
sensor nodes can be placed anywhere in a crop eld, in whatever A case study was dened with two sensor networks, each moni-
arrangement is desired. A sensor node can be removed or added toring different parameters. The rst network gathers temperature,
directly without having to recongure all the other nodes. moisture and salinity readings from the soil, while the second
They are more error-tolerant than other types of networks, since records the ambient temperature and humidity. In addition, an iso-
a failure in one node is automatically compensated by rerouting lated wireless sensor was placed in a pond to measure the salinity
through the other nodes thanks to the intrinsic possibilities of of the water fed to the crops. These subnetworks and the isolated
dynamic network reconguration. For example, if a crop is at a wireless sensor all send data via the appropriate gateway motes
growth stage in which physical access to the mote is complicated, to a base station node located at the central farm ofces, where
it is not absolutely essential to replace it. the strategic decisions about crops are taken. To implement the
Energy consumption by nodes is optimized in such a way that different networks, specic, low-cost motes (about 150$ without
they can be powered solely by batteries or renewable energy- sensors) were designed and developed, along with gateways link-
based systems (solar, wind or hydraulic) (Morais et al., 2008). In ing the networks and the central ofces. A monitoring application
this way, energy supply is assured throughout the lifetime of the was also developed to control all the devices and keep a record of
nodeat least one agricultural cycle. the information received in a relational database, which is used to
The sensors used in precision agriculture usually have to be make decisions about irrigation.
robust, accurate and with high resolution and hence are relatively Following this introduction, Section 2 describes the experimen-
costly (over $300/sensor), but the current tendency is to embed tal scenario in which the sensor networks were deployed. Section
sensors in the motes, which drastically reduces their cost. 3 gives a detailed description, in terms of hardware and software,
of the devices developed for implementation of the system. Section
Motes normally consist of a processor, a radio module, a power 4 outlines the possibilities offered by the monitoring software that
supply and one or more sensors mounted on the mote itself or was developed. Section 5 details the technological and agronomic
connected to it. The processor controls all the nodes functions results. And nally, Section 6 presents a summary and future plans
(access to sensors, control of communications, execution of the for continuation of this work.
state engine, etc.). The radio module transmits and receives through
a communication standard. The standards that best adapt to the
requirements imposed by the development of sensor networks and 2. Experimental scenario
that incorporate most of the radio modules used in motes are IEEE
802.15.4 (IEEE, 2006) and ZigBee (Baronti et al., 2007). These stan- The agronomic problem as posed was addressed with the
dards are designed for applications where the transfer speed is not arrangement shown in Fig. 1. This consists of two sensor networks
very great, but they make it possible for network nodes to be pow- and one isolated wireless sensor. The rst sensor network consists
ered by battery and to function for weeks or even months without of ten nodes called Soil Motes, each of which is connected to two
recharging. The function of the power supply is to supply energy to Stevens Hydra Probe II sensors buried at depths of twenty or forty
the mote from batteries using high-performance power converters. centimetres. These sensors can measure various soil characteristics
Finally, some of the nodes in a sensor network may communicate such as temperature, volumetric moisture content, salinity and so
with a computer or other networks through a gateway. on. The second network consists of ten nodes, called Environmen-
This article describes experiments conducted for the introduc- tal Motes, which measure the ambient temperature and humidity
tion of a WSN in a horticultural holding. Other works have recently using Sensirion SHT71 sensors.
demonstrated the success of applying WSN in precision agriculture In addition to these sensor networks, a wireless sensor, called
(Burrell et al., 2004; Pierce and Elliot, 2008). The farm is located in the Water Mote, was placed in one of the ponds used to water the
the Campo de Cartagena in the Region of Murcia, South-East Spain, farm. The purpose of this wireless sensor is to measure salinity on
in one of Europes most important horticultural areas. In climatic the basis of the electrical conductivity of the water and the tem-
terms, this is a semiarid zone with annual rainfall of approximately perature in order to determine the quality of the water used to
400 mm. Despite this, 190,000 ha, 31% of the total crop area, is under irrigate the crops. The sensor used in this case is a Stevens EC 250.
irrigation; of this area, 51,000 ha are devoted to herbaceous crops A long-range radio module is tted to this sensor to allow direct
and 91,000 to woody crops. communication with the base station 5.5 km away. The hardware
The farm on which the experiment was conducted practises eco- and software implementation of these nodes is described in detail
logical agriculture, also known as biological or organic farming. This further below. Table 1 summarizes the principal features of the
is a way of growing crops and caring for the land that is respectful sensors.
of nature and normally excludes the use of chemicals (pesticides, The two sensor networks are respectively 5.2 and 8.7 km away
herbicides, etc.) and genetically modied seeds (known as GMOs). from the central computer. To assure wireless coverage of the
The principal aim of this kind of farming is to preserve the envi- system, Gateway Motes were developed incorporating long-range
ronment, maintain or enhance the fertility of the soil and produce radio modules with the same technology as in the Water Mote.
foods with their own natural properties. This company has a long The nodes in each of these sensor networks are interconnected via
tradition of organic farming and has been a pioneer in the growing IEEE 802.15.4. The reasons for the decision to use this standard are
of various types of horticultural produce (Rocket, Iceberg, Romaine, explained in the part of the following section specifying the soft-
Mixed Salads, etc.). Its biggest market is in the United Kingdom. ware architecture. When a message reaches the central computer
The farm is of medium size (1000 ha) with 250 crop elds spread through the Gateway, it is processed and its source and the infor-
over the Campo de Cartagena several kilometres apart from one mation it contains are checked. On the basis of this information
another. As a specication of the research project 10 motes for mon- the message is stored in a relational database, where a histori-
itoring the crop were considered, connected in star topology, with cal record is kept of the data gathered by the sensors and the
a Gateway Mote. Moreover, as the Gateway Mote has a stack where times of the readings. Table 2 summarizes the characteristics of the
the received messages are stored and later processed using a task, various different devices that have been developed and deployed
more than 10 motes connected in star topology can be supported. on the farm. The following sections provide detailed descriptions
Then, the ultimate aim of this work is to provide the farm with the of each of the motes that have been developed and the require-
infrastructure necessary, by crop, to ascertain crop water conditions ments and architecture of the monitoring application that was
in real time and make the appropriate decisions. implemented.
J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535 27
Fig. 1. Illustration of eld implementation of a horticultural crop monitoring network based on sensor networks.
Table 1
Summary of principal features of the sensors used.
Measured data Relative humidity and temperature Water electrical conductivity and Moisture, conductivity, salinity and
water temperature temperature
10 to +65 C
Resolution 0.03% RH NA NA
0.01 C T
Response time 3s HR 1s NA
15s T
3. Devices developed The devices described in this paper were developed in the con-
text of the ESNA (European Sensor Network Architecture) and RIMSI
As we saw in the foregoing section, the solution chosen to deal projects to satisfy the range requirements for network coverage
with the problem as posed was to lay out two sensor networks (up to 10 km) and because there was no mote adapted to standard
with motes (Soil Mote, Environmental Mote, Gateway Mote), one SDI-12 (SDI, 2005) available on the agricultural instrument mar-
wireless sensor to measure water quality and two motes in the cen- ket. The chief requirements that were considered when designing
tral ofces (a Repeater Mote on the roof and a Base Station Mote these devices were: (1) a robust radio technology; (2) low-
connected to the monitoring computer). cost, low-consumption electronic devices; (3) use of long-lasting
28 J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535
Table 2
Summary of devices developed for the farm.
Water Mote Instantly measure MSP430F1611 Solar Cell + Rechargeable XStream (16 km) EC 250 (Stevens)
water electrical TinyOS 2 Battery
conductivity and
temperature
Soil Mote Instantly measure MSP430F1611 Rechargeable Battery CC2420 (230 m) Hydra Probe II
soil moisture, TinyOS 2 (Stevens)
conductivity,
salinity, and
temperature
Environmental Instantly measure MSP430F1611 Rechargeable Battery CC2420 (230 m) SHT71 (Sensirion)
Mote relative humidity TinyOS 2
and temperature
Gateway Mote Link Soil and MSP430F1611 Solar Cell + Rechargeable CC2420 (230 m)
Environmental TinyOS 2 Battery XStream (16 km)
Motes with
Repeater Mote
Repeater Mote Link Gateway Motes NA Grid XStream (16 km)
with Base Station
Mote
Base Station Link WSN with NA Grid XStream (16 km)
Mote software
application
energy sources and reduced size (about 2700 mAh); and (4) use of Because sampling is normally hourly, it was decided to send the data
input/output interfaces (SDI-12, I2C, 420 mA) to connect different read in each reading cycle, thus combining real-time data availabil-
types of external sensors. The hardware architecture, the sensors ity with reasonable power consumption. The device also monitors
used, the functionality of the mote and the software components the battery levels and sends a signal when these reach critical
developed are detailed below for each of the motes. As result of level.
the ESNA and RIMSI projects, there is a video online of the devices This mote was programmed using the TinyOS 2.0 operating sys-
developed at http://www.dsie.upct.es/proyectos/projects.html. tem and the associated nesC programming language (Gay et al.,
2003), which are specic to the WSN domain. TinyOS is an operating
3.1. Soil Mote environment designed to run on distributed embedded Wireless
Sensor Networks. nesC is built as an extension to the C programming
Fig. 2 shows details of the hardware and software implemen- language with components wired together to run applications
tation of the Soil Mote and its placement in the eld. This mote on TinyOS. Components are connected to each other using inter-
consists of a microcontroller, a short-range radio transceiver, a SDI- faces. TinyOS provides interfaces and components for common
12 interface, two DC/DC converters and a set of batteries (see Fig. 2a abstractions such as packet communication, routing, sensing, actu-
and b). All elements are contained in a watertight box with an IP67 ation and storage. TinyOS is a well-known alternative for the
protection rating. development of new WSN applications and also provides reusable
The microcontroller chosen was the Texas Instruments components to assure reliable communications following standard
Msp430F1611, which was programmed with TinyOS version 2 (Tiny, IEEE 802.15.4 and supports a lot of hardware (microcontrollers,
2008) (Hill et al., 2000). The same microcontroller is used in all transceivers, sensors). Moreover, there is an implementation of Zig-
the other motes. The short-range radio module is a CC2420 (Chip- Bee (Open-ZB) written in nesC. In the beginning the authors do not
con), also from Texas Instruments. This module exchanges data with know whether or not a Multi-Hop protocol will could be needed. For
the Gateway Mote via wireless at 2.4 GHz with a bandwidth of 250 this, and other reasons, such as: (1) TinyOS is an open source code,
Kbps, following standard IEEE 802.15.4. The Gateway Mote acts as (2) allows application software to access hardware directly when
a gateway between the sensor network and the ofces. The power required, (3) the support for many hardware platforms, TinyOS was
supply consists of three AA NiMH 2700 mAh rechargeable batter- chosen to develop the software of motes applications.
ies connected to a second DC/DC converter. This converter supplies If an application strictly needs to communicate in a point-to-
2.5 VDC for all the mote components. As we shall see in Section 5, point or a point-to-multipoint fashion, 802.15.4 will be able to
these batteries last around 7 months, which is more than enough handle all the communications between the devices and it will
time for a normal farming season. be simpler to implement than trying to use a module with Zig-
Each mote is connected to two Stevens Hydra Probe II (HP2) Bee to accomplish the same goal. ZigBee is necessary if the system
sensors (see Fig. 2c) by way of the SDI-12 interface. SDI-12 stands needs to have repeating or mesh networking functionalities. In our
for Serial Data Interface at 1200 baud. This is a standard for inter- case, IEEE 802.15.4 was chosen for communication between the Soil
facing battery-powered data recorders with microprocessor-based Motes and the Gateway Mote because Multi-Hop communication
sensors designed for environmental data acquisition. The HP2 is an was unnecessary thanks to the arrangement on the farm and the
in situ soil sensing system that measures 22 different soil parame- coverage provided by the radio modules.
ters simultaneously with digital output. It instantly calculates soil Fig. 2e shows a diagram of the components used to implement
moisture, electrical conductivity/salinity and temperature. the mote using nesC. Note the different instances of the compo-
The Soil Mote monitors four parameters (soil temperature in C, nents and the different interfaces to the principal HP2C component.
soil salinity in g/l of ClNa, volumetric percentage of moisture in The HP2C component was developed to meet the functionality
the soil and soil conductivity with temperature correction in S/m) described above. All the other components are reused from the
from the HP2 sensors; the sampling period can be congured by the infrastructure supplied by TinyOS for access to timers, access to
user from the receiver PC, within a range of 30 min to about 48 h. input/output ports, radio module, etc. Every time a component is
J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535 29
Fig. 2. Various perspectives of the Soil Mote and Hydra Probe II sensor.
reused, one or more instances of it are created and distinguished AMSenderC. This component supplies the interfaces necessary to
from one another by aliases. send radio messages to the Gateway Mote. The instances of this
The entry-point to the programme is provided by the MainC component, called SendData and SendAlarm, are used respec-
component through the predened Boot interface. Various different tively to send the data readings and warn of a critical battery
nesC components need to be instantiated for the programme to level.
function: CC2420ActiveMessageC. The sole instance of this component
is used to enable/disable the radio module. It also pro-
TimerMilliC. To read the HP2 sensors, the operator must send vides the functionality necessary to work in low-consumption
a rst start-reading command (timing set by Timer2) then wait mode.
for the response from the sensor, which will indicate when the AMReceiver. This instance is used to receive messages
data will be available. Once that time passes (Timer1), the data from the Gateway Mote and modify the mote sampling
can be measured by sending a new read command (timing set period.
by Timer3). In response to that command, the sensor sends the HplMsp430GeneralIOC. This instance provides access to the
data that have been congured for reading and waits for a time microcontroller ports in order to control the sensors and the
(Timer0) before repeating the cycle. DC/DC converter.
30 J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535
Msp430ADC0C and Msp430ADC1C. These afford access to the modem congured in repeater mode, which is connected to an 8dBi
analogical/digital converters to which the sensor outputs are con- omni-directional antenna. This provides up to 16 km line-of-sight
nected. coverage in the open.
Msp430ADC2C. This instance is connected to the battery voltage
via a resistive divider.
HplMsp430GeneralIOC. This affords access to the microcontroller 4. Monitoring application
ports necessary to control the DC/DC converter and the long-
range radio module. The monitoring application is integrated by: (1) a graphical user
HplMsp430InterruptC. This generates a low-level pulse to signal interface (GUI) where the data read by the sensors is shown, and
that a radio message has been sent. (2) a program that receives and stores data from the nodes. Both
PlatformSerialC. Used to manage the input/output with the programs were developed using the Java programming language,
microcontroller UART to which the long-range radio module is with the Eclipse environment and the MySQL relational database
connected. management system. The essential features of these applications
as developed may be summarized as follows:
Table 3
Consumption and autonomy of the different devices.
Current (mA) Time (ms) Current (mA) Time (ms) Current (mA) Time (ms)
where
technological advances in the eld of communications and infor- Baronti, P., Pillai, P., Chook, V.W., Chessa, S., Gotta, A., Fu, Y.F., 2007. Wireless Sensor
mation technologies. Networks: a survey on the state of the art and the 802.15.4 and ZigBee standards.
Comput. Commun. 30, 16551695.
The capacity of WSN devices to collect measured values in broad Blackmore, S., 1994. Precision farming: and introduction. Outlook Agr. 23, 275280.
ranges of soil and environmental conditions has been a fundamen- Burrell, J., Brooke, T., Beckwith, R., 2004. Vineyard computing: sensor networks in
tal requirement to the design of the system. An obvious advantage agricultural production. IEEE Pervas. Comput. 3, 3845.
Camilli, A., Cugnasca, C.E., Saraiva, A.M., Hirakawa, A.R., Corra, L.P., 2007. From wire-
of WSN technology is a signicant reduction and simplication in less sensor to eld mapping: Anatomy of an application for precision agriculture.
wiring and faster deployment, unlimited installation exibility for Comput. Electron. Agr. 58, 2536.
sensors, and a better mobility. Despite the great potentials of this Chiti, F., De Cristofaro, A., Fantacci, R., Tarchi, D., Collodo, G., Giorgetti, G., Manes, A.,
2005. Energy efcient routing algorithms for application to agro-food wireless
technology some obstacles have been detected (lack of experienced sensor networks. In: Proceedings of IEEE International Conference on Commu-
staff for troubleshooting, high cost for the sensors, power supply as nications (ICC2005), Seoul, Korea, pp. 30633067.
a great concern, etc.). Gay, D., Levis, P., von Behren, R., Welsh, M., Brewer, E., Culler, D., 2003. The nesC lan-
guage: a holistic approach to network embedded systems. In: Proceedings of the
The good results obtained serve as stimuli to adapt the deployed
ACM SIGPLAN Conference on Programming Language Design and Implementa-
infrastructure to other contexts, incorporating new soil and envi- tion, San Diego, CA, USA, pp. 111.
ronment parameters, and to different sort of horticultural crops. Hill, J., Szewczyk, R., Woo, A., Hollar, S., Culler, D., Pister, K., 2000. System architecture
The main effort needed to reuse the infrastructure in different con- directions for networked sensors. ACM SIGPLAN Notices 35, 93104.
IEEE, Institute of Electrical and Electronics Engineers, 2006. IEEE Standard for
texts has to do with the maximum distance allowed between the Information technology-Telecomunications and information exchange between
farm ofces and gateways (up to 10 km). systems Local and metropolitan area networks Specic requirements Part
For the medium term it is intended to develop an expert sys- 15.4: Wireless Medium Access Control (MAC) and Physical Layer (PHY) Speci-
cations for Low-Rate Wireless Personal Area Networks (WPANs). IEEE Standard
tem to assist irrigation management incorporating the climate (ET) 802.15.4-2006, Institute of Electrical and Electronics Engineers, New York.
and soil water balance models necessary to estimate crop water Morais, R., Fernandes, M.A., Matos, S.G., Serodio, C., Ferreira, P.J.S.G., Reis, M.J.C.S.,
requirements, optimized irrigation programming and capacity to 2008. A ZigBee multi-powered wireless acquisition device for remote sensing
applications in precision viticulture. Comput. Electron. Agr. 62, 94106.
manipulate the irrigation devices remotely. Pierce, F.J., Elliot, T.V., 2008. Regional and on-farm wireless sensor networks for
agricultural systems in Eastern Washington. Comput. Electron. Agr. 61, 3243.
Acknowledgements SDI, 2005. A SerialDigital Interface Standard for Microprocessor-Based Sensors, Ver-
sion 1.3. July 18, 2005. Prepared By SDI-12 Support Group (Technical Committee),
USA. <http://www.sdi-12.org> (accessed 16.04.09).
The authors wish to thank the Ministry of Industry, Edosoft Siuli Roy, A.D., Bandyopadhyays, S., 2008. Agro-sense: Precision agriculture using
Factory S.L., projects RIMSI (FIT-330100-2006-173) and ESNA sensor-based wireless mesh networks. Innovations in NGN: Future Network and
Services. In: Proceedings of the First ITU-T Kaleidoscope Academic Conference
(ITEA 2006), Fundacin Sneca of the Murcia Region (refs. (K-INGN 2008), Geneva, Italy, pp. 383388.
ID-02998/PI/05, 08754/PI/08) and the CICYT MEDWSA (ref. Tang, S., Zhu, Q., Zhou, X., Liu, S., Wu, M., 2002. A conception of digital agricul-
TIN1006-15175-C05-02), Ministry of Education and Science, Spain, ture. In: Proceedings of the IEEE International Geoscience and Remote Sensing
Symposium (IGARSS02), Toronto, Canada, pp. 30263028.
for supporting this work. The authors are also grateful to the anony-
Tiny, 2008. Tiny-OS 2.0 Home Page. <http://www.tinyos.net/> (accessed 16.04.09).
mous reviewers for their valuable feedback. Vellidis, G., Tucker, M., Perry, C., Kvien, C., Bednarz, C., 2008. A real-time wireless
smart sensor array for scheduling irrigation. Comput. Electron. Agr. 61, 4450.
Wang, N., Zhang, N., Wang, M., 2006. Wireless sensors in agriculture and food
References industryrecent development and future perspective. Comput. Electron. Agr.
50, 114.
Akyildiz, I.F., Su, W., Sankarasubramaniam, Y., Cayirci, E., 2002. Wireless sensor net- Zhang, N., Wang, M., Wang, N., 2002. Precision agriculturea worldwide overview.
works: a survey. Comput. Networks 38, 393422. Comput. Electron. Agr. 36, 113132.