18
Electronics and Instrumentation Engineering Technology Department Yanbu Industrial College RC Colleges and Institutes Division at Yanbu Yanbu Industrial City Saudi Arabia Cell: +966 568 427925 Email: [email protected] [email protected] Submitted For NI Pollution Monitoring & Weather Station Contest 2013 organized by NI Arabia NI Pollution Monitoring and Weather Station Contact Person: Engr. Muhammad Javed Iqbal

NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

  • Upload
    leanh

  • View
    224

  • Download
    0

Embed Size (px)

Citation preview

Page 1: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

E l e c t r o n i c s a n d

I n s t r u m e n t a t i o n

E n g i n e e r i n g T e c h n o l o g y

D e p a r t m e n t

Y a n b u I n d u s t r i a l

C o l l e g e

R C C o l l e g e s a n d

I n s t i t u t e s D i v i s i o n a t

Y a n b u

Y a n b u I n d u s t r i a l C i t y

S a u d i A r a b i a

C e l l : + 9 6 6 5 6 8 4 2 7 9 2 5 E m a i l :

m i q b a l @ y i c . e d u . s a

m j a v e d i q b a l 9 9 @ y a h o o . c o m

Submitted

For

NI Pollution Monitoring &

Weather Station Contest

2013 organized by

NI Arabia

NI Pollution Monitoring and Weather Station

Contact Person:

Engr. Muhammad Javed Iqbal

Page 2: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

NI Pollution Monitoring and Weather Station Yanbu Industrial College, Saudi Arabia

Contact Information University: Yanbu Industrial College, Electronics and Instrumentation

Engineering (EIET) Deaprtment Team Members: Ahmed Adi Raghep Altaluoni, Yasser Eid Lapss Al Shreaf,

Awad Al Rashidi, EIET Department

Faculty Members: Engr. Muhammad Javed Iqbal (TTC) , Engr. Nabil Shaukat (TTC), Engr.Zulfiquar Ali Leghari (EIET)

Email Address: [email protected], [email protected], [email protected], Project Information

Title: NI Pollution Monitoring and Weather Station Introduction Weather monitoring has very high impact on modern era; it has given thousand years old agriculture a new dimension and made it more efficient and productive, modern day aircrafts cannot takeoff or land without having weather information. On other hand pollution can significantly affect quality of our life and endanger human with chorionic diseases which increase mortality in the region. By developing Weather station and pollution monitoring system we can offer community service to the residents of Yanbu Industrial city (and other cities as well) by providing them weather and pollution updates and alerts. Our system collects information from different sensors through NI Wireless sensor network (WSN), the LabVIEW application acquires and analyzes the entire data and then broadcast the information and alerts to local community through LabVIEW web application and services, NI data dashboard for mobile devices and SMS. All the data is also logged for future reference. Some of the benefits for local community and concerned departments are listed below;

1. Our system can send high air pollution alerts to residents to wear masks and

turn their ac to room circulation to protect them.

2. Our system can guide farmers to plan their irrigation schedule.

3. By weather forecasting, our system can help the residents to plan their

outdoor activities or travelling.

Page 3: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

4. By careful weather data analyzing, suitable locations or seasons could be

identified for wind turbines and solar panels.

5. Researchers/teachers can utilize the acquired weather or pollution data in

their advance research or to develop better understanding in this field

among the students.

6. It can provide information to civil contractor to plan their work timeline by

predicting weather.

7. It can send bad weather alerts to fishermen to plan their fishing activities.

8. The municipality corporation can also get benefit out of this system with

localized air quality and garbage monitoring unit.

Products used in the project: NI Products: NI 9791 WSN Gateway

Selected as best product in 2010 and got Engineer choise award , it act as data gateway for weather and pullotion data

NI 3202 WSN Node Selected as best product in 2010 and got Engineer choise award , user firendly labview programble node,it act as wireless node for weather and pullotion sensors which have analog outputs.

NI 3212 WSN Node Selected as best product in 2010 and got Engineer choise award , user firendly labview programble node, It act as wireless node for temperature and digital sensor.

