Beruflich Dokumente
Kultur Dokumente
ISSN-p 0123-7799
ISSN-e 2256-5337
Vol. 23, No. 47, pp. 121-136
Enero-abril de 2020
Byron Medina-Delgado 5 y
Daniel Guevara-Ibarra 6
1
Electronics Engineer, Electricity and Electronics department, GIDET
Universidad Francisco de Paula Santander, Cúcuta-Colombia,
josemiguelcp@ufps.edu.co
2
Electronics Engineer, Electricity and Electronics department, GIDET,
Universidad Francisco de Paula Santander, Cúcuta-Colombia,
christiandavidea@ufps.edu.co
3
MSc. of Science in Electrical and Computer Engineering, Electricity and
Electronics department, GIDET, Universidad Francisco de Paula Santander,
Cúcuta-Colombia, sergio.sepulveda@ufps.edu.co
4
MSc. in Electronics Engineering, Electricity and Electronics department,
© Instituto Tecnológico Metropolitano GIDET, Universidad Francisco de Paula Santander, Cúcuta-Colombia,
Este trabajo está licenciado bajo una sergio.castroc@ufps.edu.co
Licencia Internacional Creative 5
Commons Atribución (CC BY-NC-SA) MSc. in Electronics Engineering, Electricity and Electronics department,
GIDET, Universidad Francisco de Paula Santander, Cúcuta-Colombia,
byronmedina@ufps.edu.co
6
PhD. in Engineering, Electricity and Electronics department, GIDET,
Universidad Francisco de Paula Santander, Cúcuta-Colombia,
dinaelgi@ufps.edu.co
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Abstract
In this study, factorial experiments were conducted in two different scenarios to design a
Wireless Sensor Network for monitoring a cocoa crop in a rural area in Colombia. Node
sensors measured temperature, relative humidity, soil moisture, Ultra-Violet light, and
visible light intensity. The factors considered in the experiments were distance between
node sensors, height from the ground, and type of antenna; in turn, Received Signal
Strength Indicator and data transfer time were the outputs. The wireless sensor network
was deployed in the crop, covering approximately 3 % of the area and using 7 different
nodes in a cluster tree topology. First, an open field scenario with line of sight was used to
determine the appropriate height of the node sensors. Second, a scenario in the actual cocoa
crop was utilized to find the appropriate distance between modules and type of antenna. We
found, based on our calculations and experimental data, that a height of 1.25 m was
required to avoid the Fresnel zone and improve the RSSI of the network. Furthermore, we
determined that a distance below 35 m was needed to guarantee signal reception and avoid
long data transfer times. The wire antenna exhibited a better performance. Finally, the
proposed methodology and monitoring system can be used for agronomic applications in
rural areas in Colombia to increase crop yield.
Keywords
Wireless sensor networks, factorial experiments, agronomic crop, XBee module, ZigBee
wireless.
Resumen
En este trabajo se realizaron experimentos factoriales en dos escenarios diferentes, para
diseñar una red de sensores inalámbricos, que permita monitorear un cultivo de cacao en
una zona rural de Colombia. Los nodos sensores miden la temperatura, la humedad
relativa, la humedad del suelo, la luz ultravioleta y la intensidad de la luz visible. Los
factores considerados en los experimentos fueron la distancia entre los nodos sensores, la
altura con respecto al suelo y el tipo de antena; el indicador de intensidad de señal recibida
y el tiempo de transferencia de datos fueron las salidas. La red de sensores inalámbricos se
implementó en el cultivo, cubriendo aproximadamente el 3 % del área, utilizando 7 nodos
diferentes en una topología de cluster-tree. En primer lugar, se utilizó un escenario de
campo abierto con línea de vista para determinar la altura adecuada de los sensores de
nodo. Luego, se utilizó un escenario en el cultivo de cacao real para encontrar la distancia
adecuada entre los módulos y el tipo de antena. Se obtuvo, por cálculos y datos
experimentales, que se requería una altura de 1.25 m para evitar la zona de Fresnel y
mejorar el RSSI de la red. Además, se determinó que se necesitaba una distancia inferior a
35 m para garantizar la recepción de la señal y evitar largos tiempos de transferencia de
datos. Adicionalmente, la antena tipo Wire exhibió un mayor rendimiento y la metodología
propuesta y el sistema de monitoreo se pueden usar para aplicaciones agronómicas en áreas
rurales de Colombia, con el fin de aumentar el rendimiento de los cultivos.
Keywords
Red de sensores inalámbricos, experimentos factoriales, cultivo agronómico, módulo
XBee, ZigBee inalámbrico.
[122] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [123]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Raspberry Pi card as a base node in a sensor Pule et al. [13] surveyed the applications
network, improving the versatility of the of WSN in environmental monitoring with a
system’s architecture. This embedded system focus on water quality. They also compared
was used to process, analyze, monitor, and and evaluated sensor node architectures
create a supervisory interface for the data [9]. proposed by various authors in terms of
Several studies have been conducted monitored parameters, microcontroller/
worldwide to monitor and control different microprocessor units (MCU) and wireless
agronomic crops, study their behavior, and communication standards, localization, data
control environmental conditions. Azimi et al. security implementation, power supply,
[10] developed and implemented a control architectures, autonomy, and potential
system for environmental variables in application scenarios [13]. It is also important
mushroom crops. The system had to achieve a balance between efficient
environmental sensors DHT11 and MQ135 to energy consumption and meeting
measure temperature, humidity, and carbon performance metrics [14].
dioxide. The system they proposed also In the majority of crops in Colombia, there
included six Wi-Fi ESP8266 modules, are problems in the growth of the plants, the
connected with ThingSpeak.com to send the development of their fruit, or in relation to
measured data, and a separate module that diseases that generate infections.
received the results of the analysis and Additionally, the causes of these problems
controlled the irrigation system are unknown due to the scarce or inexistent
[10]. Similarly, Subashini et al. [11] developed monitoring of the crops. Moreover, the ideal
an irrigation control system based on an 8-bit conditions on which the type of plantation
AVR microcontroller using low-cost sensors should grow and the incidence of external
and actuators. The variables they used in factors are not considered. Therefore, in this
their study were humidity, ambient and soil study, we propose a continuous supervision
temperature, and light intensity. The system for an agronomic crop considering the
processing system was connected to an environmental variables and conditions of the
ESP8266 Wi-Fi module that communicated site. To determine the efficiency and
with an Internet server, to which the results effectiveness of a WSN in a cacao crop, we
of the measurements were sent so that they performed measurements and transmission of
could be stored and analyzed together with test data in a controlled environment
climate data. This optimized the irrigation (namely, an open field) to achieve a
cycles of the crop [11]. In turn, Sung et al. [12] connection between the modules with line of
analyzed, monitored, and controlled sight. Additionally, we conducted a factorial
environmental variables that influenced the experiment to determine the incidence of 3
development of a plant. They implemented a characteristic parameters (factors) of the
Wireless Sensor Network (WSN) with XBee WSN on two performance outputs.
modules, Seeduino Stalker cards, and sensors This article is organized as follows. The
to measure temperature, environment and context of the problem and a review of the
soil humidity, air quality, and light. In the literature were presented in the Introduction.
tests, plants were exposed to two different Next, the Material and Methods section
types of radiation: sunlight and artificial describe the system architecture and the
illumination. The physical development of the experimental design. Afterward, the results
plant was compared with that of another and collected data are presented and
plant of the same species to which the analyzed. Finally, the conclusions of this
supervised control of environmental variables study are drawn from the results.
had not been applied [12].
[124] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
and the minimum distance from the energy consumption. The End device is in sleep mode
most of the time, while the Router must be operating
network infrastructure to the node or final at all times.
device [15]. In this study, we used the
Cluster tree topology because of the
Each router and end device consist of an
surrounding environment. In this topology,
XBee module, an ATMega-328P
the routers form a backbone network with
Microcontroller, and environmental
final devices grouped around each router.
sensors. The data from the sensors are
Its configuration is very similar to a
processed by the microcontroller and sent to
mesh topology. It is also important to
the Coordinator through the XBee module
determine the position of the nodes in
using the ZigBee protocol. Additionally, the
relation to the obstacles; in this case, the
system includes a mobile application
plants and the ground, as well as the
developed in Android for the supervision of
distance between the nodes and the
the environmental variables of each of the
coordinator. In [16], the authors tested the
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [125]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
supervised plants. Fig. 3 outlines the requires the Structured Query Language,
interaction among different software tools which is interpreted and organized by the
that run on different devices in the system. database manager MySQL. To develop a
The Raspberry Pi 3 model B has an service that allows queries through Web
interpreter for Python programming ports, the PHP non-interpreted language
language. We developed an algorithm in was used. This service enabled us to post
Python for processing and storing the data GET queries to the database and allowed
coming from the XBee modules. The the responses to be interpreted and
database, where the data are stored, schematized by the Android Mobile App.
[126] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
In each sensor node (router or end XBee modules were configured in API mode
device), an ATMega 328P microcontroller for the transmission and reception of data.
was used for conditioning the signal of the Furthermore, we used open access
sensors and processing the data. We used libraries available online and developed by
Arduino IDE to develop the firmware the Arduino and Raspberry Pi communities.
algorithm of the microcontroller, and the
2.2. Factorial experiment
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [127]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
[128] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
3.1. Building the sensor nodes -Connect the system with the user
interface for monitoring.
In this work, six sensor nodes were This study was conducted in an
built. Each one consisted of the following agronomic crop of cacao with an extension
components: of 1.77 hectares, a perimeter of 562 meters,
-ATMega 328P microcontroller and approximately 1000 plants. The plants
-XBee S2C module were separated 3 meters from each other in
-Li-Po 3300-mAh battery all directions and irrigated by furrows, with
-Customized electronic card for signal the same distance, that transport water by
conditioning and power regulation between gravity. Every plant was between 1.8 and 3
the power supply battery and the meters tall with branches at different
aforementioned components, with heights and an average age of 1 year.
connection ports for the sensors The coordinates of the crop, located in a
-Four sensors to measure temperature, rural area, are 7°54’29.52” North Latitude
relative humidity, soil moisture, and -72°37’16.788” West Longitude. Fig. 5
UltraViolet (UV) light, and visible light illustrates the geographical location of the
intensity crop, the selected measurement area, the
-Custom-size acrylic case location of the sensor nodes, and the
Every sensor node was placed in a surrounding geography. The total area of
different plant, located in strategic the crop is 2.7 hectares; the monitoring
positions taking into account the system covers about 3 % of the crop area;
parameters of distance, shadows, and the image and locations were obtained with
access to irrigation. Fig. 4 is a picture of the Google Maps Web tool.
sensor nodes that were built for this As mentioned before, the locations of the
application. Each node is capable of sensor nodes were determined by the
measuring five environmental variables in distance to the coordinator, shadowed
the crop (temperature, humidity, soil areas, and access to irrigation. These
moisture, UV light, and visible light parameters were considered to have
intensity) and transmitting data wirelessly diversity in the measurements of the
using ZigBee technology.The Li-Po battery variables among different plants. Based on
provides electric energy to the nodes to this, we established which nodes should be
guarantee an autonomy of at least 14 days routers so they can provide a path to reach
(actual energy consumption varies the coordinator if the farthest nodes could
according to sleep time mode and operating not do it directly. Three sensor nodes were
conditions). defined as Routers and located at an
adequate distance to allow communication
3.2. Location of the nodes in the crop with the Coordinator and thus cover the
three End Device nodes, as well as the
When all the individual components of target area of the crop. Fig. 5 shows the
the system were complete, the assembly connection of the End Devices to the
followed these steps: Routers, and their link to the coordinator.
-Locate the sensors to measure the In the figure, End Devices are blue;
variables. Routers, red; and the Coordinator, green.
-Configure the sensor network according The distance between the Coordinator
to the selected topology. and Router 1 is approximately 23 meters;
-Link the sensors with the server and and between Router 2 and End Device 1, 21
the database. meters.
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [129]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Fig. 5. Map showing the location of sensor nodes in the cocoa crop
Source: Google Maps.
[130] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
this change is perceived more than with the not significant because, when the height of
modification of any other individual the antenna is exceeded, the ground effect
parameter or combination of parameters. on the signal decreases drastically. These
The next factor with a significant values have a confidence level of 95 %
influence is, as expected, the distance (α = 0.05).
between the transmitter and the receiver. Additionally, Fig. 7 can be used to
Finally, the least influential parameter analyze the incidence of each factor on the
on the RSSI output value was the height of RSSI. The received signal considerably
the node with respect to ground; the effect improves if the wire antenna is used
of this parameter was weak either instead of its PCB counterpart. Moreover,
individually or in combination with the type as the distance between transmitter and
of antenna. This does not mean that the receiver increases, the level of the RSSI
height of the antenna with respect to value decreases due to the propagation
ground does not influence the variation of distance, except between 5 and 10 meters.
the intensity of the received power; it Finally, we calculated the optimal
means that its effect is less strong than height of the antenna from the ground to
that of the other factors. In our analysis, we avoid the ground effect, considering the
also found that, at heights above 1.25 frequency of the wave.
meters, the change in the intensity level is
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [131]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Fig. 8 presents the analysis of the time with an increase in distance. However,
factorial design for the time output. The antenna height has a direct incidence on
strongest effect on the data transfer time is data transfer time, as occurred with RSSI.
caused by the combination of distance Therefore, antenna height is one of the
between nodes and height from the ground. most important factors that should be
As the distance between the transmitter considered due to the ground effect and the
and receiver grows, the travel time is longer resulting multipath signal components
and signal multipath occurs due to the after one or more reflections on the ground,
propagation phenomenon. This results in the trunk of a tree, or another object.
the same radio signals reaching the
receiving antenna following two or more 3.5. Measurements in the cocoa crop
paths.
The second most significant effect on Based on the open field experiment with
data transfer time is produced by the line of sight (Section 3.4), we determined
combination of the 3 factors. Finally, the that the height required to avoid the
factor with the weakest effect on data ground effect was above one meter.
transfer time is the type of antenna because Therefore, a fixed height of 1.25 meters
the intensity of the signal does not affect was defined for the experiment in the cocoa
the time. As expected, data transfer time is plantation.
affected mostly by the distance and the As opposed to the previous experiment,
multipath delay between the XBee the stems and branches of the plants in the
modules.Fig. 9 illustrates the relationship crop can act as obstacles and signal
between each factor and data transfer time. dispersion may occur. Once again, we
The variation in time (in the range of performed a statistical analysis of factorial
milliseconds) caused by each type of design, but only two factors were
antenna is not significant; furthermore, considered, namely, distance between nodes
there is a non-stable fluctuation of such and type of antenna.
[132] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [133]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Fig. 10 shows the relationship between the WSN to guarantee the communication
distance between nodes and RSSI for both of the measured variables with short times
types of antenna. As expected, RSSI and negligible data loss: between 20 and 30
decreases as the distance increases, meters (either between End Devices and
reaching values below -90 dB, which is a Router, or between Router and
very low signal intensity, close to complete Coordinator).
signal loss. The intensity of the signal is The sensor nodes were located as shown
always better with the wire antenna, in Fig. 5. Each node measures temperature,
although both options offer the same humidity, soil moisture, UV light, and
performance at 20 meters. visible light intensity. These variables
A similar analysis was performed for affect the development of the plants’
data transfer time. Fig.11 presents the physiology. An in-depth analysis of the
incidence of type of antenna and distance growing conditions and physiology of the
on said time. The plot is relatively flat cocoa plants is currently being conducted by
during the first 35 meters, even with PLANTAE research group from the
different types of antenna. Nevertheless, Department of Agriculture Sciences at
after 35 meters, the data transfer time Francisco de Paula Santander University.
increases more than twice due to the loss of Their study includes the correlation of
data caused by a decrease in the signal the environmental variables and the
intensity at long distances, as observed growth of the plant, the fruits, and the
from the RSSI results (Fig. 11). evolution of specific diseases that affect
The aforementioned factorial some plants. When this article was
experiments allowed us to establish an submitted, the sensor nodes had been
ideal distance between the sensor nodes in collecting data for about two months.
Fig. 10. Relationship between RSSI and the distance between the two modules
using two types of antenna. Source: Created by the authors.
[134] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
Fig. 11. Analysis of the incidence of different factors on data transfer time
Source: Created by the authors.
TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136 [135]
Design of a Wireless Sensor Network for Optimal Deployment of Sensor Nodes in a Cocoa Crop
[136] TecnoLógicas, ISSN-p 0123-7799 / ISSN-e 2256-5337, Vol. 23, No. 47, enero-abril de 2020, pp. 121-136