You are on page 1of 5

An Innovative Air Quality Monitoring System based on Drone and

IoT Enabling Technologies

L. Angrisani1 , A. Amodio1 , P. Arpaia1 , M. Asciolla2 , A. Bellizzi1 , F. Bonavolontà1 ,


R. Carbone1 , E. Caputo1 , G. Karamanolis1 , V. Martire1 , M. Marvaso1 , R. Peirce1 , A. Picardi1 ,
G. Termo1 , A. M. Toni1 , G. Viola1 , and A. Zimmaro.1
1
Department of Electrical Engineering and Information Technology, University of Naples Federico II, Naples, Italy
2
Department of Industrial Engineering, University of Naples Federico II, Naples, Italy

Abstract—In recent years, the focus on environmental pollution


has increased. The need arose to monitor air quality not only
in town but also in remote and inaccessible areas. The solution
proposed in this article is a low-cost remote monitoring system of
dangerous areas based on drones. On the one hand, an operator
positions the drone where measurements need to be taken. On the
other hand there is a central station that performs the storing of
the measurements, processes the data and sends them to the
web application. A monitoring system based on LoRa (Long
Range), a low-power wireless technology covering long distances,
was mounted on the drone. The sensors have been chosen to
be reliable while keeping low-cost. The microcontroller used for
system management is STM32L073RZ from ST Microelectronics.
Communication to the central station is via the MQTT protocol.
This system allows the monitoring of air quality showing accurate Fig. 1. In the photo: the drone prepared with its payload during the flight
and real time results on the web application. tests.
Index Terms—air quality, monitoring, drone, MQTT, LoRa,
LoRaWAN, IoT
all the features of the system will be presented, starting from
I. INTRODUCTION the measurement equipment placed on the drone, up to the
monitoring station, which will allow the players involved to
In the past, pollution has always been an underestimated extract all the information needed to guide their decisions.
problem despite its considerable importance in everyone’s
life. Today there seems to be an awareness, thanks to the
2018 UN-IPCC report in Incheon (Republic of Korea) which II. C HOICE OF THE VECTOR AND DEFINITION OF THE
has predicted a temperature rise of 1.5 ◦ C by 2030 [1]. PAYLOAD
Furthermore, the increase in fires, in landfills and polluted
areas has led to the need for constant monitoring of pollutants The target scenario is an unreachable place for a human
in the air, in the ground and in water. The impossibility of operator because of exposure to harmful substances, so the
sending staff to monitor large areas in contexts of risk for the measurement has to be conducted by a vector [3].
health of operators has led to the study of alternative solutions. The drone activity and the flight mission require that the
In this context, this document aims to demonstrate and testify vector hover in a given place for a given amount of time
that it is possible to conceive a system for telemonitoring air in order to acquire the data [4]. To this aim, it is worth
quality based on drones. The use of drone swarms for the noting the need of bias compensation of drone’s inertial
telemonitoring of air quality allows access to dangerous or measurement units [5],[6]. Considering that small dimensions
disastrous area, since all the equipment is placed on the drone are desired for portability and costs reasons, the most suitable
and operators can stay out side of the risk zone [2]. In the choice is a drone. Specifically, the flight tests have been
event of measurements values above the safety threshold, the conducted on the DJI F550 kit [7], that it is shown in Fig. 1.
use of microcontrollers allows for a first analysis of the data
and for prompt alert notifications to the operator. In the long It is known that a drone will show its best performances if
term, one could also think of swarms of automated drones these conditions are met [8]:
piloted from a control center but this does not concern the • The weight of the payload is the lowest possible;
system presented in this article. Various parts of the project • The masses of the payload are distributed in a manner that
will be described below, providing some theoretical hints cause the minimum alteration of the moment of inertia
that are propaedeutic to their understanding. In this article of the drone;

978-1-7281-3611-0/19/$31.00 ©2019 IEEE