NI LabVIEW Full Development System 2012 SP1 Very easy to use graphical programming language for the engineers scientist and researcher , we can quickly turn ideas into reality using this language all programming of this project is done in this language.

NI LabVIEW Web Server and Web Publishing Tool By using LabVIEW Web Server and Web publishing tool any one can remotely access weather and pollution VI through internet with LabVIEW run time engine. If the user is not having LabVIEW run time engine and he/she is having restricted and secured even though the LabVIEW support is there and using LabVIEW web services the user the can connect and access the weather and pollution data as a thin client in standard HTTP interface.

NI Data Dash Board By using Data Dashboard for LabVIEW , We make portable view of Weather and pollution application on tablet and smart phone. The app displays the values of network-published shared variables and/or Web services on charts, gauges, text indicators, and LEDs.

Page 4: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

NI Wireless Sensor Network tool kit

By using NI WSN Wireless tool kit for LabVIEW we program WSN nodes, this toolkit give benefit rapid development of graphical programming for your entire application.

NI Vision toolkit This kit used for web cam interface on to monitor weather condition from indoor window, this can also be used to detect cloud on the sky in the future.

Other Products: Wind Speed Sensor Wind Direction Sensor (analog) Temperature Sensor Humidity Sensor (analog) Rain speed and quantity Sensor Pressure sensor (analog) Luminosity sensor (analog) Dust sensor (analog) PH sensor (analog) Air quality sensors (analog) Fan Water sprinkle Heater Webcam SMS engine CO2 oxide sensor (analog) Proximity sensor

Challenges: We have faced many challenges during the development cycle of this project, some of major challenges are as under;

1. The biggest challenge was to develop a cost effective, highly efficient, innovative and portable pollution and weather monitoring system. This system should be able to serve the community for weather updates and safety warning. Also the system should support the various authorities to improve the living conditions in the city. The portability was required to use this system at remote locations or in the harsh environment. The system data and results should be accessible easily through internet and other wireless services for the community.

2. Weather Prediction is considered as one of most challenging field in the world and we took up this challenge.

Page 5: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

3. Determining wind and solar efficiency under the difficult weather conditions of Saudi Arabia, to save fossil fuel export the fuel to get more revenues.

4. Utilizing weather data for regulation greenhouse parameters for suitable condition.

5. Localized use of sensor nodes monitoring pollutant gases and bin level in residential garbage container and generate visual alarm.

6. Make this system portable and cost effective. As students we were looking for highly cost effective but accurate and highly efficient solution for our project. The portability was also required to use this system at remote locations or in the harsh environment.

Solutions to the Challenges:

1. To develop our Pollution Monitoring and Weather Station, We decided to use NI products and LabVIEW platform. After exploring all the latest technologies we found that for the rapid development of any robust, efficient, accurate and cost effective data acquisition, measurement and control system application nothing is better than LabVIEW in the world. Thus we selected LabVIEW 2012 with its ready to use tools for developing our software application. On hardware side, we found a wide range of sensors are required to measure weather and pollution data. Some of the sensors are digital, some are analog, their operating conditions and characteristics were also varying. To acquire data from these sensors we were looking for a product which can be interfaced with digital or analog sensors easily. We found that NI Wireless Sensor Network (WSN) kit is the most appropriate solution to interface and acquire the data from these sensors. The WSN kit can easily be configured; it can be connected easily with variety of sensors through its digital and analog ports; it is highly portable; on the other side the WSN kit can also communicate easily with LABVIEW. So we selected NI WSN kit for interfacing with sensors and actuators with LabVIEW application in our project. In our system the WSN nodes acquires the data from sensors and transmits it to the WSN gateway which is connected with host PC. The LabVIEW application running in the host PC receives the data from WSN gateway through network cable The data is analyzed through easy to use LabVIEW tools and displayed on the front panel numerically and graphically. Using NI web server and web services the data and appropriate warnings are published on the internet and Local Area Network. Any user from anywhere in the world at any time can access the data and results through internet. Using NI Data Dashboard the users can also access the data through their smart phones and tablet PCs . Last but not least SMS engine can also be easily connected to LabVIEW, which provides all necessary VI to send SMS to users.

