You are on page 1of 11

Computers and Electronics in Agriculture 68 (2009) 2535

Contents lists available at ScienceDirect

Computers and Electronics in Agriculture


journal homepage: www.elsevier.com/locate/compag

Wireless Sensor Networks for precision horticulture in Southern Spain


J.A. Lpez Riquelme a , F. Soto a , J. Suardaz a , P. Snchez a , A. Iborra a, , J.A. Vera b
a
Universidad Politcnica de Cartagena, Divisin de Sistemas e Ingeniera Electrnica, Campus Muralla del Mar, s/n, Cartagena E-30202, Spain
b
Edosoft Factory S.L., Mara Manrique 3, Las Palmas de Gran Canaria E-35011, Spain

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.

1. Introduction been put to different uses to implement wireless sensors in preci-


sion agriculture (Wang et al., 2006; Camilli et al., 2007; Vellidis et
The concept of precision agriculture has been around for some al., 2008; Siuli Roy and Bandyopadhyays, 2008; Pierce and Elliot,
time now. Blackmore (1994) dened it as a comprehensive system 2008)from simple infra-red-based devices (IrDAs) for very short
designed to optimize agricultural production by carefully tailoring soil distances to long-range systems based on mobile telephony, such
and crop management to correspond to the unique condition found in as GSM/GPRS. In between there are WPANs (Wireless Personal Area
each eld while maintaining environmental quality. Nowadays, it is Networks) for short distances, such as Bluetooth (10 m) and ZigBee
possible to say that precision agriculture (Zhang et al., 2002) is a (70 m), and WLANs (Wireless Local Area Networks) for interme-
method for estimating, assessing and understanding the changes diate distances (100 m). Camilli et al. (2007) describe a simulated
that take place in crops in order to be able to determine irri- application for precision agriculture using a network of wireless
gation and fertilizer requirements, product growth and ripening sensors capable of providing eld parameters to end users. Pierce
phases, optimum points of sowing and harvesting, etc. as exactly and Elliot (2008) describe the hardware and software components
as possiblein other words, adequately predict the various stages developed for regional and on-farm sensor networks and their
in crop production. To that end it is important to gather as much implementation in two agricultural applications in Washington
information as possible on the water, soil, plants and environ- State (USA).
ment. Precision agriculture, then, utilizes numerous technologies Within the category of WPANs are included the WSNs (Wireless
and infrastructures: data instrumentation and gathering systems, Sensor Networks) (Akyildiz et al., 2002), a type of autonomous, self-
geographic information systems (GIS), global positioning systems organized ad hoc network composed of tens, hundreds or thousands
(GPS), microelectronics, wireless technologies and so forth (Chiti of smart low-rate devices or motes, which are generally battery-
et al., 2005; Tang et al., 2002). Many wireless technologies have powered. These networks present a number of features that are
particularly useful for precision agriculture:

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.

Sensor SHT71 EC 250 Hydra Probe II

Measured data Relative humidity and temperature Water electrical conductivity and Moisture, conductivity, salinity and
water temperature temperature

Communication protocol I2C 420 mA SDI-12

Range 0 to 100% RH 0 C to 50 C From completely dry to fully saturated


40 C to 120 C 0 to 10,000 S 0.01 to 1.5 S/m
1 to 78 where 1 = air, 78 = distilled
water

10 to +65 C

Resolution 0.03% RH NA NA
0.01 C T

Accuracy 3.5% RH 0.1 C T 0.03


0.4 C T 1% EC 2%
1.5%
0.6 C

Response time 3s HR 1s NA
15s T

Supply voltage range 2.45.5 VDC 827 VDC 920 VDC

Power 0.5 mA active 30 mA active 30 mA active


0.3 A idle NA idle <1 mA idle

URL http://www.sensirion.com/ http://www.stevenswater.com/ http://www.stevenswater.com/

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.

Device Function C/O.S. Energy source Communication module (outdoor Sensors


RF line-of-sight range)

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

HplMsp430InterruptC. This instance facilitates handling of inter- 3.3. Water Mote


