You are on page 1of 5

2020 International Conference on Computer Communication and Informatics (ICCCI -2020), Jan.

22 – 24, 2020, Coimbatore, INDIA

IoT Based Smart Wearable for Air Quality


Monitoring
Ravi Kishore Kodali Sasweth C. Rajanarayanan and Lakshmi Boppana
Department of Electronics and Communication Engineering Department of Electronics and Communication Engineering
National Institute of Technology, Warangal National Institute of Technology, Warangal
WARANGAL-506004 WARANGAL-506004
ravikkodali@gmail.com

Abstract— Internet of Things has been providential in tackling a large section of the society has been disadvantaged and forlorn
lot of problems that amassed a lot of attention and concern because of the absence of awareness in air pollution related
among people. A lot of consumer electronics today have multiple health risks. Therefore, the demand for air quality monitoring
IoT subsystems functioning in them, that not only make a systems has skyrocketed. There is no doubt that these systems
product smart, but also increases its value as a product. Air ameliorate health risks by making information available to their
pollution is a very serious problem, that has proved its owners, but the scalability of a solution is an important factor
deleteriousness over the past few years. With a lot of densely to consider. A modern day human being intends to get all the
populated cities, now branded as unsafe for people to live in, due information he needs from a hand held device. Air pollutant
mainly to the polluted air it is home to, the importance for a
level monitoring is not something a phone would be able to do,
solution that alerts city dwellers about the air quality of a space is
gaining momentum. IoT, however could solve this problem, by
at least directly. Nevertheless, the idea of a dedicated device
educating people about the air quality, after measuring them. A for air quality monitoring is not something a lot of people
dedicated air pollution monitoring device will not be effective would get sold to. Therefore, the idea of integrating these
enough in making people accept that an air quality monitor is a monitoring systems into something that people have found
necessity and not a luxury. Therefore, this work integrates an air necessary through the years to use, sounds reasonable and
pollution monitoring system into a wearable like a watch that practical. This has led to the inception of Wearable devices and
also doubles as a fitness tracker and a temperature monitor. Air Wearable IoT in particular. Smart watches, smart bracelets,
pollutant levels, footsteps taken and ambient temperature are all smart hearing aids and glasses are all products of Internet of
sensed and displayed by the smart watch proposed in this work Things that are in use today. These devices show a lot of
and is also casted to a custom designed smartphone application. promise in solving a lot of problems that seem very difficult to
The device proposed is novel in what it can do at the extremely approach otherwise. These devices besides serving singular
low cost that it takes for its build. Thus a watch that can do functions, like checking time etc., are also being used in
everything that other watches can and cannot do has been activity tracking and human assistance and their popularity as
proposed, with a tight integration to a smartphone app. assistive devices has been ever increasing. These devices are
also being used as means to control other IoT devices. With the
I. INTRODUCTION arrival of fitness trackers, health tracking has become
extensively simple. If not the overall health, a lot of medical
One of the most important and pressing problems in the parameters can be monitored right at a person’s wrist.
21st century is air pollution. The past decade has seen a steady Monitoring data and making them available to the users at the
increase in air pollution levels in metropolitan cities in India. right time is itself a very high stake, given that the inception of
One important cause for this, is rapid industrialization and severities in diseases and their symptoms happen due mainly to
pollution growth. While air pollution levels are on the rise, the absence of essential data at the right time. These devices
what is increasing at an even faster rate are the casualties would therefore emphasize on prevention than supporting cure.
caused due to them. A lot of air pollutants have been studied to Wearable IoT devices have reached from tracking step count to
pose deleterious consequences to the human health. While tracking heart rates and have become intelligent enough to
ventilation systems have CO2 levels as their chief indicator [1], understand the outcomes of a tracked value. Wearables have
it is not the only one that is insidious to air. In fact, carbon become important commodities in the healthcare sector,
monoxide has been studied to be one of the most harmful air enabling continuous patient monitoring and parameter tracking
pollutants that can have detrimental effects on living beings. [2] and logging the measured parameters to the cloud for
Carbon dioxide can cause problems such as dizziness, a centralized access. This has not only reduced medical errors,
completely unacceptable condition for vehicular environments. but has also improved the efficacy of a treatment in patients
While the conspicuous causes in the form of industrialization, [3]. This becomes just another instance where presence of
vehicular exhausts, etc. would take effort and time to combat information improves the quality of life of people. Seemingly
against, the presence of air quality information would insignificant data collected by these devices might help big in
tantamount to a growth in awareness, which would in turn help data analytics in the cloud. These devices are limited to sensing
people in taking measures to alleviate long term health risks. A data and performing a few subtle operations with it. They log

