<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>The Mobile Environment Monitoring System with a Web Interface</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nataliia Furmanova</string-name>
          <email>nfurmanova@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Galina Shilo</string-name>
          <email>shilo.gn@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anton Kalynychenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pavlo Kostianoi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department “Information technology of electronic devices”, Zaporizhzhia National Technical University, UKRAINE</institution>
          ,
          <addr-line>69063, Zaporizhzhia, Zhukovskogo str., 64</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>1</fpage>
      <lpage>3</lpage>
      <abstract>
        <p>In the scientific work the mobile system has been developed that will allow to remotely control the level of atmospheric air pollution. The statistic data of air pollution are shown at the developed web site. These statistics is allowed to forecast the air pollution at the district</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>Environmental monitoring is complex observations of the
environment, including components of the natural
environment, natural ecological systems, processes in them,
phenomena, assessment and changes forecast of the
environment.</p>
      <p>
        The development of monitoring as a complex method of
the gathering information about the observed object and its
activity analysis allows to talk about the formation of an
information monitoring technology that combines diagnostics
(assessment of the current), genesis (assessment of the past),
and the forecast (assessment of the future) of the state of the
studied objects [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>This article proposes the development of a software and
hardware complex that will allow remote control over the
level of air pollution. This complex can be used by installing
remote monitoring modules at multiple points to control
emissions produced by industry and cars and quickly provide
control environmental conditions for a rapid response
structures of civil defense and labor protection in enterprises
and government agencies.</p>
    </sec>
    <sec id="sec-2">
      <title>II. FORMULATION OF THE PROBLEM</title>
      <p>
        Issues of environmental monitoring are relevant today.
This is evidenced by a large number of scientific papers on
this topic. Thus, in [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ] environmental monitoring is
considered as a part of Smart Cities and the importance of
control with air content in urban cities is emphasized.
      </p>
      <p>
        Different mathematical models are used for solving the
task of modeling air pollution. In [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] forecast methods of the
ecological situation on the basis of a hidden Markov model
are specified. Using the interval difference operators for
analysis of air pollution from vehicular traffic is proposed in
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Wireless sensor networks using Wi-Fi are proposed in
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], but this decision has some constraints, so we are
proposed using SIM modem.
      </p>
    </sec>
    <sec id="sec-3">
      <title>III. THE MAIN FEATURES</title>
      <p>Following steps realize the processing of information in
the developed monitoring system:
- measurement of gases in the air;
- processing information by microcontroller;
- recording results on the server;
- presenting results on the site;
- view the given information by end-users.</p>
      <p>Existing air pollution monitoring devices do not have the
ability to transmit data for their analysis remotely.</p>
      <p>Based on the considered analogs, we have put forward and
implemented the following requirements:</p>
      <sec id="sec-3-1">
        <title>A. Modularity</title>
        <p>To be able to use complex on different objects, cities,
countries-complex must have universal measurements. This
flexibility has been achieved by using a series of sensors MQ,
which allow you to measure a huge range of gases without
changing the polling algorithm.</p>
      </sec>
      <sec id="sec-3-2">
        <title>B. Measurement ranges</title>
        <p>It can be achieved the following ranges of measurements
of different gases with a combination of different sensors:
LPG and propane: 200ppm-5000ppm
Butane: 300ppm-5000ppm
Methane: 5000ppm-20000ppm
H2: 100ppm-10000ppm
Alcohol: 100ppm-2000ppm
CH4 and natural gas: 200-10000ppm
LNG and iso-butane: 200-1000ppm
Carbon-monoxide: 20ppm-2000ppm
Ozone: 10-1000ppm
Ammonia, Benze, Hydrogen: 10ppm-10000ppm
H2S: 1ppm-200ppm
Ammonia: 5ppm-500ppm</p>
        <p>Toluene, Acetone, Ethanol: 5ppm-500ppm</p>
      </sec>
      <sec id="sec-3-3">
        <title>C. Data gathering</title>
        <p>The complex provides remote collection of information
from a variety of monitoring modules located at a great
distance from each other. The collection is carried out by
transferring information from each module to the server using
the SIM800L GSM modem. This solution has some
advantages in comparison with the using of Wi-Fi. Firstly,
mobile communication covers significantly larger territories.
Secondly, in the absence of communication device will write
data in the memory and send them later.</p>
      </sec>
      <sec id="sec-3-4">
        <title>D. Presentation of information</title>
        <p>The ability to display information in the form of interactive
graphs using any device with Internet access is implemented,
as well as daily, weekly, monthly sampling data with
information about exceedances.
control rate, sending and receiving GPRS data (TCP / IP,
HTTP, etc.).</p>
      </sec>
      <sec id="sec-3-5">
        <title>D. Temperature and humidity sensor</title>
        <p>As a temperature and humidity sensor it was optimal to
choose one product in order to reduce the cost and
dimensions of the device. As a combined humidity and
temperature sensor, we chose the DHT22 digital sensor. The
main characteristics of the sensor are ultra-low power
consumption, lack of tying, long life time, digital interface.</p>
        <p>Reporting is carried out by a web application, where you
