Professional Documents
Culture Documents
ZigBee and LoRa Based Wireless Sensors For Smart Environtment and IoT Applications
ZigBee and LoRa Based Wireless Sensors For Smart Environtment and IoT Applications
Abstract— A communication system, which employs ZigBee knowledge about the reliability and performance of LoRa and
and LoRa communication protocols is designed, developed, and LoRaWAN technologies in a typical environment. The results
tested in this experimental paper. The designed system contains have shown that LoRa technology can be reliable for low-cost
a central receiver unit with LoRa and ZigBee transceiver remote sensing applications. In [5], analysis of the
modules, a microcontroller, a wireless sensor card with performance of a Low-Power Wide Area Network (LPWAN)
temperature and humidity sensors, LoRa and ZigBee based on LoRa technology is investigated. Authors in [5] did
transceiver modules, and a relay unit. The relay in the sensor an experimental validation of various performance metrics of
card can be remotely or cloud-based controlled, and the LoRa LPWAN technology. Authors in [6] evaluated the
temperature and humidity data from the sensor can be sent to
performance of LoRa based IoT applications in a university
the central receiver unit by using the ZigBee or LoRa
transceiver modules. The microcontroller was configured and
campus in Taiwan. They used a PM2.5 air quality monitoring
programmed by using the evaluation version of system to show the performance of LoRa. They examined the
STM32CubeMX and Kiel µVision Integrated Development transmission performance of LoRa from the nodes (end-
Environment (IDE). PCB designs of the central receiver unit devices) to the LoRa gateway, and they described how packet
and the wireless sensor card were done by using DipTrace CAD losses were affected by the distance between the nodes and the
software. Sub-components of the system were manufactured, gateway, the payload, the transmit power, the antenna angle
assembled and tested for its functionality, communication and the weather conditions.
efficiency and range. The practical design and reported results
given here are beneficial to communication engineers for low- II. ZIGBEE AND LORA TECHNOLOGIES
power, long-range smart Internet of Things (IoT) system
A. ZigBee Technology
applications. Taking advantage of the complementing
performances of ZigBee and LoRa wireless technologies, a ZigBee is a wireless technology developed by ZigBee
diversified communication system with smart features is alliance to enable low-cost, low-power, low-data-rate
proposed, designed, and tested in a single IoT system. Machine-to-Machine (M2M) communications and IoT
networks [7]. ZigBee compliant wireless devices are expected
Keywords— LoRa, ZigBee, IoT, Wireless Sensors, STM32 to transmit in a range of 10-75 meters, depending on the Radio
Frequency (RF) environment and the output power [8].
I. INTRODUCTION
ZigBee operates in the unlicensed Industrial Scientific and
Internet of Things (IoT) is a system of computing devices, Medical (ISM) frequency bands, such as 2.4GHz, 915MHz
digital machines, objects, animals or people that are given and 868MHz [8]. ZigBee supports three kinds of wireless
Identifiers (IDs). These things can transfer data over a network network topologies which are Mesh, Star and Cluster Tree [8].
by using wireless technologies and without the requirement of A typical ZigBee network consists of several types of devices
computer or human interactions [1]. IoT allows physical such as a network coordinator, Full Function Device (FFD)
objects to see, hear, think and to communicate with each other and Reduced Function Device (RFD) [8]. The ZigBee stack
to share data and information and to coordinate decisions. IoT architecture is made up of a set of blocks called layers, these
also changes these objects from being traditional to smart layers are the Open System Interconnection (OSI) layers, and
objects [2]. Based on their characteristics IoT devices use a it’s defined by IEEE 802.15.4 and ZigBee Alliance [9]. The
number of different technologies in order to support their physical layer ( PHY) and the Medium Access Control (MAC)
communication characteristics. For instance, Wi-Fi is sub-layer are defined by IEEE 802.15.4 while the network
available everywhere and transmits large data, but it is not a layer (NWk) and framework for the application layer are
low energy solution which makes it not the best solution for defined by ZigBee Alliance [9].
IoT applications. IoT devices are designed to utilize ultra-low
energy and send only a small amount of data. ZigBee which is B. LoRa Technology
low-power and low-data-rate wireless technology seems to be LoRa (Long Range) is a spread spectrum modulation
a candidate for IoT devices, but it cannot be used for outdoor technique that provides significantly longer-range transfer of
wireless communication systems due to its limited short data and information with a low transfer rate than the
distance coverage, whilst LoRa technology has the long-range competing technologies [10]. LoRaWAN is a LPWAN
and star network feature. protocol which is based on LoRa modulation and was
intended to remotely connect battery operated things to the
A new model which is energy efficient ZigBee Body Area internet in local, regional or worldwide networks [11].
Network (BAN) is proposed in [3], and the aim to present this LoRaWAN protocol uses the unlicensed radio spectrum in the
model was to provide quality solutions in the field of BAN ISM band, such as 433MHz, 868MHz and 915MHz [11].
and eHealth. The model consists of six ZigBee sensors and a LoRaWAN network is implemented by using a star network
sink node placed on a human body. The authors concluded topology and the structure of the network architecture can be
that the model serves as a realistic image of evaluation of the divided into two parts, back-end and front-end part [10]. The
BAN. In [4], the indoor and outdoor performance of LoRa and back-end part is the network server which is used to store the
LoRaWAN technologies was evaluated in Glasgow city- information sent by the sensors while the front-end consists of
Scotland, the purpose of this evaluation was to have enough end devices and a gateway, the gateway is the intermediate
19
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
device that forward packets coming from the end devices to III. DEVELOPMENT OF ZIGBEE AND LORA BASED
the network server [10]. LoRa allows the usage of scalable COMMUNICATION SYSTEM
bandwidth of 125kHz, 250kHz or 500kHz [12]. LoRaWAN
The ZigBee and LoRa based communication system was
has three different classes of end-devices to address various
designed, developed, and experimentally tested in
needs of applications and they are Class A, Class B and Class
Radarcomm R&D facilities at Yildiz Technical University
C [13]. These end-device classes trade off network downlink
campus in Istanbul, Turkey. The designed system contains a
communication latency versus battery lifetime. The battery
central receiver unit and a wireless sensor card placed in a
lifetime versus downlink communication latency of
room. The schematic diagram of the designed central receiver
LoRaWAN end-devices is given in Fig.1 [13].
unit is shown in Fig.2. The central receiver unit consists of a
Microcontroller Unit layer (MCU), a communication layer
with ZigBee and LoRa transceiver modules and a power
source layer. The MCU layer in the central receiver unit
provides full control of the system, i.e., it is responsible for the
identification of the sensor cards to be added to the system and
the control of sensors and relays connected to these devices.
The MCU communicates with ZigBee modules through the
Universal Asynchronous Receiver/Transmitter (UART)
interface, whilst it communicates with LoRa modules through
Serial Peripheral Interface (SPI).
Kbps
Topology Mesh Star and Star and Star and Star
Mesh Point-to-point Mesh
20
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
and link quality between two XBee modules, a range test was
performed by using XCTU which is a multi-platform
application designed by DIGI. One XBee module was
attached to a computer, and another module was used as a
remote module, both in the same network. The local XBee
module was configured to work in an Application
Programming Interface (API) mode, while the remote module
was configured to work in a transparent mode. API and
transparent modes are methods used to send and receive data
to and from the XBee modules. The test involved sending data
packets from one module (local) to another module (remote).
During this process, the XCTU counted the number of data
packets sent and received by both modules and also measured
the Received Signal Strength Indicator (RSSI) value of the
remote XBee module. The remote module was receiving data
packets from the local module at 30 m line-of-sight. In Fig. 4,
the received signal strength over time graph is given, the graph
shows how the remote XBee’s signal strength changes as we
move away from the local XBee module. The RSSI is
measured in dBm, the closer to 0 dBm, the better the signal is.
21
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
22
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
23