978-1-7281-4514-3/20/$31.00 ©2020 IEEE

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL. Downloaded on December 02,2020 at 07:37:17 UTC from IEEE Xplore. Restrictions apply.
2020 International Conference on Computer Communication and Informatics (ICCCI -2020), Jan. 22 – 24, 2020, Coimbatore, INDIA

these sensed values to the cloud and rely on them for results cloud [5]. The language has therefore remained the same, to
and responses that mandate computationally intensive monitor air pollutant levels and log them to a cloud platform.
operations to be done on the collected data. This makes them The focus therefore has shifted to improving the scalability of
low power devices, the power consumption being heavily the implementation and the ergonomics of the proposed device.
dependent on the way they communicate the sensed data to the The idea of air pollutant level monitoring should itself be a
cloud, besides sensing them. A wearable solution besides feature that day to day commodities support. These
checking the boxes of ergonomics and power consumption commodities would therefore help in imparting the much
should also focus on achieving accurate results in what it is needed knowledge about air quality besides serving their
capable of forecasting and sensing. This is what something all respective purposes. Wearable technologies should therefore be
the smart wearables have been trying to achieve besides embraced to offer dynamic solutions to important problems
supporting new features. Connectivity is another important like air pollution.
factor. A smart wearable connected to a smartphone or the
cloud, should be able to provide data as and when it is available III. MEASURED PARAMETERS
without any latencies, if there is no problem from the
network’s side. This would mean that a smartphone or cloud The device that this work talks the implementation of,
dependent smart wearable should not have frequent “dropouts”. measures carbon monoxide and carbon dioxide concentrations
As far as smartphone-smart wearable communication is and also tracks the number of steps taken by the user. The work
concerned, devices built around the Bluetooth 4.0 or later, uses the following algorithm to realize a pedometer in the
typically boast reliable and stable connectivity over extended device:
periods of time. Use of Bluetooth Low Energy has improved
the life time of smart wearables, without compromising on data A. Algorithm for Pedometer
exchange [4]. This work singularly takes each of these stakes
of being of purpose-oriented smart wearable, into account. This 1) The M5Stick-C is the hardware development board
work discusses the implementation of an IoT based smart used in this work. This board has a SH200Q 6-axis
watch that is feature-ridden and ergonomically compact. This IMU sensor, which can measure 3-axis accelerometer
fact is primarily due to the use of a novel hardware values and 3-axis gyroscope values. This sensor thus
development board called M5Stick-C. With an ergonomic that records the x, y and z components of acceleration of
aims at wearable device development, this device comes with
the user.
an embedded accelerometer, gyroscope and temperature sensor
2) A threshold acceleration value is maintained at 80
that can be programmed to sense values that they are capable
of sensing. The smart wearable therefore is a watch that tracks units.
the step count of its user like conventional fitness trackers and 3) The x, y and z components of the acceleration are
also measures carbon monoxide and carbon dioxide read and their magnitude is calculated to get the total
concentrations in the surrounding air. These values, along with acceleration for each set of readings.
the ambient temperature value are sent to the BLYNK 4) The average of the current and previous total
application running on the users’ smartphone, which presents acceleration is calculated and compared with the
the received data in a visually aesthetic manner. Moreover, threshold.
wearable air quality monitoring systems have all the necessary 5) If the average is greater than the threshold, the step
technologies for monitoring air pollutant levels, in an already count is incremented, else it is left as it is.
popular and existent commodity like a watch and are based on 6) This step count is also displayed on the LCD display
the idea of measure on-the-go, which helps in keeping track of of the M5Stack.
air quality wherever a person goes, thereby eliminating the
need for a dedicated device for air quality monitoring. This
paper is divided into the following sections: Section II talks B. Carbon Monoxide
about the related work going on in this field. Section III talks
about the parameters measured in this work. Section IV is all Carbon monoxide is one of the chief and deleterious air
about the Experimental Setup that this work uses. Section V is pollutants. Carbon monoxide is emitted from anything that
about the Working and Section VI discusses the Results makes use of combustion fumes. Therefore, heating systems,
obtained and Conclusions drawn. Section VII talks about the vehicles, gasoline engines, burning of wood and charcoal etc.
Further Scope of this work. emit carbon monoxide when they are functional. Carbon
monoxide gas has the property of binding itself to
II. RELATED WORK haemoglobin in red blood cells thereby potentially reducing
There has been a lot of work going on in the field of air the oxygen carrying capacity of the blood. Symptoms of
quality monitoring systems. There has been a lot of proposals carbon monoxide poisoning include nausea, dizziness,
that cater to different types of use cases. There are bulky and headache and chest pain. The fact that the gas is odourless and
therefore stationary air quality monitoring systems that are colourless makes it difficult for easy detection. Thus causes
based on the concept of Internet of Things. They connect to for health problems related to carbon monoxide may look just
smartphones and in some cases use the smartphone as a as abstract as the presence of the gas itself in the air.
gateway device to talk to the cloud. There are portable devices Therefore, a real time carbon monoxide monitoring system is
with displays that monitor air pollutant levels and send them to of very high importance [6].

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL. Downloaded on December 02,2020 at 07:37:17 UTC from IEEE Xplore. Restrictions apply.
2020 International Conference on Computer Communication and Informatics (ICCCI -2020), Jan. 22 – 24, 2020, Coimbatore, INDIA