can select the data for the certain period of time (Fig. 1) and
look through them in the form of interactive graphs, as well
as a table (Fig. 2).</p>
        <p>It implements the ability to work from the power supply 5
V, as well as due to the very low energy consumption from
the battery.</p>
      </sec>
      <sec id="sec-3-6">
        <title>F. Price</title>
        <p>Since reviewed analogues are rather expensive, they
cannot be used in combination. Therefore, one of the main
tasks was to maximally reduce the cost of individual
monitoring modules.</p>
        <p>This problem was solved due to relatively cheap
components: a microcontroller (PIC16f887), gas sensors of
the MQ series and a temperature and humidity sensor DHT.</p>
        <p>Due to this we were able to reduce the cost of the device to
approximately 750 UAH.</p>
        <p>III.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>HARDWARE</title>
      <sec id="sec-4-1">
        <title>A. The microcontroller</title>
        <p>There are following requirements to the microcontroller: at
least 3 analog-to-digital converters, low power consumption,
built-in UART interface, low cost. Based on this, the
PIC16F887 microcontroller was chosen.</p>
      </sec>
      <sec id="sec-4-2">
        <title>B. The gas sensors</title>
        <p>As sensors for determining the gas concentration optimally
take sensors MQ-X series by FC-22. The main advantage of
this series is that identical in function to the sensors ensure
the measurement of the concentration of a whole range of
gases. It allows to measure several parameters, as well as to
interchange the sensors without changing the polling
algorithm.</p>
        <p>Table I lists all kinds of compatible sensors.</p>
      </sec>
      <sec id="sec-4-3">
        <title>C. GSM modem</title>
        <p>As a remote data transmission module, the GSM/GPRS
modem SIM800L is used. The standard SIM800L control
interface provides access to GSM/GPRS 850/900/1800 /
1900 MHz network services for sending calls, SMS messages
and exchanging digital GPRS data. The module is controlled
via the UART interface using AT commands.</p>
        <p>The SIM800L component has an implemented TCP / IP
protocol stack, automatic detection of the AT command
MQ138 VKeOtoCn(eM,Eeslltoewr), Benzene, Aldehyde,
is developed as a prototype, to test the housing and the device
as a whole, housing parts were manufactured by 3D printing
using a 3D printer for FDM technology. PLA (polylactide)
based on environmental materials was chosen as the material.
Diameter of the used plastic fibers is 1.75 mm, which is due
to the features of the printer structure. A three-dimensional
model was created in the SolidWorks system (Fig. 5).</p>
        <p>The housing consists of four parts: the base, partitions with
sensor mount and a lid. The overall dimensions of the
assembled housing are 70x70x40 mm. After testing it is
possible to produce a series of pressure casting housings, that
will reduce the cost of the housing unit as a whole in mass
production.</p>
        <p>The appearance of the printed circuit board is shown at the
Fig. 4.</p>
        <sec id="sec-4-3-1">
          <title>SOFTWARE</title>
        </sec>
      </sec>
      <sec id="sec-4-4">
        <title>A. The software part of a module</title>
        <p>When the module is turned on, the microcontroller
calibrates the MQ-X gas sensors, and then it initializes the
connection to the GSM module. After that, the cyclic starts
measure the level of air pollution, the information is gathered
from the sensors and sent it to the server. The time between
measurement and sending can be changed from 10 seconds to
several days.</p>
        <p>During the delay between the measurements, the controller
switches to sleep mode, which reduces power consumption.</p>
        <p>If the connection to the GSM module has not been
established, the microcontroller will write the data into
memory and retry the sending of data at the next cycle pass.</p>
        <p>Sending data to the server occurs through the HTTP POST
request. This allows to record the readings in the form of a
JSON string and to process on the server side easy.</p>
      </sec>
      <sec id="sec-4-5">
        <title>B. The Server</title>
        <p>The work of the complex is to monitor a large area and
collect information from a variety of modules. Therefore, it is
necessary to store, process and submit a fairly large flow of
information, so we chose the following software tools:
1) MySQL - Database management system, which is
used to store information received from modules.</p>
        <p>2) WEB server (in particular nginx HTTP server + php)
- using REST requests, we can use it both to receive
information from the modules and display information to the
end user.</p>
      </sec>
      <sec id="sec-4-6">
        <title>C. Server Software</title>
        <p>When the SIM800 modem installed in the module is
accessed to the server, the script parses the incoming JSON
string to an array of data from each sensor, as well as
information about the module, and places these data to the
database.</p>
        <p>Information about the database tables used for the