Page 6: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Following Second thing we have done is research how weather and pollution disturb the human life table below shows risk of alerts

SR# Parameter Alarm Message to community 1 High Temperature Risk of De hydration and Heatstroke. 2 Low Temperature Risk of Cold, Hypothermia and blood pressure. 3 High humidity Risk of allergies and dehydration 4 Low Humidity Risk of skin dryness, lips dryness and month

dryness. 5 High Wind speed Risk for travelling and outdoor property damage. 4 Low air pressure Risk of migraines, sinus headaches and joint pain. 5 High air pressure Risk of breathing difficulty and oxygen poisoning 6 Wind Direction and

speed Risk of accident using bicycle and motor bike.

7 Dew point Risk of attack of asthma and feeling uncomfortable 8 Low Luminosity Risk of accident while driving 9 High Dust Risk of lung diseases, throat and nose infection. 10 Rain Speed Risk of accident and water homing in houses 11 Rain quantity Risk for travelling due to water accumulation 12 Acidic Rain Risk of Skin and lung diseases 13 Air quality Risk of allergy ,breathing problem, skin diseases

2. For weather prediction algorithm we have used LORENZ attractor. This method requires solving differential equitions with weather data values and then plotting the results in 3D graph. We have used LabVIEW flexible and easy to use tools to solve complex differential equation and then plot the results in 3D curve graph and 2D graph. By analyzing the results in the graphs, weather forecasting is possible.

3. By deploying the sensors at various solar panels and wind turbines through WSN nodes. The data is collected to investigate the effects of temperature, humidity, pressure and wind density and other weather conditions on the efficiency of Solar panels and wind turbines. One of the result for this research is shown in Figure 1,which shows the effect of temperature on the efficiency of solar panel.

Page 7: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Figure 1: The experimental results of solar panel power current voltage at different temperature.

Figure 1 shows as the temperature increase the power generated by solar panel decrease due to decrease in the voltage but current of the panel remain same. In our experimental setup WSN-3212 node monitor the outdoor temperature and send data to NI-9791 gateway by which we calculated the efficiency of the solar panel. Similarly we found out that efficiency of solar panel also decrease by dust sensor.

Figure 2: Block diagram of the setup.

Figure 3: working to check the temperature and dust near solar panel.

Experimental setup of determination wind power and weather consist of WSN-node 3202 and NI-9791 block diagram of setup is shown below,

Figure 4 Block diagram of wind energy setup.

9791 Gateway PC

WSN Nodes

Temperature

Sensor

Dust Sensor

Block diagram of the Solar Panal efficiency setup

9791 Gateway PC

WSN Nodes

Wind speed

sensor

Humidity

Block diagram of the wind engergy efficiency setup

Page 8: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

From the experiment we concluded that,

• The amount of energy which the wind transfers to the rotor depends on the density of the air, the rotor area, and the wind speed.

• The kinetic energy of a moving body is proportional to its mass. The kinetic energy in the wind thus depends on the density of the air, i.e. its mass per unit of volume.

In other words, the "heavier" the air, the more energy is received by the turbine; at 15° Celsius air weighs about 1.225 kg per cubic meter, but the density decreases slightly with increasing humidity.

Figure 5: working to check wind speed and humidity near wind turbine.

4. By using weather sensor data from WSN nodes we can control fan, sprinkle

and heater for green house, NI-WSN 3202 has digital output pins are used make simple ON-OFF controller for controlling greenhouse parameters. Block diagram representation of the solution is shown as under,

Page 9: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

.

Figure 6 Block diagram setup greenhouse monitoring and controlling

5. By using WSN-3202 node with air quality sensor we have protected community from bad and dangerous smell coming from garbage container. We have connected one proximity sensor with WSN-3202 which monitors how much garbage container is full. When node get bad smell signal or garbage container is full it turn on red light.