The Arduino IDE provides support for programming the


C. Carbon Monoxide
M5Stick-C. Fig 2 shows the M5Stick-C. The M5Stick-C has
been interfaced with the MQ-7 gas sensor for measuring
Carbon dioxide is also one of the important and harmful air carbon monoxide concentrations and the MQ 135 sensor for
pollutants that has both short term and long term effects. As measuring carbon dioxide concentrations. The MQ-7 and MQ-
carbon dioxide levels inside a closed room increases, 135 sensors have similar form factors to the M5Stick-C. The
breathing becomes hard. One short term effect that the gas has setup thus does not look extravagant in appearance. The
is headaches, which can get severe at increased carbon dioxide M5Stick-C interfaced with the MQ-7 and MQ-135 sensors
levels [7]. High levels of carbon dioxide, generally in indoor acts as the network edge device in this work. The edge device
spaces would essentially imply that other air pollutants like is therefore an ergonomically compact device that stays true to
volatile organic compounds are also extant at high levels in a its use in Wearable-IoT devices. The M5Stick-C displays all
given space. This is a concern; as volatile organic compounds the data that it measures on its 0.92- inch LCD screen.
are themselves potential air pollutants. Carbon dioxide is also
a potential greenhouse gas and therefore contribute to the
greenhouse effect. A long term effect of carbon dioxide is
climate change [7]. From burning of fuels to certain types of B. The BLYNK Application
fertilizers, carbon dioxide concentrations have various
manmade causes. The BLYNK platform is a hardware-agnostic Internet of
Measurement of both carbon monoxide and carbon dioxide is Things platform that offers greatly customizable mobile
therefore, of prime importance. applications, private cloud services, data analytics, device
management and machine learning. The platform makes it
simple for connecting devices to the cloud and allows the
IV. EXPERIMENTAL SETUP development of custom applications targeted at smartphone
use, to control them [8]. Applications developed on the
A. M5Stick-C
BLYNK app can analyse telemetry data at multiple levels and
The M5Stick-C is an ESP-32 based hardware development gives a good hold over the data obtained. The data collected
board. Introduced in 2019, the board is new and has been can be represented in an aesthetic manner that would be
receiving a lot of attention lately, owing to its use in Wearable helpful in readily and effortlessly conveying the data that we
applications. Its form factor, along with a 0.92-inch LCD want it to convey. The app also gives the provision for
screen, its GPIO pins and it having Wi-Fi and Bluetooth and deploying the application created, the created application
Bluetooth Low Energy capabilities make it a perfect hardware being compatible with both Android OS and iOS mobile
development board for Wearable-IoT applications. The board operating systems. This platform has been used in this work to
comes at a very low cost and is highly developer friendly. host the pedometer data, the temperature, carbon monoxide
Being an ESP-32 based board, it has all the features that the and carbon dioxide concentrations. The app thus aims at
ESP-32 supports like Wi-Fi, Classic Bluetooth and Bluetooth providing the user with device management options, by
Low Energy. The ESP-32 has an on-board cryptographic mirroring all that the M5Stick- C displays on its LCD screen.
hardware accelerator block that adds security to IoT data The firmware that goes into the M5Stick-C has been written in
transactions. The M5Stick-C has an on board SH200Q 6-axis C++.
IMU sensor that is capable of measuring 3-axis accelerometer
data and 3-axis gyroscope data. The accelerometer data has
been used to track step count. The M5Stick-C has 3 hardware V. WORKING
buttons. The device can also be used for infrared applications,
owing to the presence of an on-board infrared sensor. The The M5Stick-C has been interfaced with the MQ-7 sensor and
board supports a lot of development options. The Stick-C the MQ-135 sensor for measuring carbon monoxide and
comes pre-flashed with its custom UI-Flow firmware. It can carbon dioxide concentrations respectively. The air is sensed
also be programmed using Micropython, C and C++. for the pollutant concentrations every 10 seconds and the
sensed values are displayed on the M5Stick-C’s LCD screen.
The embedded temperature sensor has been used to measure
the temperature, which is displayed on the LCD screen too.
The embedded accelerometer has been used to implement a
pedometer for tracking the step count, which is displayed on
the LCD screen. The device is named as AirFit owing to its
ability to track footsteps that promote fitness and air pollutant
levels that promote awareness to a person regarding the real
time air quality. 8500 steps per day is a globally accepted step
count that is necessary to keep a person healthy. The device is
Fig. 1. The M5Stick-C

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL. Downloaded on December 02,2020 at 07:37:17 UTC from IEEE Xplore. Restrictions apply.
2020 International Conference on Computer Communication and Informatics (ICCCI -2020), Jan. 22 – 24, 2020, Coimbatore, INDIA