operation of the complex is given below (Table II, Table III).</p>
        <p>Record number (table key)</p>
        <sec id="sec-4-6-1">
          <title>The physical address of the installation</title>
        </sec>
        <sec id="sec-4-6-2">
          <title>The device name</title>
        </sec>
        <sec id="sec-4-6-3">
          <title>Description Device description / Notes TABLE 3. TABLE READINGS – INFORMATION FROM SENSORS</title>
          <p>…</p>
        </sec>
        <sec id="sec-4-6-4">
          <title>Module9</title>
          <p>Record number (table key)</p>
        </sec>
        <sec id="sec-4-6-5">
          <title>ID of device</title>
        </sec>
        <sec id="sec-4-6-6">
          <title>Time and date of data fixation</title>
        </sec>
        <sec id="sec-4-6-7">
          <title>Temperature from DHT22 sensor</title>
        </sec>
        <sec id="sec-4-6-8">
          <title>Humidity DHT22 sensor</title>
        </sec>
        <sec id="sec-4-6-9">
          <title>Sensor 1 readings …</title>
        </sec>
        <sec id="sec-4-6-10">
          <title>Sensor 1 readings</title>
        </sec>
      </sec>
      <sec id="sec-4-7">
        <title>D. User Interface</title>
        <p>
          When designing the complex, the ability to view
information from any device in an easy and understandable
way has provided. Therefore, for these purpose it was
decided to create a web interface and present data in the form
of interactive graphs. Experimental results are shown in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ].
        </p>
        <p>The web application was written in javascript, which
makes a selection for a given period of time and displays this
data using the library chart.js.</p>
        <p>V.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>CONCLUSION</title>
      <p>In this paper, a system for environmental monitoring is
proposed. A module has been developed that will allow to
monitor the level of air pollution remotely.</p>
      <p>The low cost of the developed module will make it
possible to produce and install a large number of modules for
environmental monitoring to cover extended areas.</p>
      <p>The following tasks were solved. The automation system
for determining the concentration of gases in the atmosphere
by means of sensors was studied. An algorithm for the
functioning of the device is developed. A layout and trace of
the printed circuit board were created; performance
characteristics were calculated. The technology of production
of parts and assemblies was chosen an experimental model
was created. A system for storing, processing and reporting
information on air pollution in a user-friendly form was
developed.</p>
      <p>Analysis of the collected information on the state of the
environment, taking into account rose winds allows to
determine the source of emissions of certain gases; to
simulate environmental conditions and predict the movement
of air currents in the event of emergencies.</p>
      <p>Features of the developed ecological monitoring system:
- a wide range of air pollution coverage;
- the possibility of modification or individual assembly on
request of the customer;
- small, in comparison with similar devices, cost;
- relatively simple process of production using typical
technological processes;
- gathering information from a set of modules located at
different points.</p>
      <p>These properties allow using a proposed system for
educational purposes. It was realyzed at the Zaporizhzhia
National Technical University in form of laboratory stand.
This stand was developed to study the basics of data analysis
by students. The stand allows them to vary the components of
the modules, test their operation in practice and improve its
features using modern approaches for gathering and analysis
of data.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Awange</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.B.</given-names>
            <surname>Kyalo Kiema</surname>
          </string-name>
          , Environmental Geoinformatics: Monitoring and Management, New York, Springer,
          <year>2013</year>
          , 533 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Srinivasan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Sookoor</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Jeschke</surname>
          </string-name>
          , Smart Cities:Foundations, Principles, and Applications, Wiley; Hoboken,
          <string-name>
            <surname>NJ</surname>
          </string-name>
          , USA:
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bacco; F. Delmastro</surname>
          </string-name>
          ;
          <string-name>
            <given-names>E.</given-names>
            <surname>Ferro</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Gotta</surname>
          </string-name>
          <article-title>“Environmental Monitoring for Smart Cities,” IEEE Sensors Journal</article-title>
          , Vol.
          <volume>17</volume>
          , Issue:
          <volume>23</volume>
          ,
          <year>2017</year>
          , pp.
          <fpage>7767</fpage>
          -
          <lpage>7774</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Wei</given-names>
            <surname>Sun</surname>
          </string-name>
          , Hao Zhang, Ahmet Palazoglu et al.,
          <source>"Prediction of 24-hour-average PM2</source>
          .
          <article-title>5 concentrations using a hidden Markov model with different emission distributions in Northern California"</article-title>
          ,
          <source>Science of the Total Environment</source>
          , pp.
          <fpage>93</fpage>
          -
          <lpage>103</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>I.</given-names>
            <surname>Voytyuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Porplytsya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Pukas</surname>
          </string-name>
          and
          <string-name>
            <surname>T.</surname>
          </string-name>
          <article-title>Dyvak “Identification the interval difference operators based on artificial bee colony algorithm in task of modeling the air pollution from vehicular traffic</article-title>
          ,
          <source>” 14th International Conference The Experience of Designing and Application of CAD Systems in Microelectronics (CADSM)</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>58</fpage>
          -
          <lpage>62</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Pavani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.T.</given-names>
            <surname>Rao</surname>
          </string-name>
          ,
          <article-title>"Real time pollution monitoring using Wireless Sensor Networks"</article-title>
          ,
          <source>2016 IEEE 7th Annual Information Technology Electronics and Mobile Communication Conference (IEMCON)</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>[7] Statistics of air pollution monitoring: http://ecomon.devus.tk</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>