207
• The center of mass of the payload is aligned to the III. S ENSOR N ODE
center of mass of the drone along the vertical direction.
A sensor node has been realized, taking in to account the
reduced weight, size and power dissipation specifications.
The drone’s payload is composed by a whole set of instru- any application to be mounted on a drone requires the above
mentation for the measurement of pollution indicators and it mention specifications which in turn must be congruent with
includes: the IoT paradigms [9] -[12].
After a careful study on the main air pollutants, the
• Electronic devices (boards and transducers), measurands of interest that have been chosen are PM, CO,
• Electric battery (i.e. a power-bank), NH3 , NO2 , VOC, CO2 and, due to the correlation between
• Electrical connections, these measurands and environmental conditions, temperature,
• External box. atmospheric pressure and relative humidity are measured as
well. Furthermore, the GPS coordinates are acquired in order
to locate the measurements taken.
Due to time, costs, manufacturing simplicity and availability
of tools, the construction of the external box is made via After careful market research, aimed at creating a prototype
FFF (Fused Filament Fabrication) method of 3D printing that maximizes the performance-cost ratio, the following
technology. Since one of the desired requirements of the components were selected:
external box is rigidity, PLA (Polylactic Acid) with 20% of • Nucleo STM32L073RZ, which features an ARM M0 +
infill factor was chosen for a first realization of the prototype. processor, developed for Low-Power applications;
Aerodynamic loads are relevant only at high speed. So the • Semtech SX1272MB2xAS, a transceiver which, using
improvement on the shape of the box was achieved by the LoRa protocol, allows long-range communications
maintaining a flat face on the bottom (due to mechanical [13];
joints) and by adding rounded edges between the points of • Sensirion SPS30, that has a measurement chamber in
contact of the top faces. In this manner the flow around the which, using an Optical Particles Counter (OPC), is able
box can produce less drag force that could be relevant at high to quantify PM10, PM4, PM2.5 and PM1. Moreover it
speed since it depends from the square of velocity. has a forced ventilation system to clean the chamber;
The flammability of the material and its capabilities to • Adafruit BME280, which provides measurements of
shield against fire could be interesting properties to consider, temperature, relative humidity and atmospheric pressure;
especially because electronic devices and batteries in case • Seeed Studio VOC and CO Sensor, based on the
of high temperatures could be damaged to the point of SENSIRION SPG30, provides measurements of Volatile
explosion. However the drone that has to carry the payload Organic Compound (VOC) and CO2 ;
does not have to fly through fire so these properties, even if • Seed Multichannel Gas Sensor, based on MiCS-6814
taken in consideration, are desired but not mandatory. produced by SGX Sensortech, it provides measurements
The hermetic closure is not a requirement for the system of CO, NOx and NHx ;
for two reasons. The first and the most important reason is • Goouuu Tech GT-U7, based on NEO-6M by U-blox
that the electronic sensors are able to evaluate the presence which returns GPS coordinates and altitude.
of particle matters (PM) only when in contact with the air
itself. A continuous re-circulation of the air through the box
is necessary to guaranty good measurements. The second The firmware is based on a finite state machine, for managing
reason is related to the dissipation of heat of the electronic the measurement and data transmission phases via the LoRa
devices through a mechanism of convection. protocol. The machine states are:
No studies have been conducted on electromagnetic shielding, • READY: in this phase the Join with the LoRa Gateway
i.e. the reduction of the electromagnetic field in a space by is checked and repeated if needed. Subsequently the GPS
blocking it with barriers made of conductive or magnetic position of the drone is sent at intervals of 5s;
materials, because the topic is too complex for this system. • MEASURING: this phase starts when the START is
Some of the electronic devices could benefit from shielding received from the Web Application. The first operations
to work better, but other devices could not work properly are the ventilation of the measuring chamber of the
because they could not receive the signal (for instance the SPS30 and the start of measurement process by the VOC-
GPS receiver). Sensor. After the 15 s required for these operations, 32
The total weight of the payload is 391 g and the dimensions measurements for each measurand are acquired. Finally,
of the whole box is 10x10x8 cm3 [LxWxH] with 3 mm of average and composed accuracy (using standard deviation
thickness. Further structural analyses and functional studies and manufacturer’s accuracy) of the 32 measures are
can be conducted in order to achieve a better shape for a calculated.
smaller and lighter solution. • SEND-MEASURE: in this phase, after the status of
MEASURING, the packaging and transmission of data