essentially a watch, that doubles as a footsteps and air concentrations can be measured wherever the user goes.
pollutant level tracker. Fig 2 shows what the AirFit looks like. Logging measured data to the app is subject to availability of
internet connection.

VI. RESULTS

The AirFit device, a watch that doubles as a fitness tracker and


air quality monitoring device, was able to measure carbon
monoxide and carbon dioxide concentrations, track footsteps
and measure temperature. These parameters were then logged
to the AirFit application created using the Blynk application.
The AirFit application running on the Blynk platform, hosting
the parameters received from the AirFit device is shown in Fig
Fig. 2. The AirFit Device developed in this work. 4.

The M5Stick-C has been programmed to log the sensed values


to a smartphone app created using the BLYNK application,
called AirFit and solicits internet connectivity to do so. The
reason for choosing a Wi-Fi based data communication to a
smartphone is that the device can also be used as a stationary
air pollutant level tracker in an indoor space if needed and can
effectively perform remote sensing and efficient data
communication to the smartphone, of the measured pollutant
values. The app provides a graphical view of the sensor data,
by using gauges for displaying the pollutants’ data and value
displays for displaying step count and temperature values.
These data fields are programmed to be accessed by the
M5Stick-C using virtual pins. Each measured parameter is
sent to a virtual pin, which routes the received value to a data
field. The app thus features a dashboard that assists in device
management. Every data that the M5Stick-C’s LCD screen
displays is mirrored by the AirFit app. The BLYNK app issues
a token which the M5Stick-C has been programmed to use
while sending data to the app. The data sensed is updated on
the app in real time, with very low to zero latency.
Fig. 4. Parameters from the device being logged into the
Blynk App.