Block diagram implementation of localized pollution monitoring system is shown in the figure bellow,

Figure 7 Block diagram setup air quality and garbage level monitoring

9791

Gateway

PC

WSN

Nodes

NI-3212

NI3202

Weather Sensors

Green House Monitoring and Controlling

WSN

Nodes

NI3202

Fan

Heater

Sprinkle

WSN Monitoring Side WSN Controlling Side

9791

GatewayPC

WSN

Nodes

NI3202

Air quality

sensors

Localized monitoring and controlling

Proximity sensor

Red light

Page 10: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Figure 8 Checking there system near garbage container for air quality and garbage level

6. We have used light weight pipe and environmental protected box mounting

sensors and WSN nodes which protect our system from any hazardous condition. For Powering up our station we +12V portable battery which is mounted inside the box. One of the benefits of WSN-Nodes is that they consume very less current, so don’t need to replace battery for years.

Figure 8 Picking the whole system in one hand WSN node are visible inside box (Highly Portable due to NI technology)

Page 11: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Complete System Block diagrams:

TABLETSSMART PHONES

NI DATA DASHBOARDNI DATA DASHBOARD

WSN GATEWAY

LabVIEW 2012

Application

WSN NODE

WSN NODE

WSN NODE

World Wide WEB

Internet connected PC accessing Weather and pollution data

ETHERNET

WIFI

WIFI

Weather

Sensors

Pollution

Sensors

Localize

pollution

sensors

Green

House

Control

Page 12: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Hardware implementation of the System: We are using both analog and digital sensors in our project because the nodes provide us flexibility to connect both types of sensors with our system without needing signal conditioning circuit. Following table describe sensor and its output and connection to WSN. SRN# Sensor Name Sensor Output WSN connection 1 Wind Speed Sensor Digital pulses (0-5V) Direct with pull-up

resistor 2 Wind Direction Sensor Analog (0.5-5V) Direct analog input 3 Temperature Sensor Analog (millivolts) Direct thermocouple input 4 Humidity Sensor Analog (1-3.9V) Direct analog input 5 Rain speed and quantity

Sensor Digital pulses (0-5V) Direct with pull-up

resistor 6 Pressure sensor Analog (0-5V) Direct analog input Following are the few pictures shows hardware implementation of our project,

Page 13: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Software implementation of the System: Software implementation of this system consists of following modules.

1) Current Weather User Interface 2) Weather Statistics and Recording Interface 3) Weather prediction by Lorentz attractor 4) Solar panel characteristics curve dependence on the weather 5) Wind turbine characteristics curve dependence on the weather 6) Pollution monitoring and alters user interface 7) Green House controlling dependency on weather parameters 8) Wireless Sensor Network Test User Interface 9) Software for Tablet PC and Smart phones NI-Data Dash Board

Front Panel of Main VI We have used customize LabVIEW control to make front panel interface beautiful. Current Weather User Interface:

Page 14: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Weather Statistics and Recording User Interface:

Weather prediction by Lorentz attractor User Interface:

Page 15: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Solar panel characteristics curve dependence on the weather.

Wind turbine characteristics curve dependence on the weather

Page 16: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Pollution monitoring and alters user interface

Green House controlling dependency on weather parameters

Page 17: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Wireless Sensor Network Test User Interface

Apple IPAD tablet showing weather data The following figure is shown as a sample dashboard to show how to develop dash board application for weather and pollution mentoring system in IPAD.

Page 18: NI Pollution Monitoring and Weather Stationarabia.ni.com/sites/default/files/NI Pollution Monitoring and... · there and using LabVIEW web services the user the can connect and access

Acknowledgement: We are highly thankful to Dr. Nabil Rouson, HoD EIET Department, Dr. Abdulmonem Alzalabani, D.M.D, Yanbu Industrial College, Dr. Gasim Alandjani, M.D, Yanbu Industrial College and Dr. Ahmed M. Dabroom D.G., RC Colleges and Institutes Division at Yanbu for their enormous support.