208
Fig. 2. How the Communication Node works.
Fig. 3. The flow used in NodeRed.

via the LoRa protocol are managed.


D. Functional principle
In the design of the machine, safety features have been
The goal of the project is to establish a communication
implemented to avoid locking the node in the event of sensor
bridge between the drone and the central software station to
or connection failures [14].
perform measurements on request. The drone carries a LoRa
module, that communicates with the nearest LoRa Gateway.
IV. C OMMUNICATION N ODE The Gateway performs the protocol conversion from LoRa
The aim of the communication node is receiving a start to MQTT, so the payload can be read by a web server
command of starting measurements from the central software subscribed to a specific topic. All operations are performed
station and sending it to the drone [15]. Moreover, the pay- on the Gateway by the NodeRed Flow we have created (Fig.
load coming from transducer nodes on the drone has to be 3). Specifically, the functionalities needed for the project are
sent to the central station (Fig. 2). The payload, containing the following:
measurements, is routed to a LoRa gateway; using Node-Red, • Join-ACK: To initiate a secure communication between

the payload is parsed to JSON, then sent to the central by the gateway and the drone, a mechanism of Join / Accept
publishing on a MQTT topic [16]. If the measurement values Request is implemented.
exceed the safety thresholds, an alert message is sent to a • Start Command: From the dashboard (UI), a command

chat-bot of an instant messaging application. on a MQTT topic is sent to activate the measurement
routine. This message is read by the flow on the same
A. LoRa topic, converted in a LoRa packet and sent to the drone.
LoRa (Long Range) is a spread spectrum modulation tech- • Drone-To-Central communication: Once a start
nique derived from chirp spread spectrum (CSS) technology message is received and the drone has created a
[17]. LoraWAN is a protocol that operates in a free sub-GHz measurement set, a LoRa packet is transmitted to the
band, the ISM Band [18]. The targets are M2M connection Gateway. Here the payload is parsed in a JSON file by a
(Machine to Machine) and IoT applications; this is a part function block of NodeRed. Depending on the fields of
of LPWAN (Low Power Area Network), that provides an control, a switch block divides and publishes messages
energy-saving feature for sending and receiving messages. in two different topics: one for GPS data and another
The range of communication is quantifiable in the order of for measurements. The GPS data is sent to the web
kilometers [19]. We have chosen an operating mode (Class C) application, so the operator can see on his tablet where
that provides a continuous listening. the drone is. The measurements are sent to the central
B. Node-Red station for storage purposes. This payload is matched
with the GPS data of the measuring location.
Node-Red is a tool to make IoT applications through the
usage of nodes in JavaScript. The nodes are connected to each
other in order to create a flow, input and output are defined V. T HE CENTRAL SOFTWARE STATION
using a graphical interface. The nodes receive messages in The central software station satisfies the following require-
input and apply a JavaScript function in order to modify ments:
content or type.
1) user authentication;
C. MQTT 2) displaying the drone position during flight;
MQTT (Message Queuing Telemetry Transport) is a com- 3) transducers control;
munication protocol designed for M2M, based on pub- 4) filtering and storage measured data;
lish/subscribe model. It works on top of the stack TCP/IP. 5) producing alerts for dangerous zones;
The broker provides the distribution of messages to clients, 6) visualisation all the recorded data.
using topics. Clients subscribe to a chosen topic and receive To meet these requirements, it is necessary that the station
all the messages published on it; this way, a one-to-many have:
communication model is established, in place of a one-to-one 1) a parser to interpret and filter the data that comes from
model. the transducers;