ruptions from the DC/DC converter in order to know when the
battery level falls below the established threshold. The Water Mote (see Fig. 4) measures the temperature and salin-
Msp430Uart1C. This is used to manage communications with the ity of the water supplied to the crop from an irrigation pond. In this
HP2 sensor by means of the SDI-12 protocol. case the mote is connected directly with the ofces by way of a
LedsC. The instance of this component encapsulates the hard- long-range radio module (XStream X24-019PKI-RA radio modem)
ware for the Motes LEDs; it is used to debug the application and with an 8dBi omni-directional antenna for outdoor use. The rest of
ascertain its running status. the architecture is very similar to that of the previous motes (see
Fig. 4a and b). A Stevens EC 250 sensor is submerged in the pond.
Fig. 2d shows the mote in place on the farm with the characteristics The two sensor outputs (temperature and salinity) are supplied in
mentioned. the form of a 420 mA signal; they are read by the microcontrollers
ADC0 and ADC1 converters after the current loop is passed through
a resistor. These parameters are read with a maximum parameteri-
3.2. Environmental Mote
zable frequency of 2 readings/hour. The mote is powered by a solar
panel and is enclosed in a watertight box placed on the edge of the
For ease of reading, hereafter we have left out those aspects that
pond. Its antenna is located on a mast at a height of approximately
the other motes have in common with the Soil Mote and have only
four metres.
included details of new components and functionalities.
The EC250C component was again developed with TinyOS to
The Environmental Motes (see Fig. 3) record the ambient tem-
meet the functionality described above. In this implementation the
perature and humidity parameters for a crop. As we can see in Fig. 3a
components are as follows:
and b, the motes architecture is similar to that of the Soil Mote,
except for the interface with the external sensors.
Each mote is connected via the I2C interface to a Sensirion SHT71
sensor (see Fig. 3c), which is placed inside a solar protection shield TimerMilliC. Every time the EC 250 sensor has to be read, a new
a metre and a half off the ground. These kinds of motes take read- reading cycle has to be performed (timer instance) by activating
ings of the cited parameters with a maximum parameterizable the DC/DC converter that powers the sensor for ten seconds. At
frequency of 2 readings/hour. The Environmental Motes are located the end of this time (Timer1) the measurement is transmitted
within a radius of roughly one hundred metres around the Gate- from the two ADCs to which the sensor outputs are connected.
way Mote. The initial arrangement for this network consists of ten Once there is a reading from the two ADCs the radio module is
motes. Again, this mote was programmed using TinyOS. The Sensiri- activated and there is a pause (Timer3) before the data are sent. In
onSht11C component was used to meet the functionality described each reading cycle, once all the data have been sent (data plus bat-
above. Besides, the Msp430ADC0C was used to sample the micro- tery alert if any), the long-range radio module remains activated
controlers ADC0 analogical/digital converter in order to determine for ve seconds (Timer2) to listen for any sample period change
when the battery levels falls below a given threshold and send a message. At the end of this time the mote reverts to standby status
low-batery alert. pending a new reading cycle.

Fig. 3. Various perspectives of the Environmental Mote.


J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535 31

Fig. 4. Various perspectives of the Water Mote.

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:

3.4. Gateway, Base Station and Repeater Motes


1. The GUI includes the placement of devices using the utility sup-
plied by Google Maps. In this way we can identify the exact
As we can see in Fig. 1, the device infrastructure required to inter-
geographic position of each node and the crop in which it is
connect the two sensor networks and the wireless sensor with the
located (see Fig. 6).
ofces is as follows: (1) One Gateway Mote for each of the sen-
2. The data read by the sensors are sent periodically to the base
sor networks, one of them based on Environmental Motes and the
station and stored within the database (the program waits for
other on Soil Motes; (2) a Repeater Mote located on the ofce build-
an event indicating data available at the serial port). The GUI
ing roof; and (3) a Base Station Mote inside the ofces, physically
will read these data and visualize them graphically in real time.
connected to the monitoring computer.
In addition, the sampling period can be modied from the user
Fig. 5a and b shows a detailed image of the Gateway Mote with
application.
a block diagram of the hardware architecture. The microcontroller
3. The database includes details about the deployed nodes, their
communicates with the crop motes via a short-range radio module
aggregations into regions, the sensors integrated in every node,
and with the Repeater Mote in the ofces via a long-range radio
the historic record of the readings, the types of sensors, and
module. The lifetime of the power supply is enough thanks to the
the history of alarms received from the sensors and regions (for
use of rechargeable solar batteries. The solar panel is the model TPS
example battery failure, values lower than a threshold, etc.).
102/5 (12 V, 5 W) from Zodiac Solar, which is installed at an angle
of 30 . In the worst case, the average solar irradiance in Cartagena
during the test for that angle was 4600 Wh/m2 . The consumption of A menu bar at the top provides the options noted above (see Fig. 6).
the gateway is 7.8 Wh. Therefore, the panel provided more energy On the right of the screen a Google Map has been used to depict
than the mote consumed. Fig. 5c shows the mote attached to the the geographic position of the deployed nodes. On the left there are
mast on the farm. three tables displaying the latest data readings from the sensors for
To ensure that the Base Station Mote has adequate coverage, the the three networks shown on the right. Below the tables a graphic
main antenna is located on the ofce roof at a height of roughly display of the data for a user-selected time interval, or the latest
nine metres. Wireless connection between the main antenna and data gathered is provided.
the base station mote is also achieved via the Repeater Mote. The Both the soil and the environmental motes provide the following
Base Station Mote gathers all the information generated by the services: changing the sampling period of the sensors and cong-
sensor network (with the help of the repeater mote) and trans- uring the device to send data from the battery every hour. They also
mits it to the monitoring application which was developed to trigger an alert signal if the battery charge is critically low. More-
handle that network. Similarly, it broadcasts any order from the over, the soil mote also provides other services, such as: setting the
software application over the sensor network. This mote is com- soil type, conguring the measure data set, setting the water con-
posed of a long-range radio module (2.4 GHz) connected to a 3dBi stant and establishing the warm-up time. Note that all the services
omni-directional antenna, and a RS-232 interface for connection are provided by using a special combination of the data sent to set
to the central computer. The Repeater Mote is a commercial radio the sampling period.
32 J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535