Air quality monitors have conventionally been devices entirely


dedicated to perform their prime function, which is continuous
air quality monitoring. These devices have been miniaturized
in the past, yet have been restricted to singularly doing their
routine alone of air quality monitoring. The device discussed
in this work supersedes conventional air quality monitors, as
user investment therefore need no more go into a dedicated
device that monitors air quality alone, but on an already extant
device that dually functions as a watch and an IoT device that
tracks fitness and monitors air pollution. These features
therefore exalt the AirFit smart wearable device to a bang for
the buck product. The device also casts all the data that it
measures to the AirFit smartphone app for having a holistic
Fig. 3. The AirFit Device integrated with the AirFit Blynk view of all that the AirFit device measures. The build has been
App. one that involves less cost, with the M5Stick-C priced at 10
US dollars. The proposed device thus checks the right boxes in
Device management can thus be done using the AirFit app. ensuring environmental safety and educating users about their
Using the AirFit watch and the AirFit app, air pollutant fitness, besides air pollution monitoring.

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL. Downloaded on December 02,2020 at 07:37:17 UTC from IEEE Xplore. Restrictions apply.
2020 International Conference on Computer Communication and Informatics (ICCCI -2020), Jan. 22 – 24, 2020, Coimbatore, INDIA

VII. FURTHER SCOPE

In this work air quality parameters such as carbon dioxide and


carbon monoxide have been measured. This work can be
extended to measure other important parameters such as PM
2.5 and PM 10, prolonged exposure to which can cause lung
cancer in human beings. This would thus help in
understanding air quality better and the proposed wearable
device would be much more capable in assessing air quality
that what it currently is. Machine learning algorithms can be
used to analyse a user’s health based on the readings that the
Blynk app receives, to advice users about the health risks that
they are capable of being subjected to. A device that thus
dedicates itself to complete health tracking can be achieved.

REFERENCES
[1] Fan Wu, Christoph Rudiger, “We-safe: A wearable iot sensor node for
safety applications via lora,” in IEEE 4th World Forum on Internet of
Things (WF-IoT), 2018.
[2] Richard K. Lomotey, Joseph Pry, “Wearable iot data architecture,” in
IEEE World Congress on Services (SERVICES), 2017.
[3] K. M. Shivayogi Hiremath, Geng Yang, “Wearable internet of things:
Concept, architectural components and promises for person-centered
healthcare,” in 4th Int. Conference on Wireless Mobile Communication
and Healthcare - Transforming Healthcare Through Innovations in
Mobile and Wireless Technologies (MOBIHEALTH), 2014.
[4] Matti Siekkinen, Markus Hiienkari, “How low energy is bluetooth low
energy comparative measurements with zigbee/802.15.4,” in WCNC
2012 Workshop on Internet of Things Enabling Technologies,
Embracing Machine-to-Machine Communications and Beyond, 2012.
[5] Kennedy Okokpujie, Etinosa Noma-Osaghae, “A smart air pollution
monitoring system,” in International Journal of Civil Engineering and
Technology, 2018.
[6] Nur Azieda Mohd Bakri, Syed Abdul Mutalib Al Junid, “Mobile carbon
monoxide monitoring system based on arduino-matlab for
environmental monitoring application,” in 4th International Conference
on Electronic Devices, Systems and Applications (ICEDSA), 2015.
[7] Yuhong Xie, Jianxin Pang, “Research about co2 emission under the
current energy structure in tianjin,” in International Conference on E-
Product E-Service and E-Entertainment, 2010.
[8] Homera Durani, Mitul Sheth, “Smart automated home application using
iot with blynk app,” in Second International Conference on Inventive
Communication and Computational Technologies (ICICCT), 2018.

Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL. Downloaded on December 02,2020 at 07:37:17 UTC from IEEE Xplore. Restrictions apply.

You might also like