209
2) a database to store all recorded data;
3) a detector to reveal any health risks to operators;
4) a web application that has a user-friendly, captivating
and portable interface.
To promote the use of adequate replication techniques and
maximize the reliability, each component has to be designed
by bearing in mind attributes like coupling, cohesion, re-
usability and portability. Fig. 4-5 summarize the structure and
the interconnections among the various components.
A. Technologies
First of all, the parser is realised by a java application,
which is suitable for distributed software. Moreover, it offers Fig. 4. The measuring process
plenty of useful libraries and middlewares for that purpose.
For instance, Hibernate was used to solve the ORM (object-
relational mapping) problem and the MQTT library supplied
by the Eclipse Paho project was used to retrieve the measured
data from the transducers. Secondly, a relational database is
used to store and share the recorded data. The chosen RDBMS
is MySQL, which is released with an open-source license.
Thirdly, a Telegram bot is used to send adequate and fast
alerts to all parties whose actions are necessary when there
are some health risks in the area under observation. Lastly,
the web application is built on top of three main technologies:
Bootstrap, AngularJS and Google Maps. The first allows Fig. 5. The positioning process
developers to build responsive web pages to achieve portability
on different screens. The second was used in conjunction
with PHP to provide all the functionalities requested by the Nucleo, suitable for low power applications, the different
users. Specifically, AngularJS was employed for the functional transducers were managed and the data supplied by them
requirements 2,3,5,6 while PHP was used to create a software were processed. The parameters of interest were: Tempera-
level to query and update data stored in the database. The third ture, Humidity, Pressure, PM1, PM2.5, PM4, PM10, VOC,
was needed to show to operators the drone position during the CO2 , CO, NHx , NOx . These parameters are sent through the
flight. Semtech SX1272MB2xAS transceiver to the LoRa gateway
B. Functional Principle and, through the usage of the MQTT communication protocol,
made available on a web application, Fig. 6-7-8.
The web application continuously receives data from sen-
sor node and shows the position of the drone. To start
the measuring process, the operator stops the drone in the VII. ACKNOWLEDGMENTS
position of interest and sends the ”Start” command via the
web application. After sending the ”Start”, the drone stops
Authors thank Domenico Accardo and Giancarmine Fasano
sending its location, because only the last reported location
(aerospace systems), Marco Trifuoggi (analytic chemistry), ST
(i.e. where the measurement actually takes place) is needed,
Microelectronics (technological partner), Protom Group Srl,
and the Measuring phase begins in the sensor node. After the
and Capgemini (committing companies).
conclusion of this phase, the central station receives the data
through the library functions of Eclipse Paho that supports
MQTT. The central station analyzes the data and, in case they
are above the threshold, sends an alert message to a Telegram
bot and then saves the data on the database [20]. After saving,
the web application is notified of the changes in the database,
through MQTT. The web application takes from the database
the data of interest, which will be displayed on the screen.
VI. C ONCLUSION
In conclusion, the low-energy, low-cost, drone-based mon-
itoring system is developed to perform real-time measure-
ments of pollutants. Through the usage of the STM32L073RZ Fig. 6. Examples of measures in the Dashboard