Fig. 5. Various perspectives of the Gateway Mote.

5. Results To achieve an adequate assessment of the results of imple-


mentation of the system as developed, these were analysed from
The methodological approach that has been followed to achieve the following standpoints: (1) from the standpoint of the devices
the objectives proposed consists of two phases, the rst in the developed and the technology used; and (2) from an agricultural
laboratory and the second in the eld. In the rst phase all the sub- standpoint. Each of these aspects is discussed below, with special
networks were deployed (with only four nodes in the case of the emphasis on the most important points.
Soil Mote and Environmental Mote subnetworks) along with the
two Gateway Motes and the Base Station and Repeater Motes. The 5.1. Results as regards devices
main function of this phase was to validate the proposed hardware
and software solutions. The hardware was validated with software After functional validation in the laboratory, the devices that had
versions that did not use low-consumption techniques. Once proper been developed were reprogrammed in low-consumption mode as
functioning was assured, the next step was to review the software the mode best suited for operation in the eld. A detailed study of
in order to incorporate low-consumption modes in all the motes this mode of operation was therefore necessary to assure autonomy
except those powered from the mains (Base Station and Repeater throughout an agricultural cycle. Presented below is the study that
Motes). In this way we achieved sufcient autonomy to ensure was carried out for the Soil Mote: The study was the same for all
that the motes would function throughout a horticultural cycle (10 the other motes.
weeks). The Soil Mote has four functional states: rest, radio on standby
The object of the second phase, which was conducted in real for messages, sensor data recording and data transmission. Fig. 7
conditions on the farm, was to assess the functional performance shows the motes power consumption in each of these states. For
of the devices that had been developed, such as range, robustness its part Table 3 lists the times and the power consumption of the
and exibility. mote in each of these states. The worst-case scenario was taken for
J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535 33

Fig. 6. Main view of monitoring application.

Fig. 7. Study of the devices autonomy.

Table 3
Consumption and autonomy of the different devices.

Standby Communication Sensor data Communication Average Battery Estimated


current (mA) module receiving acquisition module transmitting current (mA) (mAH) autonomy (days)

Current (mA) Time (ms) Current (mA) Time (ms) Current (mA) Time (ms)

Soil Mote 0.25 20 15 110 1800 25 125 0.5034 2700 223


Environmental 0.03 20 15 0.5 350 25 125 0.0918 2700 1225
Mote
Water Mote 0.03 80 5000 30 10000 150 1200 0.5188 6500 521
Gateway Mote (Soil 20 80 5000 NA NA 150 1200 26.4444 6500 10
Motes)
Gateway Mote 20 80 5000 NA NA 150 1200 23.2222 6500 11
(Environmental
Motes)
34 J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535

average consumption, that is acquisition and transmission of data


from the two sensors every thirty minutes. The ultimate aim of this
study was to determine how much power the mote consumed on
average, so as to relate the resulting gure directly to the capacity
of the batteries and hence determine the devices autonomy. The
motes average power consumption may be determined thus:

Isoil-mote = Istandby + Ireceiv + Iacq + Itrans (1)

where

Istandby = 0.25 mA (2)


3
20 mA 15 10
Ireceiv = 0.03 mA (3)
10
 3

110 mA 1800 10
I acq 2 = 0.22 mA (4)
1800
 
25 mA 125 103
Itrans 2 = 0.0035 mA (5)
1800

