Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014
A MICROCONTROLLER BASED DATA ACQUISITION SYSTEM FOR INDUSTRIAL AIR POLLUTION CONCENTRATION MEASUREMENT IN NIGERIA Ofoegbu Ositadinma Edward Department of Computer Science & Engineering Oduduwa University Ipetumodu, Ile-Ife Osun State, Nigeria
[email protected] Abstract— Clean air is a basic necessity for all human beings living on earth, yet about 80% of the world’s population breathes air that has pollutants which exceed the World Health Organization’s recommended level. This paper presents a microcontroller based data acquisition system for industrial air pollutant concentration measurement in industrial facilities in Nigeria using Ile-Ife Steel Company as a case study. A prototype design methodology and system flow chart was used in the design of the system while a PIC18F4550, MQ7 sensor, capacitors, resistors, connecting wires, transistors, voltage regulator, transformer, Light Emitting Diodes (LED’s), Fan, Liquid Crystal Display (LCD), Buzzer, Temperature Sensor, Oscillator, Bread Board, Zener Diode, etc. were used in the implementation of the system design. The system developed was able to measure CO pollutant concentration, trigger alarms, classify pollutant level, and display pollutant level on an LCD and save measured data in an external memory for future access. Performance test and reliability test were performed to ensure conformity to the designed objectives Keywords— Microcontroller, Sensor, Air pollution, CO
I.
INTRODUCTION
Air pollution has been aggravated by developments that typically occur as countries become industrialized thus, growing cities, increased traffic, rapid economic development, industrialization, and higher levels of energy consumption become factors of the industrialization effort. The high influx of population to urban areas, increase in consumption patterns and unplanned urban and industrial development has contributed to the air pollution problem. Stratospheric ozone depletion due to air pollution has long been recognized as a threat to human health as well as to the Earth's ecosystems [1,2] The report, prepared by Global Scientific Inc., found that suspended particulate matter (SPM) including dust, fumes, mist, and smoke in the air in commercial, industrial and even residential areas of the city exceeds the National Ambient Air Quality Standards throughout the year [1,3]. In the majority of the developed world, legislation has already been
introduced to the extent that local authorities are required by law to conduct regular Local Air Quality reviews of key urban pollutants such as Benzene, SO2, NOx, CO or Ozone produced by industrial activity and/or road transport. In order to achieve this, pollutant concentrations must be monitored accurately and ideally so that sources may be identified quickly and the atmospheric dynamics of the process are understood [4, 6]. Furthermore, such data would lend itself to real-time environmental decision making. This report will also address the relevant background surrounding the causes and effects of air pollution as well as bring to light recent research and initiatives employed by cities both local and global and comparisons will be made between the previous prototype and the changes that have been implemented in achieving the new design. Impacts on Health The impact of air pollution on health is one of the most significant concerns of the World Health Organization. It is estimated by the WHO that around 2 million people per year die globally from a direct result of poor air quality. Reports show that this is not only affecting developing countries but health issues such as respiratory infections, heart diseases, asthma and lung cancer are all on the rise in developed countries such as the USA and the UK [7]. We must recognize and acknowledge that the issue of air pollution is a growing health burden within society and thus find more efficient and effective ways to monitor it in order to find a sustainable solution. Especially in recent decades more research has gone into the study of the looking more closely at specific cities around the world and how pollutant levels in the air affect the people living there. An article in the BBC News stated that the negative health consequences of air pollution could shorten a person’s lifespan and breathing in unclean air was likened to inhaling second-hand smoke from a smoker continuously. Other Associated Health Issues: i. Respiratory Infections
www.jmest.org JMESTN42350072
19
Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014
ii. Heart Disease iii. Asthma iv. Chronic Bronchitis v. Lung Cancer Impacts on the Economy With the rising cost in Health Care, the burden on the economy is another major impact that air pollution has on society. Billions of dollars are spent globally to address the health concerns, and in one article it was seen that in California alone the ‘dirty air’ caused $193 million in hospital based health care within a 2-year period [8]. The elevated pollution levels meant that “exposure to excessive levels of toxic gases and particulate pollution caused nearly 30,000 emergency room visits and hospital admissions. This impact may not be as disturbing as the health concerns however it proves that air pollution does have a significant impact on the state’s economy. Impacts on the Environment Global Warming is a collective world issue as climate change affects and threatens the existence of everyone irrespective of nationality and culture. The advent of the industrial age resulted in processes whose output included pollution sources and pollutants such as CFC’s and other oxides and particulate matter which have been attributed for the collapse of the ozone layer. II.
RELATED WORKS
Aruljothi .R M. et al [9] designed an Air Pollution Measuring System with Mobile Sensor Arrays which measure Carbon Monoxide and Nitrogen Oxide to develop an effective solution for pollution measuring using wireless sensor networks (WSN). The gas sensors are integrated with the ARM controller and location tracer GPS in User terminal. Other parameters like temperature are also sensed along with gas pollutant to enable data analysis through data aggregation techniques. Experimentation carried out using the developed air pollution measuring system under different physical conditions show that the system collects reliable source of fine-grain pollution data along with location of mobile vehicle. The system also collected pollution data using mobile hardware modules, transmits the data regularly using a GSM modem to a back-end server, and integrates the data to generate a pollution frame with geographical location and send to handheld devices of the user. Sukwon C., et. Al [10] designed and implemented a Micro Sensor Node for Air Pollutant Monitoring called APOLLO (Air Pollutants Monitoring System) sensor node, APOLLO was constructed with off the shelf MEMS based or infrared based micro gas sensors. APOLLO provides air quality information by collecting independent sensing information from various air components and forwarding the collected data to the host system.
Barrenetxea et al [11] designed Out of the Box Environmental Monitoring device called Sensor Scope. Sensor Scope is a large-scale wireless environmental monitoring system. Sensor Scope was developed to provide in-situ spatial and temporal observations across the landscape. Sensor Scope makes use of solar energy with extensive radio duty cycling to prevent power outages. Murty, R.N, et al [12] Proposed a monitoring system called City Sense. City Sense is an Urban-Scale wireless sensor network and test bed is also a largescale wireless environmental monitoring system .City Sense supports the development and evaluation of wireless systems that span an entire city by employing over 100 Wi-Fi enabled Linux-based PCs embedded throughout buildings and streetlights. City Sense used a wired power supply. Honicky, R. et al [18] developed N-smarts which is a network suite mobile atmospheric real-time sensors. NSMARTS is a GPS-enabled cell phone-based or car mounted citywide environmental data acquisition system. Its sensor module consists of carbon dioxide, carbon monoxide, three-axis accelerometer, and temperature sensors. Lozano, P.et al [1] proposed a mobile air qualitymonitoring network comprising of sensors that can detect O3, NO2 and CO/VOC. The scheme focused on data collection and presentation, but did not consider issues like the characteristics of the gas sensors and energy management Koushanfar, F. et al [15] designed a laser spectroscopic trace-gas sensor networks, sensor integration and applications Laser Specks was developed based on a laser spectroscopic trace-gas sensor platform. By integrating quantum cascade laser technology, both the size and cost of the system are reduced, while providing a wide range of detectable gases. However, the power consumption is not negligible. Simon J. et al [14] were collaboration between Cambridge University, Imperial College London, Leeds University, Newcastle University and Southampton University. This system monitors vehicle occupancy, position, movement, temperature, humidity, noise, CO and NO2. It has a low cost, low power ZIGBEE transceiver and a data logger on board. It collects data through a gateway to a central server.
III.
METHODS
The choice of research methodology used in carrying out this project design is; Prototype research methodology Top-design research methodology
www.jmest.org JMESTN42350072
20
Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014
Where a prototype represents the shell of an actual production application. Prototypes are built early in the development lifecycle and are used to provide valuable insight into the look-and-feel, as well as the general workflow of an application.
IV. RESULTS AND DISCUSSIONS U4_V+
VDD
U3
START Display Dummy Message Check Input Pin Port for Sensor Output NO Is There Sensor Output Data? YES Classify Value and send to LCD for Display Store Displayed Value on Memory Device
BD139
VI
VO ADJ
3
R3 R4 120
2.2k 4
1
J1
2
2 1
BR1
C5
U4:A
3
100u
1 SIL-100-02
2
C4
1k
4700u
TL074
RV1 1k
RV2
11
R2
45%
The system can be classified into its hardware and software components. The hardware which was implemented in the next section consisted of components such as a PIC18F4550, MQ7 sensor, capacitors, resistors, connecting wires, transistors, voltage regulator, transformer, Light Emitting Diodes (LED’s), Fan, Liquid Crystal Display (LCD), Buzzer, Temperature Sensor, Oscillator, Bread Board, Zener Diode etc while the software involved utilizing assembly language written using the MIDE development environment for the microcontroller. The developed system comprises of the power supply unit, the signal conditioning unit and the output unit.
Q1
LM317T
47%
Top-down research design methodology is essentially the breaking down of a system to gain insight into its compositional subsystem. In a top-down design, an overview of the system is formulated, specifying but not detailing any first – level subsystems [4, 5].
20k
2W005G
Power Supply Unit
GND
Fig 2: Power Supply Unit The power for the circuit can be derived from a 15v AC or 15V - 22 V DC, with diodes (BR 1) providing reverse polarity protection. The nominal 12V supply rail is fed through an on/off switch to the input of a 3-terminal voltage regulator (LM317T), with filtering provided by a 3300uF 25V (C4) electrolytic capacitor. This 12V supply rail also drives a 12V fan via a 2 kilo ohms resistor. The resistor is there to reduce the fan speed and thus the noise it makes. The LM317 which is a variable regulator is configured to provide a 6Vsupply. The voltage between its OUT and ADJUST pins is nominally 1.25V, but in practice it ranges from 1.2V to 1.3V. If this voltage is 1.25, this means that a current of 10.4 mA flows through the 1kilo ohms resistor and the trimpot RV-1 sets the voltage across it to 4.75V and the output of the regulator to 6V (i.e. 4.75V + 1.25V). This 6V supply is used to drive the heaters in the MICS 4514 sensors. In addition, the 6V rail is fed to a voltage divider made up of RV1 and RV2 resistors. The resulting 5V output from the divider is then fed to the input op amp, which in turn drives the current amplifier. The resulting 5V rail powers the microcontroller, LDR1 and the LCD
Stop
Fig 1: System Flow Chart for the Data Acquisition System
www.jmest.org JMESTN42350072
21
Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014
Alarm, Display and MCU circuit VCC
C1 C2 22p
X1
R1
LCD1
10k
U5
A1
5
U4:B
5
7 4
6
NC 3
Q3
2N5551
2N5401
R12 220
U4:D
R15
R17
R16
10k
10k
12
14 13
TL074
MQ-7
R14
10k
To RA0 on MCU
C5 100u
220
D5
D6
D7
LED-GREEN
LED-YELLOW
LED-RED
11
U4:C
10
5k 5k
R10 Q4 120
BD139
9
RD0/SPP0 RD1/SPP1 RD2/SPP2 RD3/SPP3 RD4/SPP4 RD5/SPP5/P1B RD6/SPP6/P1C RD7/SPP7/P1D
BUZZER
VEE VDD VSS
BUZ1
19 20 21 22 27 28 29 30
18
VUSB
RE0/AN5/CK1SPP RE1/AN6/CK2SPP RE2/AN7/OESPP RE3/MCLR/VPP
8 9 10 1
C3
1N5230B
100n
SW2 SW-SPST-MOM
220
TL074 11
49%
5k
RV4
R7 50%
RV3
R6
22
D4
R13
8
R9
RB0/AN12/INT0/FLT0/SDI/SDA RB1/AN10/INT1/SCK/SCL RB2/AN8/INT2/VMO RB3/AN9/CCP2/VPO RB4/AN11/KBI0/CSSPP RB5/KBI1/PGM RB6/KBI2/PGC RB7/KBI3/PGD
15 16 17 23 24 25 26
PIC18F4550
4
2
Q2
TL074 11
A2
33 34 35 36 37 38 39 40
RA0/AN0 RC0/T1OSO/T1CKI RA1/AN1 RC1/T1OSI/CCP2/UOE RA2/AN2/VREF-/CVREF RC2/CCP1/P1A RA3/AN3/VREF+ RC4/D-/VM RA4/T0CKI/C1OUT/RCV RC5/D+/VP RA5/AN4/SS/LVDIN/C2OUT RC6/TX/CK RA6/OSC2/CLKO RC7/RX/DT/SDO OSC1/CLKI
4
6 NC
2 3 4 5 6 7 14 13
4
CO SENSOR
1 H1
LM016L
U1
E RW RS
Sensor/Signal conditioning cct
100
H2
20MHz
14 13 12 11 10 9 8 7
R11
3 2 1
22p
6 5 4
VDD
D7 D6 D5 D4 D3 D2 D1 D0
VCC
5k
R8
To RB0 on MCU
Fig 4: Alarm, Display and MCU Circuit
5k
D3 1N5230B
GND
Fig 3: Signal Conditioning Circuit This unit comprises of the sensors as an input device and the circuits which make it possible for it to communicate with microcontroller i.e. send signals to the microcontroller. The output from the sensor is monitored at RB3/AN9 (pin 36) of the microcontroller. The manufacturer’s specifications states that this sensor must initially be heated using a 5V supply connected across its element for 60s. The heater current is then reduced by placing just 1.4V across the element for 90s period. The carbon monoxide and the nitrogen oxide are then being measured, after which the initial 60 heating cycle begins again. In practice, this means that measurements are repeated at 2.5 minutes (i.e. 150 seconds). The heater is powered from 6v rail via two parallel resistors, while transistor ties the lower end of the heater element to 0V. The heater has a resistance of 33 ohms when Q1 is on, a current of 152mA flows through it. This results in a 1V drop across the two resistor, thus giving the required 5V supply for the heater. The transistor is controlled by the microcontroller’s AN0 output (pin 2) and turns on when its gate is pulled high. The AN0 switches Q3 on for 60s to provide the heating current. And the other goes low for 90s, so the measurement can be made. As a result, any changes in the sensor’s resistance will result in a corresponding voltage change at the top of transistor. This signal is then applied to the AN3 input of the microcontroller and fed to its internal A/D converter. During set-up, RV5 is set so that AN3 is at 0.5 when the sensor is in normal air. However, this signal voltage can rise to around 3V when the CO concentration is over 300ppm. In operation, the sensor varies its resistance over a 10:1 range for CO concentrations ranging from 10 ppm to 1000 ppm.
This consists of the interfacing of the microcontroller to the output devices such as the LCD display, buzzer and Light Emitting Diodes where the three LEDs are used to indicate the gas levels and these are wired with transistors R15, R16 and R17 driving their common cathode. R15-R17 are in turn driven by the RB0, RB1 and RB2 outputs of the microcontroller.Each transistor is driven on for about 1ms before switching off. As soon as it switches off, the next transistor is switched on to drive the next LED. However, there is a short gap (or ‘dead time’) between one transistor switching off and the other switching on to prevent display errors. In operation, the LEDs are switched on and off at a fast rate that they appear to be continuously lit. The following are the colours of the LEDs used and their interpretations i. Green (Safe-clean Air) ii. Yellow (Moderate Concentration) iii. Red (Dangerous –Polluted Air) Automatic display dimming is achieved in the LCD by using a light dependant resistor (LDR), connected in series with the trimpot VR5 across the 5V supply.
www.jmest.org JMESTN42350072
22
Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014 U4_V+
Q1
LM317T
BD139
VI
VO
2
ADJ
3
VDD
U3
R3
R4
120
2.2k 4
1
J1
1k
RV2
X1
R1
20k 20MHz 2 3 4 5 6 7 14 13
GND
VDD
R11
R15
R17
R16
10k
10k
10k
33 34 35 36 37 38 39 40
RA0/AN0 RC0/T1OSO/T1CKI RA1/AN1 RC1/T1OSI/CCP2/UOE RA2/AN2/VREF-/CVREF RC2/CCP1/P1A RA3/AN3/VREF+ RC4/D-/VM RA4/T0CKI/C1OUT/RCV RC5/D+/VP RA5/AN4/SS/LVDIN/C2OUT RC6/TX/CK RA6/OSC2/CLKO RC7/RX/DT/SDO OSC1/CLKI RB0/AN12/INT0/FLT0/SDI/SDA RB1/AN10/INT1/SCK/SCL RB2/AN8/INT2/VMO RB3/AN9/CCP2/VPO RB4/AN11/KBI0/CSSPP RB5/KBI1/PGM RB6/KBI2/PGC RB7/KBI3/PGD
RD0/SPP0 RD1/SPP1 RD2/SPP2 RD3/SPP3 RD4/SPP4 RD5/SPP5/P1B RD6/SPP6/P1C RD7/SPP7/P1D
100
D5
D6
D7
LED-GREEN
LED-YELLOW
LED-RED
LM016L
U1
18
VUSB
RE0/AN5/CK1SPP RE1/AN6/CK2SPP RE2/AN7/OESPP RE3/MCLR/VPP
15 16 17 23 24 25 26
BUZ1
BUZZER
14 13 12 11 10 9 8 7
Power Supply Unit VCC
LCD1
10k
2W005G
VEE VDD VSS
TL074
RV1
22p
E RW RS
22p
11
4700u
45%
C4
1k
47%
R2
VCC
C1 C2
100u
1 2
3 2 1
C5
U4:A
3
SIL-100-02
6 5 4
BR1
D7 D6 D5 D4 D3 D2 D1 D0
2 1
19 20 21 22 27 28 29 30 8 9 10 1
ACKNOWLEDGMENT
CO SENSOR
PIC18F4550 1
6
H1
NC
U5
C3 100n
I would like to thank the people of Intelligent Systems Research Group, in the Department of Mathematical Sciences, College of Natural and Applied Science, Oduduwa University, Ipetumodu, Ile-Ife, Nigeria, for the invaluable support towards the successful completion of this research.
SW2 SW-SPST-MOM
5
4
U4:B
5
H2
7 4
6
NC 3
Q3
2N5551
2N5401
TL074
R12 220
U4:D
12
14 13
TL074
MQ-7
R14 220
11
4
2
Q2
11
A2
4
A1
U4:C
10
8
49%
5k
RV4
R7 5k
5k
R10 Q4 120
BD139
9
TL074
R13
D4 1N5230B
220
11
RV3
R6
22
50%
R9
approach using very low cost sensors can provide similar results if placed close together. The research didn’t take into cognizance the power problem in Nigeria and how the design addressed that but it can be assumed that since air pollution only occurs when the system is functioning therefore the system can be run on the companies power supply. A fault tolerant approach can be applied that would utilize redundancies in achieving higher reliability of the deployed system
REFERENCES
5k
R8
Lozano, J., Suarez, J., Arroyo, P., Manuel, J., Alvarez, F. (2012). “Wireless Sensor Network for Indoor Air Quality Monitoring”. AIDIC, Chemical Engineering Transactions, volume 30. [2] Angelopoulos, C., Nikoletseas, S., Constantinos, G. (2011). “A Smart System for Garden Watering using Sensor Networks”. Research Academic Computer Technology Institute (CTI) [3] Fukatsun, T., Hirafingi, M. (2005). “Field Monitoring using Sensor Nodes with a Web server”. Journal of Robotics and Mechatronics. 17(2): 164-172. [4] Sinhmar, P., Faridabad, Z. (2012). “Intelligent Traffic Light and Density Control using IR Sensors and Microcontrollers”. International Journal of Advance Technology and Engineering Research (IJATER). 2(2): 30-35 [5] Khaled, M., Ahsanuzzaman, S., Tariq, M., Moshin, R. (2010). “ Microcontroller based Automated water level sensing and controlling : Design and Implementation Issue”, proceedings of the World’s Congress on Engineering and Computer Science, San Francisco, USA. Volume 1 [6] Tsai sung, W., Han Tsai, M. (2011). “Multisensory Wireless Signal Aggregation for Environmental Monitoring System via Multi bit Data Fusion”. Applied Mathematics and Information Sciences Journal, 5(3): 589-603. [7] Anin, C., Sudha, K. (2012). “Agricultural Management using Wireless Sensor Networks- A Survey”. 2012 2nd International Conference on Environmental Science and Technology, IPCBEE.48 (2). Honicky T., Talley, J and Montestraque, L. (2006). “Using Embedded Sensor Networks to Monitor, Control and Reduce CSO Events: A Pilot Study”. Envirnmental Engineering Science Journal, 12(2): 80-86. [8] Joranov, E., Raskovic, D., Price, J., Chapman, J., Moore, A and Krishnamurthy, A. (1999). “Patient Monitoring using Personal Area Networks of Wireless Intelligent Sensors”. High Performance Computing Conference HPCN “99, Amsterdam. Paper 2. [9] Aruljothi, U and Moghe, H. (2011). “Development of an RFID based Smart Sensor Prototype for Wireless Industrial Monitoring and Control”. International Journal of Instrumentation, Control and Automation (IJICA). 1(2). [10] Sukwon, L., Cugnasrca, E. (2006). “A Proposal of Greenhouse Control using Wireless Sensor Networks and Computers in Agriculture and Natural resources”. 4th World Congress Conference. Article 4. [11] Barrenetxea, R., Prahbur, B., Gadh, R., Asad, M. (2007). “Wireless Industrial Monitoring and Control using a Smart Sensor Platform”. IEEE Sensors Journal. 15(2), 34-38 [12] Murty V., Chanralekha, R. (2008). “Oil well Monitoring and control based on wireless sensor networks with ARM”. Internation [1]
5k
C6 100n
GND
Fig. 5. Complete System Circuital Diagram This research is aimed to develop a device to monitor and control the concentration level of air pollutant gases at industrial locations which in this case was Ife steel company. In this project, a signal is sent from the input units to know the specific amount of pollutant gases presented in the air which then transfers the command to the microcontroller. The microcontroller receives the command, decodes it and then carries out the task. The LCD is used to interact with the operator and also displays the reading of the input units after classification. However, the results are promising in terms of proving the performance and capability of of this design as a pollution monitoring device. This device is definitely in line with existing solutions and promises to be better in terms of cost, performance and form factor. V. CONCLUSION The microcontroller based data acquisition system provides a tool for real time monitoring of pollutant level at any location deployed. The system was deployed at the location earlier mentioned and it performed reliably. The use of control logic in the design is to provide flexibility as most industrial areas would require a measure of multiple pollutants not just CO. the system provides on site information to the industry of study to enable them deduce their pollution contribution and undertake whatever pollution control measure they may deem appropriate.
VI. FUTURE WORK From the overall experience gathered during the course of this research it was discovered that a wireless sensor
www.jmest.org JMESTN42350072
23
Journal of Multidisciplinary Engineering Science and Technology (JMEST) ISSN: 3159-0040 Vol. 1 Issue 3, October - 2014 Journal of Electronics and Computer Science Engineering. 6(2): 77-80. [13] Jawher, I., Mohammed, N., Shnails, K. (2004). “A Framework for Pipeline Infrastructure Monitoring using Wireless Sensor Networks”. College of Information Technology, United Arab Emirates, pp 45-53 [14] Simon, J and Martinoric, G.(2009). “ Distant Monitoring and Control for Mobile Robots using Wireless Sensor Networks. 10th International Symposium of Hungarian Researchers on Computational Intelligence and Informatics. Article 2. [15] Koushanfar, Z and Rus, D. (2005). “Controlling Mobile Sensors for Monitoring events with Coverage constraints”. Institute for Sercurity Technology studies, paper 7
[16] Lu, K., Wang, Y., Lynch, J., Lin, P. (2005). “Application of Wireless Sensors for Structural Health Monitoring and Control”. The Eighteenth KKCNN Symposium an Civil Engineering, Taiwan. 19(2): 21-29. [17] Kurata, N., Spencer, B., Sandoral-Ruiz, M. (2009). “Risk Monitoring of Buildings using Wireless Sensor Network”. Planning section, Research complex, Kaigama Corporation, Minato-ku, Japan, pp 444-448. [18] Honicky T., Talley, J and Montestraque, L. (2006). “Using Embedded Sensor Networks to Monitor, Control and Reduce CSO Events: A Pilot Study”. Envirnmental Engineering Science Journal, 12(2): 80-86.
www.jmest.org JMESTN42350072
24