210
[13] L. Angrisani, P. Arpaia, F. Bonavolontà, M. Conti, and A. Liccardo,
“Lora protocol performance assessment in critical noise conditions,” in
2017 IEEE 3rd International Forum on Research and Technologies for
Society and Industry (RTSI). IEEE, 2017, pp. 1–5.
[14] M. Carratù, M. Ferro, A. Pietrosanto, and V. Paciello, “Smart power
meter for the iot,” in 2018 IEEE 16th International Conference on
Industrial Informatics (INDIN). IEEE, 2018, pp. 514–519.
[15] D. Capriglione, G. Cerro, L. Ferrigno, and G. Miele, “Performance
analysis of a two-stage spectrum sensing scheme for dynamic spectrum
access in tv bands,” Measurement, vol. 135, pp. 661–671, 2019.
[16] F. Abate, M. Carratù, C. Liguori, and V. Paciello, “A low cost smart
power meter for iot,” Measurement, vol. 136, pp. 59–66, 2019.
Fig. 7. Examples of measures in the Dashboard [17] D. Capriglione, G. Cerro, L. Ferrigno, and G. Miele, “Effects of real
instrument on performance of an energy detection-based spectrum sens-
ing method,” IEEE Transactions on Instrumentation and Measurement,
vol. 68, no. 5, pp. 1302–1312, 2019.
[18] G. Betta, D. Capriglione, L. Ferrigno, and G. Miele, “Influence of wi-fi
computer interfaces on measurement apparatuses,” IEEE Transactions
on Instrumentation and Measurement, vol. 59, no. 12, pp. 3244–3252,
2010.
[19] M. Carratù, M.Ferro, A.Pietrosanto, and P.Sommella, “Adopting smart
metering rf networks for particulate matter distributed measurements,”
vol. 2017-August, 2017, pp. 50–55, cited By 2. [Online].
Available: https://www.scopus.com/inward/record.uri?eid=2-s2.0-
85045530636&partnerID=40&md5=0b72251da4ac9ea174ffdbaf11a970f6
[20] F. Lamonaca, K. Barbe, Y. Kurylyak, D. Grimaldi, W. Van Moer,
A. Furfaro, and V. Spagnuolo, “Application of the artificial neural
Fig. 8. Examples of measures in the Dashboard network for blood pressure evaluation with smartphones,” in 2013
IEEE 7th International Conference on Intelligent Data Acquisition and
Advanced Computing Systems (IDAACS), vol. 1. IEEE, 2013, pp. 408–
412.
R EFERENCES
[1] “Available online at https://www.ipcc.ch/2018/10/08/summary-
for-policymakers-of-ipcc-special-report-on-global-warming-of-1-5c-
approved-by-governments/, accessed on 2019-08-06.”
[2] J. Wivou, L. Udawatta, A. Alshehhi, E. Alzaabi, A. Albeloshi, and S. Al-
falasi, “Air quality monitoring for sustainable systems via drone based
technology,” in 2016 IEEE International Conference on Information and
Automation for Sustainability (ICIAfS). IEEE, 2016, pp. 1–5.
[3] M. Carrozzo, S. De Vito, E. Esposito, F. Formisano, M. Salvato,
E. Massera, G. Di Francia, P. D. Veneri, M. Iadaresta, and A. Mennella,
“An uav mounted intelligent monitoring system for impromptu air
quality assessments,” in Convegno Nazionale Sensori. Springer, 2018,
pp. 497–506.
[4] K. Blattenberger, “Dronebased field measurement system (dbfms),” RF
Cafe, rfcafe. com, 2014.
[5] R. Fontanella, D. Accardo, R. S. L. Moriello, L. Angrisani, and
D. De Simone, “Mems gyros temperature calibration through artificial
neural networks,” Sensors and Actuators A: Physical, vol. 279, pp. 553–
565, 2018.
[6] R. Fontanella, D. Accardo, R. Moriello, L. Angrisani, and D. Simone,
“An innovative strategy for accurate thermal compensation of gyro bias
in inertial units by exploiting a novel augmented kalman filter,” Sensors,
vol. 18, no. 5, p. 1457, 2018.
[7] “Available online at http://dl.djicdn.com/, accessed on 2019-08-06.”
[8] L. De Filippis, G. Guglieri, and F. Quagliotti, “A minimum risk approach
for path planning of uavs,” Journal of Intelligent & Robotic Systems,
vol. 61, no. 1-4, pp. 203–219, 2011.
[9] S. Madakam, R. Ramaswamy, and S. Tripathi, “Internet of things (iot):
A literature review,” Journal of Computer and Communications, vol. 3,
no. 05, p. 164, 2015.
[10] L. Angrisan, P. Arpaia, F. Bonavolontà, A. Liccardo, and R. S. L.
Moriello, “First step towards a cost-effective lot platform for customers
power consumption awareness,” in 2017 IEEE International Workshop
on Measurement and Networking (M&N). IEEE, 2017, pp. 1–5.
[11] A. Baccigalupi and A. Liccardo, “The huang hilbert transform for eval-
uating the instantaneous frequency evolution of transient signals in non-
linear systems,” Measurement: Journal of the International Measurement
Confederation, vol. 86, pp. 1–13, 2016.
[12] A. Baccigalupi, M. D’Arco, and A. Liccardo, “Parameters and methods
for adcs testing compliant with the guide to the expression of uncertainty
in measurements,” IEEE Transactions on Instrumentation and Measure-
ment, vol. 66, no. 3, pp. 424–431, 2017.

211

You might also like