Professional Documents
Culture Documents
ON
AIR POLLUTION MONITORING SYSTEM USING
LABVIEW
Submitted By
K AKAMSHA REDDY 17B81A1001
D SNEHA 17B81A1047
CH VIJENDER REDDY 17B81A1058
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND INSTRUMENTATION ENGINEERING
DEPARTMENT OF
ELECTRONICS AND INSTRUMENTATION ENGINEERING
DEPARTMENT OF
ELECTRONICS AND INSTRUMENTATION ENGINEERING
CERTIFICATE
D SNEHA 17B81A1047
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of any
task would be incomplete without the mentioning of the people whose constant
guidance and encouragement made it possible.
We express our sincere thanks to our internal guide Ms. V. Sreelatha Reddy ,
Assistant professor , Department of EIE , for giving us support , kind attention
and valuable guidance throughout the project.
ABSTRACT
Air pollution is a major concern in modern cities and in developing countries .
It has a significant influence on the concentration of constituents such as CO2,
CO, SO2, H2S, etc. in the atmosphere and that is location-independent .
Atmospheric pollutants are responsible for many environmental problems such
as acid rain and ozone layer depletion which make it difficult for plants and
animals to survive. Hence , to avoid such adverse effects an air pollution
monitoring system is vital especially in the urban and industrial areas . A
Wireless Sensor Network (WSN) is developed with gas , temperature and
humidity sensors for monitoring the environmental parameters in the area where
it is installed . Wireless sensor networks have various applications - from across
the indoor climate control , fire and flood detection to medical diagnostics ,
biocomplexity mapping and precision agriculture. The monitored values from
different sensors are sent to the Zigbee module through a PIC16F876
microcontroller . Based on the information , the Zigbee module operates under
Normal operating conditions and Alert conditions by consuming low-power at
low-cost . The analog values issued from different sensors are transmitted to a
pc through the ZigBee module . The case of an exceeding level of gas displays
a flashing window that contains an alert message with alarm sound otherwise
no alarm signal is sent . The gas monitoring system communicates with the PC
via RS232 which is chosen based on LabVIEW simulation software to make
the link configuration and this is called interfacing of LabVIEW software with
Zigbee module . Therefore , pollution monitoring is a very wide field and this
project is an attempt to minimize the problem by providing real time
acquisition and monitoring systems.
CONTENTS
ACKNOWLEDGEMENT…………………………………………… i
ABSTRACT……………………………………………………………. ii
LIST OF FIGURES…………………………………………………….
LIST OF TABLES……………………………………………………..
1 . INTRODUCTION………………………………………………….
1.1 INTRODUCTION…………………………………………….
1.2 OBJECTIVE…………………………………………………..
1.4 CONCLUSION……………………………………………….
2.1 INTRODUCTION……………………………………………
2.2.1 DEFINITION………………………………………...
2.3 CONCLUSION…………………………………………
3 . WIRELESS TECHNOLOGIES………………………………...
3.1 INTRODUCTION………………………………………………
3.4 CONCLUSION…………………………………………………
4.1 INTRODUCTION……………………………………………………………
4.3.1 CO SENSOR…………………………………………………
4.4 CONCLUSION……………………………………………………………...
5.4 CONCLUSION……………………………………………………….
6.1 INTRODUCTION………………………………………….
6.3 CONCLUSION……………………………………………
7 . RESULTS…………………………………………………………………..
8 . CONCLUSION…………………………………………………...
10 . BIBLIOGRAPHY………………………………………………..
LIST OF FIGURES
LIST OF TABLES
1. INTRODUCTION
1.1 INTRODUCTION
Air pollution is one the most crucial factors affecting life and health of
human, animals and plants . It has significant influence on the concentration of
constituents in the atmosphere . It occurs when any harmful gases, dust, smoke
enters into the atmosphere and makes it difficult for plants, animals and humans
to survive as the air becomes dirty . Also atmospheric pollutants are responsible
for many environmental problems such as acid rain and ozone layer depletion .
Hence , to avoid such adverse imbalances in the nature , an air pollution
monitoring system is vital especially in the urban and industrial areas . In this
paper , a wireless solution is proposed for monitoring the level of harmful gases
. The proposed system enables measurement of the levels of H2S, temperature,
and humidity . The software part of the project has been developed under
LabVIEW environment . The experimental results demonstrate the efficacy of our
project in terms of fast detection and real time response.
1.2 OBJECTIVE
The WSN system can be deployed in the cities to monitor the air pollution level . The
air quality measurement is processed and presented to the end user in real time in a
user friendly manner .
The nodes that make up the WSN can range from a few to several hundreds , where
each node is connected to its sensor.
1.4 CONCLUSION
Thus , in this chapter the objective of proposed model is known.
2. WIRELESS SENSOR NETWORKS
2.1 INTRODUCTION
A sensor network is a term referring, in general, to a collection of networked
embedded systems. Each of the systems constituting the network is called a sensor
node or just a node.
• Data Processing : Process the data using the node’s processing capabilities.
Although computer-based instrumentation has existed for a long time, the density of
instrumentation made possible by a shift to mass-produced intelligent sensors and the
use of pervasive networking technology gives sensor networks a new kind of scope
that can be applied to a wide range of uses.
2.2 WIRELESS SENSOR NETWORK ARCHITECTURE
Wireless sensor networks (WSN) facilitate monitoring and controlling of physical
environments from remote locations with better accuracy . They have applications in
a variety of fields such as environmental monitoring, indoor climate control, fire and
flood detection, medical diagnostics, biocomplexity mapping and precision
agriculture . The concentration of air pollutants such as CO2, CO, SO2, H2S, etc. is
highly location-dependent. The urban areas with heavy traffic concentration and
industrial areas have a considerable impact on the local air pollution. Since the air
pollution monitoring stations are costly and so are limited in number, it is more
convenient to replace these stations by a small and portable measurement system
which includes various gas sensors and microcontroller. The use of WSN can make
air pollution monitoring less complex and more instantaneous readings can be
obtained. Moreover, accurate data with indexing capabilities will be able to obtain by
using WSN .
A WSN is, traditionally, consisting of a few to dozens and in some cases thousands of
sensor nodes, connected to one or more sensors. It also includes a base station (BS)
which acts as gateway between the WSN and the end users . (See Fig.1).
2.2.1 DEFINITION
It consists of two interfaces which are interface with the acquisition unit and another
with the transmission module. The control methods for the node to collaborate with
other nodes to perform the tasks of acquisition and store the collected data.
4. Battery:
The battery powers the units we have cited, and is generally not rechargeable or
replaceable.
2.3 CONCLUSION
Thus, in this chapter we came to know about the Wireless Sensor Networks and its
Architecture.
3. WIRELESS TECHNOLOGIES
3.1 INTRODUCTION
Bluetooth , ultra-wideband (UWB), ZigBee , and Wi-Fi are four protocol standards
for short range wireless communications with low power consumption.
Wireless LAN (WLAN, also known as Wi-Fi) is a set of low tier, terrestrial, network
technologies for data communication. The WLAN standards operates on the 2.4 GHz
and 5 GHz Industrial, Science and Medical (ISM) frequency bands. It is specified by
the IEEE standard.
ZigBee , defines specifications for low rate wireless personal area network (LR-
WPAN) for supporting simple devices that consume minimal power and typically
operate in the personal operating space (POS) of 10m. ZigBee provides self-
organized, multi-hop, and reliable mesh networking with long battery lifetime.
In fact, each protocol is based on an IEEE standard. On the one hand, Wi-Fi provide a
higher data rate (54Mb/s) while Bluetooth and ZigBee give a lower one (1Mb/s and
250 Kb/s respectively). On the other hand, ZigBee and Bluetooth are intended for
WPAN communication (about 10m), while the nominal range for Wi-Fi is about 100
metres.
Moreover, the ZigBee wireless nodes can reach 65.000 whereas this number is limited
to 7 and 32 nodes respectively for Bluetooth and Wi-Fi technologies.
3.3 ZIGBEE TECHNOLOGY
The major objective of the present work is design the wireless sensor node required
for Wireless Sensor Network (WSN), which needs RF module. On survey of various
RF modules like Bluetooth , Zigbee , Wi-Fi , for short range wireless communication
with low power consumption, it is found that Bluetooth is intended for very low data
rate communication. However, the Zigbee is designed for reliable wireless
monitoring and control of the networks. Bluetooth uses Frequency Hopping Spread
Spectrum (FHSS) with 79 channels and 1 MHz bandwidth, while Zigbee uses Direct
Sequence Spread Spectrum (DSSS) With 16 channels and 2MHz bandwidth. The
major advantage of Zigbee over Bluetooth and Wi-Fi is its support up to 6500 nodes
in network, and multi hopping technique. The Zigbee, as shown in Figure 3.1, is a
wireless communication module launched by Digi corporation and it is built to
support the 802.15.4 standard. There are two versions of the Zigbee modules;
(DigiMesh 2.4) and ZB ZigBee. The difference is that the ZB modules are compatible
with normal ZigBee networks, whereas the DigiMesh is a proprietary mesh solution.
Each module comes in 2 versions: ZigBee and ZigBee-Pro. The ZigBee-Pro modules
ensures more powerful radio, for long range. Zigbee module designed for extremely
low cost than other RF models and it is easy to deploy. It consumes very low power
due to sleep mode and operates on low power supply typically 2.8V to 3.3V,
chargeable batteries. Zigbee can cover wide area to be monitored. Based on
multihoping the outdoor range may be enhanced. Salient Features of Zigbee modules
are:
Indoor/Urban range: Up to 90 m.
3.4 CONCLUSION
Thus , The choice of ZigBee protocol for our application has several reasons. In fact
ZigBee is a very attractive technology for implementing low-cost, low-power wireless
control networks requiring high flexibility in node placement.
4.1 INTRODUCTION
In this section, general system architecture Gas Detection explaining the steps
beginning of the three sensors on arrival at the LABVIEW interface is detailed.
The functions desired for our application are :
Acquisition of data: reading the concentration values of H2S (PPM) and the
temperature value (° C) and humidity (% RH) in the area where the sensor is installed.
Processing of data: for exceeding the critical values (50 PPM) which indicates the
presence of danger, our system will send an alert with an audible signal to show the
overrun. In general, for intermittent but repeated exposures at concentrations of 50 to
100 ppm (69.5 to 139 mg / m3), subjective and variable manifestations of "malaise"
(headache, fatigue, blurred memory, nausea, anorexia, ...) are described . Our system
will send an alert with an audible signal to show the overrun.
PIC16F876 microcontroller has been chosen for this application. It is a 28 pin, 8-bit
microcontroller. It requires 5V supply .
4.3.1 CO SENSOR
The CO Gas sensor MQ7 suitable for sensing CO concentrations in the air . It can
detect CO gas concentrations anywhere from 20 to 2000 ppm . MQ7 is a high
sensitive to carbon monoxide and stable and long-life span .
SPECIFICATIONS :
SPECIFICATIONS
1. Power supply needs: 5V
6. Size: 32x20mm
The METHANE Gas Sensor MQ4 suitable for sensing natural gas ( Composed of
Mostly methane [CH4] ) concentrations in air . The MQ4 can detect natural gas
concentrations anywhere from 300 to 10000 ppm . This sensor has a high sensitivity
and fast response .
Fig 4.5 : Methane Gas Sensor MQ4
SPECIFICATIONS
3. Size: 32x20x22mm
4.4 CONCLUSION
Thus , in this chapter we came to know about the Design Architecture Of Wireless
Sensor Network.
Within the LabVIEW environment there is a good selection of tools to assist the
development of the overall programs.
Templates & sample projects: This is a tool that features some of the
common templates that can be used for starting projects along with some fully
formed projects that can be used to see how projects may work, or to be
customized for particular applications.
Example finder: This has many hundreds of code snippets that illustrate the
methodology behind a huge variety of different tasks. These can be used or
customized as appropriate.
The virtual instrument provides a visual method of creating the algorithm and it can
be used on its own or within a larger overall program. In one aspect, the LabVIEW
Virtual Instrument could be likened to a subroutine used in some programming
languages.
VI Front Panel: The LabVIEW front panel is what the user of the completed
application will see. It enables them to interact with the VI, inputting controls and also
seeing results. It can be likened to the font panel of a test instrument or other piece of
equipment.
The LabVIEW VI front panel can be built up from scratch using the palette of
different controls, indicators and data types.
There is an associated functions palette within the block diagram space where all the
elements needed to build the program can be found. This enables swift accurate
programming to be achieved.
Fig 5.2 : Example of a LabVIEW VI Block Diagram
This means that it can be used for an enormous variety of interesting and diverse
applications. Not only can it be used for equipment control (including the control of
the large Hadron Collider at CERN) and a variety of data acquisition applications
(including car development simulation where Big Data monitoring is undertaken) to
the system design arena where it has been used for development of projects from RF
circuitry to biomedical equipment, green technology and much more.
Like any product or platform, LabVIEW has its advantages and disadvantages. These
must be carefully considered before starting its use.
LABVIEW ADVANTAGES
Graphical interface is flexible and simple to use. Most engineers and scientists
can learn to use it quickly.
LabVIEW can be used with 3rd party hardware: it can be interfaced with C/C+
+, VB, Fortran etc.
Easy to interface to many hardware items like data acquisition and test
equipment products.
LABVIEW DISADVANTAGES
LabVIEW is single sourced and some companies may not like to use a product
that is single sourced and not standardized by the industry.
The simulations have been performed using the Proteus software and MicroC Pro for
PIC. The sensing circuit is based on the designed sensor array consist of CO gas
sensor, H2 gas sensor, CH4 gas sensor, PIC16F876 microcontroller, an Zigbee
communication module and a virtual terminal for displaying data in local., as shown in
Fig 5.4 below .
Normal operating conditions where the voltage at the GS05 is less than 4.5V, 2.5V
at the LM35 and 1.5V at the HIH-4000. In this case, we have not exceeded level of
gas so the alarm is triggered (as shown if fig 5.4, the terminal bound N°7 of the alarm,
connected to the RC3 pin of the pic, is red which lead to an output voltage of 5V.
Thus, no alarm signal is sent).
Alert conditions where the voltage at the GS05 is greater or equal to 4.5V, 2.5V
at the LM35 and 1.5V at the HIH-4000. We have an exceeded level of gas so the
alarm is activated (it can be seen in Fig. 5.5 that the terminal bound N°7 of the
alarm, connected to the RC3 pin of the pic , is blue which lead to an output voltage
of 0V. Thus, an alarm signal is sent).
Fig 5.5 : Circuit Schematic of Wireless Sensor Nodes in
Alert conditions
The simulator board is depicted in Fig 5.6. It's allows to collect analog values issue
from different sensors which will be transmitted to a pc through the Zigbee module.
5.3 CONCLUSION
Thus , in this chapter we came to know about the LABVIEW environment , Zigbee
technology and the process of simulation .
LABVIEW INTERFACE
6.1 INTRODUCTION
In order to realize a real time acquisition of data and results , a mechanism using
LabVIEW is introduced . This mechanism will automatically monitor when there is
an alert affecting the system . LabVIEW software is used to implement the system.
The system investigates level H2S gas, temperature and humidity.
LabVIEW is a graphical programming language that uses icons instead of lines of text
to create applications; it uses a dataflow programming data to determine performance.
This software is easy to handle as it does not require great programming skills. Just
choose the blocks for achieving the desired functions and have them connect and
configure, is the reason for which all modules are created with LabVIEW called
VI (virtual instrument).
Figure 6.3 presents the case of an exceeding level of gas (> =4.5V) thus displaying a
flashing window that contains an alert message with alarm sound . Our card
communicates with the PC via the RS232 which is chosen based on LabVIEW VISA
to make the link configuration shown in Fig.6.4 The VISA Configure Serial Port VI
initializes the port identified by VISA resource name to the specified settings.
Timeout sets the timeout value for the serial communication . Baud rate, data bits,
parity, and flow control specify those specific serial port parameters .
6.3 CONCLUSION
Thus , in this chapter we came know to about the interfacing ZigBee Module with
LabVIEW .
7. RESULTS
The project depends on the basic principle of wireless sensor networks . The system
under investigation designed for air pollution monitoring in polluted areas was
successfully tested . In fact wireless sensor nodes have been designed . Nodes have
been calibrated to the respective unit by adopting scientific method .
The architecture of the proposed air quality monitoring system is shown in Figure 7.1
which consists of ZigBee end nodes, LCD, ATMEGA16, MQ-4, MQ-7, MQ-8 and a
wireless gateway including associated software for system devices and a LabVIEW
graphical user interface (GUI) for display of data on a remote computer/laptop. The
end nodes (also known as sensor nodes) positioned at different poles in the traffic area
scan simultaneously measure air quality parameters in an ambient environment. The
coordinator is used to receive data transmitted from routers or end devices. The
gateway provides data to a computer where the sensing data is stored and integrated
into a database. The user can thus make inquiries for the history and latest data
through the LabVIEW interface. By using different indicators in LabVIEW the output
of analog data from the sensor is seen and plotted in charts .
Fig 7.2 : System Design with three sensors
Embedded system kit with different air pollutants sensors are shown in Figure 7.2 .
Initially, the hardware kit is switched ON, with the help of step down transformer ,
rectifier and voltage regulator 230V AC is stepped down to 12V DC . Here three
different sensors such as MQ7, MQ4, MQ 8 are used to monitor the air pollution
which captures the analog signal . The MQ-7 can detect CO-gas concentrations
anywhere from 20 to 2000ppm. The MQ-4 gas sensor has high sensitivity to Methane,
also to Propane and Butane . The sensor could be used to detect different combustible
gas, especially Methane . MQ-8 gas sensor has high sensitivity to Hydrogen , also
sensitive to smoke and other harmful gases Each sensor is connected to
microcontroller which has four ports, port B is left alone. Zigbee module is used
which is software based protocol and it is connected to the laptop through a serial
cable. The VISA driver software is installed in laptop which supports serial
communication. Liquid crystal displays a type of display used in digital watches and
many portable computers. The data is given to the serial port which is given to read
buffer, which specifies the data on the LCD display. For example, C: 234, N: 320, G:
278 is displayed on the LCD display and it is of 15 bytes length, the read buffer
function is used on the back panel in the LabVIEW software to read the serial data .
A schematic, or schematic diagram, is a representation of the elements of a system
using abstract, graphic symbols rather than realistic pictures. Here all the elements in
the system are placed sequentially with resistors, capacitors and integrated circuits.
Figure 7.3 shows the schematic diagram of proposed architecture.
The Here the while loop is taken with ‘i’ as the iteration parameter and for each
iteration the delay time of 10ms is considered. The output of input and output
communication port is connected to VISA serial port and I/O COM1 acts as VISA
resource name. Figure 7.4 shows the LabVIEW program.
Fig 7.4 : Block Diagram of Air Pollution Monitoring System
Using numeric controls and indicators on the front panel to enter and display numeric
data in LabVIEW applications. Here three different indicators are used for
measurement of different air pollutants. The first one is temperature indicator in
which the display format is numeric in SI notation. It indicates the amount of carbon
monoxide content in the atmosphere. Another indicator we used is screw gauge. The
needle color is red which indicator the amount of nitrous oxide in the atmosphere. The
last indicator we used is meter which indicates the content of natural gas in the
atmosphere. Figure 7.5 & 7.6 shows the front panel for different sensor data.
Fig 7.5 : Front panel showing indicators of sensors output and read buffer output
In Normal conditions
Fig 7.6 : Front panel showing indicators of sensors output and read buffer output
In Alert conditions
8. CONCLUSION
The real success of the sensor network technology depends mainly on its application
in eradicating a harmful situation or in maintaining a good one . Designing an
efficient application is one of the major challenges and sensor network challenges are
application dependent .
As per the World Bank report quoted earlier, industrial pollution in India is on the
more alarming state than industrial production. Hence, controlling and monitoring air
pollution round the clock is a social imperative. This study proves that WSN could be
a useful mechanism for this double task.
A low-cost low complexity and scalable wireless mash network based real-time
air quality monitoring system is presented which includes carbon monoxide,
Hydrogen and methane gas measurement. By constructing the above model, we can
take measures regarding the pollution control in the public areas and pave way for
controlling pollution .
One more challenge is, effective data warehousing and mining process for air
pollution monitoring data. The data stored within the central data warehouse will
often need to be queried by the end-users in order to find regularities and fluctuations
in pollution levels. Furthermore, there is a need to identify the long-term patterns of
pollution, key relationship between certain pollutants etc.
Society looks for a pollution-free globe for happy living. The global warming threat is
waiting at the door. Government rules, governing pollution control in private sector
industries are not implemented that effectively. This scenario stresses the need for an
efficient monitoring system with the collaboration of users, domain experts, hardware
designers and software developers. This study is an attempt in this direction.
10. BIBLIOGRAPHY
[1] Wireless Sensor Networks : H. Karl and A. Willig , Protocols and Architectures
for
Wireless Sensor Networks, John Wiley and Sons Ltd , The Atrium , Southern Gate,
Chichester, West Sussex, England.
[2] Wireless Sensor Networks : Afsaneh Minaie, Ali Sanati-Mehrizy “Application of
Wireless Sensor Networks in Health Care System” 120th ASEE Annual Conference
and Exposition.
[3] Wireless Technologies : Jin-Shyan Lee, Yu-Wei Su , and Chung-Chou Shen “A
Comparative Study of Wireless Protocols: Bluetooth, UWB, ZigBee, and Wi-Fi” The
33rd Annual Conference of the IEEE Industrial Electronics Society (IECON).