Expression (2) indicates the standby consumption. Eq. (3) expresses


the motes average consumption in receiving mode for a 15 ms pulse
every 10 s. Eqs. (4) and (5) reect a similar calculation, only mul-
tiplied by two, which is the number of sensors connected to each
mote. Expression (1) gives the average current consumption of the
Fig. 8. Registered data from a 10-week monitoring process.
Soil Mote, which is approximately 0.5035 mA. Since the soil mote
batteries are 2700 mA/H, their estimated autonomy is 223 days,
enough to assure proper functioning throughout an agricultural or 78.6 ppm, K(Ac-NH4) 487.0 ppm. The drip irrigation system was laid
horticultural season. The consumption studies for the other devices in between the two rows of crop and 1 l/h emitters were installed
followed the same process as in the case of the Soil Mote. For a each 0.20 m. Fertilizer was applied to the crop using fertirrigation.
summary of the results, see Table 3. As for consumption by the The nodes were deployed in the rst week of March, at which time
nodes after placement in the eld, over the nine weeks that the the owners of the farm began to gather data from the WSNs. The
validation tests lasted, no low-battery alert was received from any soil mote sensors were placed at 20 cm and 40 cm depth. During
of the devices, indicating that the solar panels worked properly and this time there was 80 mm cumulative rainfall, moderately strong
validating the consumption estimates. winds of up to 65 km/h and mild temperatures (average 15.2 C).
To provide coverage for the devices, the base station mote was Fig. 8 shows the data (soil moisture and air temperature) collected
placed inside the ofce with a 3dBi omni-directional antenna. throughout a 10-week period. The Hydra Probe sensors provide
Because of coverage conditions in the building, a repeater mote had accurate soil moisture measurements in units of water fraction by
to be placed on the roof from the outset. This provided coverage of volume (wfv or m3 m3 ). That is, a percentage of water in the soil
up to 10 km between the repeater mote and the motes equipped displayed in decimal form. For example, a water content of 0.20 wfv
with XStream (Gateway and Water Motes). All were tted with out- means that a one litre soil sample contains 200 ml of water. Full sat-
door 8dBi omni-directional antennas, mounted on four-metre-tall uration (all the soil pore spaces lled with water) occurs typically
masts to avoid any obstacles. between 0.5 and 0.6 wfv and is quite soil dependent. The nodes
Once the Gateway Motes for the sensor networks were posi- were found to function properly. This provides some assurance of
tioned, the maximum coverage was 50 m between the Soil Motes the robustness of the arrangement for similar weather conditions.
and the Gateway Mote and 100 m for the Environmental Motes. Before this technology was introduced, the company monitored
The Soil Motes were placed within a horticultural crop, and so the its crops in the traditional way, that is a person visited the crop
sensors had to be buried 20 or 40 cm deep because of the profu- and the pond to measure the relevant agronomic parameters with
sion of roots. Unlike the Environmental Motes, the Soil Motes are appropriate portable equipment. Now, with the technology that
placed at ground level and hence give poorer coverage. When the has been developed, crop variables can be ascertained in real time,
Soil Motes were rst installed, the tops of the crop were barely and as a result the water requirements of the crops can be esti-
above the ground, and so the Motes worked perfectly. However, mated without anyone having to visit them. The farm team could
they stopped working some months later when the crop started to monitor in real time that the optimum conditions for the cabbage
grow upwards. This problem was solved by replacing the original growing were preserved (salinity in the range 24 mmhos/cm, tem-
antennas with 3dBi omni-directional versions. perature between 10 C and 24 C, and relative humidity in the range
6090%).
5.2. Agricultural results
6. Summary
The validation tests were conducted on a crop of ecological
pointed cabbage (Brassica oleracea L. var. Capitata) covering an area The wireless sensor network described here offers a real oppor-
of 4 ha, located in the Campo de Cartagena (37 44 26 N, 1 13 38 W) tunity for monitoring soil and environment status in a crop.
in the southeast of Spain. The seedlings were transplanted (with The system permitted to successfully monitor a crop of ecolog-
a population density of 7 plants/m2 ) in the last week of February ical cabbage for the entire growing season with the required
2008 and the crop was harvested 10 weeks later, in the second precision. The farm team is now capable of gathering more com-
week of May 2008. The soil characteristics of the crop at 40 cm prehensive and accurate data in both space and time. Thus, the
depth were: clay loam texture, total carbonates 35.4 p.100, P(Olsen) agriculture production system have beneted from incorporation of
J.A. Lpez Riquelme et al. / Computers and Electronics in Agriculture 68 (2009) 2535 35

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.

You might also like