Saturday, 6 December 2014

Envirnoment Monitor - Microprocessor systems Project - Arduino based Envirnoment monitor

 Assalam u Alikum! Everyone!





Here is a big deal for you, I am sharing my Semester Project, Environment monitor, with it's complete documentation , here you go!

Video

Environment Monitor from Mohammed Ahmad Osama on Vimeo.
a
Project Abstract

a)    What is the problem? Is there any local relevance?
Problem is to monitor & manage environment of laboratories, automatic systems so that proper maintenance can be provided when needed.
Black boxes used in airplanes are one of the very useful examples.
b)    Why is it important and relevant to the subject?
                        It is not only important for professional point of view, but also it covers many of the techniques that we will learn in this subject
c)    What are the goals/objectives of the project?
To develop a Black Box type device, which can monitor its environment (laboratories etc.)
Note:
we know there is a box in each airplane, called as Black Box, which records each activity of airplane. 
We want to implement this concept in monitoring automatic machines, laboratories (like chemistry labs, where environment has effects on chemical processes & chemical processes also effects environment badly, hence we need a check and balance system); in high level industrial plants (like boilers in etc.) if we do check & balance on environment, we will be safe from losses. 
We will get data from sensors, and not only record it in memory card, but also broadcast it wirelessly (Bluetooth). It will also have some thresholds for which it will broadcast alarms. (If some unexpected situation occurs.)

On the other hand, it will greatly helpful in learning. (Interfacing different devices i.e. sensors, Bluetooth, memory card)
d)    What tools you plan to use for the project? (e.g. microcontroller type, sensors, motors, board, component types, designing tool etc)
·         Arduino OR ATmega
·         Output on PC
·         SD card
·         Sensors (Temperature, Humidity, Fire, IR, Light, Magnetic Field, Sound, Gas.)
o   Any other low cost sensor, available in market.
e) What would be the final deliverable of the project? (e.g. a working XYZ that can perform following functions successfully i) Abc   ii) CDE  iii)  FGH etc.
                      I.        Data Logging (Memory Card)
                    II.        Output On PC
                   III.        Sensors (Temperature, Humidity, Fire, IR, Light, Magnetic Field, Sound)   
f) What are the minimum working requirements for the prototype? What are the maximum working requirements? At-least functions i) and ii) must be in working condition to call the project functional   . Function iii) and iv) with i) and ii) completed would define project a success. (etc.)
            Answer of question (e) will be a success for project, we will try to not only implement above mentioned functions but also to include more sensors. Moreover, broadcasting output through Bluetooth will be an additional function of this device.
Project Specifications


Project Introduction:
Problem Statement is to monitor & manage environment of laboratories, automatic systems so that proper maintenance can be provided when needed. Black boxes used in airplanes are one of the very useful examples. It is not only important for professional point of view, but also it covers many of the techniques that we will learn in this subject
We want to implement this concept in monitoring automatic machines, laboratories (like chemistry labs, where environment has effects on chemical processes & chemical processes also effects environment badly, hence we need a check and balance system); in high level industrial plants (like boilers in etc.) if we do check & balance on environment, we will be safe from losses.
On the other hand, it will greatly helpful in learning. (Interfacing different devices i.e. sensors, Bluetooth, memory card)

Project Objectives:
To Ensure, safe working for students as well as professionals

Brief Overview

CPU
Atmega328
CPU clock
16 Mhz
Input Devices
Temperature Sensor
Humidity Sensor
Fire Sensor
IR Sensor
Light Sensor
Magnetic Field Sensor
Sound Sensor
Gas Sensor
Outputs
SD card
PC (through Serial Com)
Mobile (Through Bluetooth) - Optional
Techniques
Sensor Interfacing
SD card interfacing
Serial port Interfacing
Timer
Alarm
Mobile Application Development – Optional
Deliverables
A Black box containing all circuitry




Components Details
http://www.gravitechthai.com/fckupload/upload/image/startupkit/lesson%202/003.pngCPU:      Atmega328.
                It is a single chip 8-bit Microcontroller device (RISC based) by Atmel Corporation. It has following built in modules for our interest.
·         6-channel 10 bit ADC
·         SPI
·         Serial Port (1 Hardware + software)
·         Interrupts
·         Timer
·         Rs. 400 in local market (uC). Rs. 1500 Arduino board (built in CPU)
Input Devices:
·         http://www.electroschematics.com/wp-content/uploads/2011/04/lm35.jpgTemperature Sensor (LM35).
It is Precision integrated temperature sensor. It gives output voltage linearly proportional to Centigrade Temperature scale. It has following prominent characteristics.
o   Calibrated Directly in ° Celsius (Centigrade)
o   Rated for Full −55°C to +150°C Range
o   Low Cost
o   Linear + 10 mV/°C Scale Factor
o   Low Impedance Output, 0.1 Ω for 1 mA Load
o   Rs. 90 in local market
All These features not only help in easy temperature measurement but also it consumes less power as it has less impedance
·         http://www.bhashatech.com/83-256-thickbox/tsop-1738-infrared-sensor.jpgInfrared Sensor.
Our chosen IR sensor has following features
o   Operating voltage: 2.4 to 6.5V
o   Good noise-proof capability
o   Low power consumption
o   Rs. 30 in local market
·         http://i00.i.aliimg.com/photo/v1/618702434/20mm_50_100k_ohm_LDR_resistor.jpgLDR Photo Resistor
o   GL5539 LDR
o   Light Resistance (10 Lux): 50-100 Kohm
o   Rs. 30 in local market
·         Magnetic Field Sensor
o   Hall Effect Method
·         Humidity Sensor
o   DHT 11
o   Range up to 20-90% RH
o   Flame Sensor module __SKU # 327 - Click Image to CloseSPI Communication. Single wire two way
o   Rs. 370 in local market
·         Fire Sensor
o   Flame Sensor Module
o   Rs. 350 in local market
o    
·         http://img04.taobaocdn.com/bao/uploaded/i4/T1Ihx4XjpyXXcOB6M9_103856.jpgSound Sensor
o   Industrial Microphone (14RM06CN)
o   Rs. 30 in local market
·         Gas Sensor
o   GQ-2A
§  Wide detecting scope
§  http://www.image.micros.com.pl/_icon_auto/rys.cz%20g-a.jpgFast response
§  High sensitivity
§  Stable
§  Suitable for detecting f LPG, i-butane, propane, Methane, Alcohol, Hydrogen, smoke.
o   Rs. 150 in local market
o   Note: Working details of this sensor at this stage is not describable.
·         Note: any other low cost sensors available in local market may also be added in project.
Output:
·         PC
o   Sensor Data will be output to Serial port which will be displayed on Serial Emulator on PC
·         Mobile - Optional
o   Sensor Data may also be output on mobile phone (i.e. Android, Iphone, etc.) using Bluetooth Communication
·         SD Card
o   http://hafeezcentre.pk/ads_images/1294393307_su82/hc129682894580.jpgSensor data will be saved to memory card on a specified interval.
Techniques:
From learning perspective, we have following  major Techniques to learn.
·         Sensor Interfacing
o   This is Major part of project, Our concern will be working of different sensors
·         Serial Communication
·         SD Card Interfacing
·         Timers
·         Interrupts
·         Android Phone Development - Optional

http://www.residentadvisor.net/images/events/flyer/2012/4/uk-0406-349751-front.jpgDeliverables:
A Blackbox containing all the circuitry.

 Project Specifications
d