SlideShare a Scribd company logo
1 of 12
Download to read offline
Automated Smoke Detecting Exhaust Fan
Project Report
Introductions to Mechatronics
Submitted By
Hamza Nadeem BME-143019
Submitted To
Mr. Talha Jamal Solija
Department of Mechanical Engineering
Faculty of Engineering
Capital University of Science and Technology
Islamabad
11th
Jan, 2018
1
Abstract
Fire detection has become a crucial aspect in design of buildings, both commercial and domestic,
as opposed to about 70 years ago when automatic detection was rarely provided in buildings.
Before introduction of smoke and fire alarms, fires resulted in the loss of human lives and
damage of property and it was mainly attributed to lack of a mechanism for early detection of
fire. In this project smoke detector fan is made, which detects the smoke at specific value given
by the user and turn on the fan. MQ-2 smoke sensor is used which detects the smoke and gives
the output in voltage signal. Relay is used as a switch in this project. Microcontroller used in this
project is arduino. The scope of this project is to design a circuit for smoke detection. It activates
a fan when a substantive quantity of smoke is sensed. This system can be of great in domestic as
well as industrial settings to detect smoke and alert people on an impending fire. This can go a
long way in helping to save human life. This system can also be used to detect and deter smokers
in areas where smoking is prohibited. The cost of implementing this system is relatively low
since the components used are relatively cheap and are easily available in the market.
2
Table of Contents
Table of Figures .............................................................................................................................. 3
1 Introduction ............................................................................................................................. 4
2 Problem Statement................................................................................................................... 4
3 Objective.................................................................................................................................. 4
4 Scope of Work......................................................................................................................... 5
5 Block Diagram......................................................................................................................... 5
6 Smoke Detectors/Sensors ........................................................................................................ 5
6.1 LDR-Based Smoke Detector............................................................................................ 5
6.2 RE46C190 Photoelectric Smoke Detector ....................................................................... 5
6.3 MQ2 Sensor-Based Smoke Detector ............................................................................... 6
7 Sensor Used ............................................................................................................................. 6
8 Components............................................................................................................................. 7
8.1 MQ2 smoke sensor........................................................................................................... 7
8.2 Arduino UNO................................................................................................................... 9
8.3 5 V Relay.......................................................................................................................... 9
9 Methodology.......................................................................................................................... 10
9.1 Arduino Code................................................................................................................. 10
10 Conclusion ......................................................................................................................... 11
3
Table of Figures
Figure 1 Block Diagram................................................................................................................. 5
Figure 2 Structure of MQ2 ............................................................................................................. 8
Figure 3 MQ2 Sensor...................................................................................................................... 9
Figure 4 Arduino Uno..................................................................................................................... 9
Figure 5 Relay 5 V........................................................................................................................ 10
4
1 Introduction
Fire detection has become a crucial aspect in design of buildings, both commercial and domestic,
as opposed to about 70 years ago when automatic detection was rarely provided in buildings.
Before introduction of smoke and fire alarms, fires resulted in the loss of human lives and
damage of property and it was mainly attributed to lack of a mechanism for early detection of
fire. However, early smoke detectors required high voltage power input. Further research was
done and power requirement in smoke detectors was reduced to make battery power viable and
this made widespread installation in residences highly feasible. Later developments in smoke
detectors have sought to improve their performance, reduce power requirement, and improve
their nuisance alarm sensitivity and also to continuously monitor their status. The most recent
advances in smoke detectors have been motivated to make them smarter. Smoke can be detected
either optically (photoelectric) or by physical process (ionization). Detectors may use either or
both methods. Smoke detectors have prior detection when compared with heat detectors, hence
are preferred for fire detection. They also find application in detecting, and thus deter smoking in
premises where it is banned.
In this project smoke detector fan is made, which detects the smoke at specific value given by the
user and turn on the fan. MQ-2 smoke sensor is used which detects the smoke and gives the
output in voltage signal. Relay is used as a switch in this project. Microcontroller used in this
project is arduino.
2 Problem Statement
Safety is a crucial consideration in design of residential and commercial buildings in order to
safeguard against loss of life and damage to property. Fire is a key element in safety
considerations.
This project therefore seeks to design a arduino based smoke detector fan that will continuously
monitor the presence of significant amount of smoke and activate a fan to draw out a smoke to
contain the situation.
3 Objective
The main objective of this project is to design a circuit useful for detecting smoke and activate a
fan. To achieve this, the following must be done:
 Analysis and calibration of MQ2 smoke sensor.
 Development of program to convert the analog output of the sensor to equivalent digital
form in the arduino.
 Configuration of 5 V relay pins so that it is used as a switch
5
4 Scope of Work
The scope of this project is to design a circuit for smoke detection. It activates a fan when a
substantive quantity of smoke is sensed. Hence, it does not primarily indicate the presence of
fire.
5 Block Diagram
Figure 1 Block Diagram
6 Smoke Detectors/Sensors
A smoke detector is a device that senses smoke typically as an indicator of fire or non-smoking
zone. In order to ensure human safety and safeguard property against fire in both domestic and
commercial settings, different solutions for smoke detection have been developed. Some of the
smoke detectors are shown below.
6.1 LDR-Based Smoke Detector
LDR (Light Dependent Resistor) also known as a LDR, photo resistor, photoconductor or
photocell, is a resistor whose resistance increases or decreases depending on the amount of light
intensity This detector relies on the smoke that is produced in the event of a fire and passes
between a bulb and an LDR, the amount of light falling on the LDR decreases hence its
resistance increases. This in turn affects its voltage characteristics which can be used to pull high
the voltage at the base of a transistor to which the supply to the chip on board is completed. The
sensitivity of the smoke detector depends on the distance between bulb and LDR.
6.2 RE46C190 Photoelectric Smoke Detector
The RE46C190 is a low voltage, low current programmable photoelectric smoke detector IC.
With minimal external components, this smoke detector alarm circuit can provide all the required
features for a photoelectric smoke detector type electronic project. Programmable setup,
calibration and feature selection are the key to reduced component count and cost. The boost
regulator insures proper operation of the infrared diode and the piezo horn under low battery
conditions. The design incorporates a gain-selectable photo amplifier for use with an infrared
6
emitter detector pair. An internal oscillator strobes power to the smoke detection circuitry every
10 seconds, to keep the standby current to a minimum. If smoke is sensed, the detection rate is
increased to verify an alarm condition.
6.3 MQ2 Sensor-Based Smoke Detector
The MQ 2 sensor belongs to the MQ series Semiconductor Gas Sensors. The MQ sensor find
application in gas leak and smoke detection application. Their major advantageous features
include:
 High sensitivity
 Fast response
 Wide detection range
 Stable performance and long life
 Simple drive circuit
Model Target Gas
MQ2 General combustible gas including smoke.
MQ3 Alcohol
MQ4 Natural gas, Methane
MQ5 LPG, Natural gas, Coal gas
MQ6 LPG, Propane
MQ7 Carbon Monoxide
MQ8 Hydrogen
MQ9 CO and Combustible gas
MQ216 Natural gas Coal gas
MQ306A LPG, Propane
MQ2 is the most suitable and readily available for smoke detection. MQ2 is a flammable gas and
smoke sensor which detects the concentrations of combustible gas in the air and outputs reading
as an analog voltage. It is sensitive to a wide range of gases and is used at room temperature.
Some modules have a built-in variable resistor to adjust the sensitivity of the sensor. For MQ2,
the sensitive material used is SnO2, whose conductivity is lower in clean air. Its conductivity
increases as the concentration of combustible gases increases. The output voltage, which is
analogue in nature, can be used to activate a buzzer by interfacing it with a microcontroller,
Arduino or Raspberry Pi.
7 Sensor Used
For the purpose of design of the smoke detector circuit for this project, the MQ2 sensor was
chosen due to the following advantageous features:
7
 Wide detecting scope
 Availability
 Stable and long life
 Fast response
 Low cost
 Simple drive circuit
8 Components
Various components and elements that have been used in the project are given and explained
below.
 MQ2 smoke sensor
 Arduino
 5 V relay
8.1 MQ2 smoke sensor
MQ2 sensors are used in gas leakage detecting equipment in family and industry, and are
suitable for detecting LPG, i-butane, propane, methane ,alcohol, Hydrogen, smoke.
Specifications of MQ2 sensor is given below.
 Standard work condition
8
 Sensitivity Characteristics
 Structure and Configuration
Figure 2 Structure of MQ2
9
Figure 3 MQ2 Sensor
8.2 Arduino UNO
Arduino is an open-source electronics platform based on easy-to- use hardware and
software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a
motion detection and turn it into an output - activating a motor, turning on an LED, rotating a
camera. You can tell your board what to do by sending a set of instructions to the microcontroller
on the board. To do so you use the Arduino programming language (based on Wiring), and the
Arduino Software (IDE), based on Processing. As per general operating procedures associated
with Arduino, a program was developed that would make everything work.
Figure 4 Arduino Uno
8.3 5 V Relay
A relay is an electrically operated switch. Many relays use an electromagnet to mechanically
operate a switch, but other operating principles are also used, such as solid-state relays. Relays
are used where it is necessary to control a circuit by a separate low-power signal, or where
several circuits must be controlled by one signal. The advantage of using a 5V relay in this
project is that the power supply for the relay can be directly given from the Arduino UNO board
itself. Under normal lighting conditions, the output from the MQ2 is in the range of 80 – 100.
When MQ2 detect the smoke, the output from the MQ2 will jump to 130 – 140. This condition
can be used to trigger the 5V Relay and turn on the fan,
10
Figure 5 Relay 5 V
9 Methodology
This smoke detecting exhaust fan mechanism works on a closed loop system. In this system an
MQ2 sensor will detect smoke from any source and send a feedback signal to the
microcontroller, arduino. Arduino will trigger the relay, hence completing the circuit which will
allow the actuator to work as for this case, the exhaust fan will turn on.
9.1 Arduino Code
int smoke = A5;
int analogSensor;
int t=8;
void setup() {
pinMode(smoke, INPUT);
pinMode(t,OUTPUT);
Serial.begin(300);
}
void loop() {
analogSensor = analogRead(smoke)
Serial.print("Pin A5: ");
Serial.println(analogSensor);
if (analogSensor > 100)
{
Serial.println("smog");
digitalWrite(t,1);
}
else
{
digitalWrite(t,0);
11
Serial.println("nosmog");
}
}
10 Conclusion
The main objective of this project has been to design a circuit that detects smoke and
consequently turn on the fan. This objective was met since the systems works effectively. The
cost of implementing this system is relatively low since the components used are relatively cheap
and are easily available in the market. The single microcontroller can be used to interface sensor
with relay as long as more pins are freed for multiple inputs multiple outputs. This system can be
of great in domestic as well as industrial settings to detect smoke and alert people on an
impending fire since smoke is a precursor for fire, instead of relying on heat/temperature sensors
which sounds alarm when the fire has already started. This can go a long way in helping to save
human life. This system can also be used to detect and deter smokers in areas where smoking is
prohibited.

More Related Content

What's hot

Project ideas ece students
Project ideas ece studentsProject ideas ece students
Project ideas ece studentsVatsal N Shah
 
Gas & smoke detector
Gas & smoke detectorGas & smoke detector
Gas & smoke detectorToushik Paul
 
Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert systemNisha Kumari
 
Demodulation of AM wave
Demodulation of AM waveDemodulation of AM wave
Demodulation of AM waveLokesh Parihar
 
fire detection system
fire detection systemfire detection system
fire detection systemShaik Suhail
 
Exp amplitude modulation (1)
Exp amplitude modulation (1)Exp amplitude modulation (1)
Exp amplitude modulation (1)Sarah Krystelle
 
Automatic street light
Automatic street lightAutomatic street light
Automatic street lightAnu Antony
 
Fire fighting robot ppt
Fire fighting robot pptFire fighting robot ppt
Fire fighting robot pptathmeg
 
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptAUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptRavi Shankar
 
report on rain alarm project
report on rain alarm projectreport on rain alarm project
report on rain alarm projectRavi Phadtare
 
Automatic street light control using LDR.
Automatic street light control using LDR.Automatic street light control using LDR.
Automatic street light control using LDR.Fazlur Rahman
 
fire alarm system
 fire alarm system fire alarm system
fire alarm systemashwitamane
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemSaumya Tiwari
 
Fire Alarm System.pdf
Fire Alarm System.pdfFire Alarm System.pdf
Fire Alarm System.pdfssuser06d7b51
 
Door knock alarm with timer
Door knock alarm with timerDoor knock alarm with timer
Door knock alarm with timerSANDEEP GHOSH
 
Smart Garden IOT Project
Smart Garden IOT ProjectSmart Garden IOT Project
Smart Garden IOT ProjectAntar975
 
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSM
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSMFIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSM
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSMSaikiran Perfect
 

What's hot (20)

Project ideas ece students
Project ideas ece studentsProject ideas ece students
Project ideas ece students
 
Gas & smoke detector
Gas & smoke detectorGas & smoke detector
Gas & smoke detector
 
Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert system
 
Demodulation of AM wave
Demodulation of AM waveDemodulation of AM wave
Demodulation of AM wave
 
fire detection system
fire detection systemfire detection system
fire detection system
 
Exp amplitude modulation (1)
Exp amplitude modulation (1)Exp amplitude modulation (1)
Exp amplitude modulation (1)
 
Automatic street light
Automatic street lightAutomatic street light
Automatic street light
 
Fire fighting robot ppt
Fire fighting robot pptFire fighting robot ppt
Fire fighting robot ppt
 
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptAUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
 
report on rain alarm project
report on rain alarm projectreport on rain alarm project
report on rain alarm project
 
Automatic street light control using LDR.
Automatic street light control using LDR.Automatic street light control using LDR.
Automatic street light control using LDR.
 
fire alarm system
 fire alarm system fire alarm system
fire alarm system
 
Smart street light system
Smart street light systemSmart street light system
Smart street light system
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring System
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
Fire Alarm System.pdf
Fire Alarm System.pdfFire Alarm System.pdf
Fire Alarm System.pdf
 
Door knock alarm with timer
Door knock alarm with timerDoor knock alarm with timer
Door knock alarm with timer
 
Smart Garden IOT Project
Smart Garden IOT ProjectSmart Garden IOT Project
Smart Garden IOT Project
 
Microwave
MicrowaveMicrowave
Microwave
 
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSM
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSMFIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSM
FIRE DETECTION AND ELETRICAL POWER ON/OFF CONTROL IN HOME/INDUSTRY USING GSM
 

Similar to Automated Smoke Detected Exhaust Fan

Smoke Alert System For Dye Industries Using IoT
Smoke Alert System For Dye Industries Using IoTSmoke Alert System For Dye Industries Using IoT
Smoke Alert System For Dye Industries Using IoTIRJET Journal
 
Bluetooth Based Fire Detection and Robust Protection System By Using Arduino
Bluetooth Based Fire Detection and Robust Protection System By Using ArduinoBluetooth Based Fire Detection and Robust Protection System By Using Arduino
Bluetooth Based Fire Detection and Robust Protection System By Using ArduinoIRJET Journal
 
A Project Reports On SMOKE DETECTOR
A Project Reports On SMOKE DETECTORA Project Reports On SMOKE DETECTOR
A Project Reports On SMOKE DETECTORAnn Wera
 
System smoke detectors_appguide_spag91
System smoke detectors_appguide_spag91System smoke detectors_appguide_spag91
System smoke detectors_appguide_spag91Sujal Patel
 
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOT
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOTAIR AND SOUND POLLUTION MONITORING SYSTEM USING IOT
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOTIRJET Journal
 
IRJET- Home Surveillance Without using CCTV Camera
IRJET-  	  Home Surveillance Without using CCTV CameraIRJET-  	  Home Surveillance Without using CCTV Camera
IRJET- Home Surveillance Without using CCTV CameraIRJET Journal
 
A FUSION OF IoT BASED GAS LEAKAGE DETECTION
A FUSION OF IoT BASED GAS LEAKAGE DETECTIONA FUSION OF IoT BASED GAS LEAKAGE DETECTION
A FUSION OF IoT BASED GAS LEAKAGE DETECTIONIRJET Journal
 
Coal Mine Safety Monitoring and Alerting System using IOT Based
Coal Mine Safety Monitoring and Alerting System using IOT BasedCoal Mine Safety Monitoring and Alerting System using IOT Based
Coal Mine Safety Monitoring and Alerting System using IOT Basedijtsrd
 
Design and Implementation of Bluetooth Based Industrial Automation
Design and Implementation of Bluetooth Based Industrial AutomationDesign and Implementation of Bluetooth Based Industrial Automation
Design and Implementation of Bluetooth Based Industrial Automationijtsrd
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...DeepakK547422
 
IRJET- IoT based Smart Helmet for Coal Mining Tracking
IRJET- IoT based Smart Helmet for Coal Mining TrackingIRJET- IoT based Smart Helmet for Coal Mining Tracking
IRJET- IoT based Smart Helmet for Coal Mining TrackingIRJET Journal
 
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using ZigbeeIRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using ZigbeeIRJET Journal
 
IRJET- LPG Leakage Detection and Prevention System with GSM Alert
IRJET-  	  LPG Leakage Detection and Prevention System with GSM AlertIRJET-  	  LPG Leakage Detection and Prevention System with GSM Alert
IRJET- LPG Leakage Detection and Prevention System with GSM AlertIRJET Journal
 
IRJET- Smart Security System in Homes using Simple Internet of Things Ena...
IRJET-  	  Smart Security System in Homes using Simple Internet of Things Ena...IRJET-  	  Smart Security System in Homes using Simple Internet of Things Ena...
IRJET- Smart Security System in Homes using Simple Internet of Things Ena...IRJET Journal
 
IRJET - Fire and Harmful Gas Detection Notification System
IRJET - Fire and Harmful Gas Detection Notification SystemIRJET - Fire and Harmful Gas Detection Notification System
IRJET - Fire and Harmful Gas Detection Notification SystemIRJET Journal
 
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...IRJET Journal
 
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...IRJET Journal
 
Smart human two wheeler safety system
Smart human two wheeler safety systemSmart human two wheeler safety system
Smart human two wheeler safety systemIRJET Journal
 
LPG GAS DETECTOR presentation for engineers
LPG GAS DETECTOR presentation for engineersLPG GAS DETECTOR presentation for engineers
LPG GAS DETECTOR presentation for engineerssreenienaganti
 
IRJET - Smart Industrial Control and Safety System
IRJET - Smart Industrial Control and Safety SystemIRJET - Smart Industrial Control and Safety System
IRJET - Smart Industrial Control and Safety SystemIRJET Journal
 

Similar to Automated Smoke Detected Exhaust Fan (20)

Smoke Alert System For Dye Industries Using IoT
Smoke Alert System For Dye Industries Using IoTSmoke Alert System For Dye Industries Using IoT
Smoke Alert System For Dye Industries Using IoT
 
Bluetooth Based Fire Detection and Robust Protection System By Using Arduino
Bluetooth Based Fire Detection and Robust Protection System By Using ArduinoBluetooth Based Fire Detection and Robust Protection System By Using Arduino
Bluetooth Based Fire Detection and Robust Protection System By Using Arduino
 
A Project Reports On SMOKE DETECTOR
A Project Reports On SMOKE DETECTORA Project Reports On SMOKE DETECTOR
A Project Reports On SMOKE DETECTOR
 
System smoke detectors_appguide_spag91
System smoke detectors_appguide_spag91System smoke detectors_appguide_spag91
System smoke detectors_appguide_spag91
 
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOT
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOTAIR AND SOUND POLLUTION MONITORING SYSTEM USING IOT
AIR AND SOUND POLLUTION MONITORING SYSTEM USING IOT
 
IRJET- Home Surveillance Without using CCTV Camera
IRJET-  	  Home Surveillance Without using CCTV CameraIRJET-  	  Home Surveillance Without using CCTV Camera
IRJET- Home Surveillance Without using CCTV Camera
 
A FUSION OF IoT BASED GAS LEAKAGE DETECTION
A FUSION OF IoT BASED GAS LEAKAGE DETECTIONA FUSION OF IoT BASED GAS LEAKAGE DETECTION
A FUSION OF IoT BASED GAS LEAKAGE DETECTION
 
Coal Mine Safety Monitoring and Alerting System using IOT Based
Coal Mine Safety Monitoring and Alerting System using IOT BasedCoal Mine Safety Monitoring and Alerting System using IOT Based
Coal Mine Safety Monitoring and Alerting System using IOT Based
 
Design and Implementation of Bluetooth Based Industrial Automation
Design and Implementation of Bluetooth Based Industrial AutomationDesign and Implementation of Bluetooth Based Industrial Automation
Design and Implementation of Bluetooth Based Industrial Automation
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
 
IRJET- IoT based Smart Helmet for Coal Mining Tracking
IRJET- IoT based Smart Helmet for Coal Mining TrackingIRJET- IoT based Smart Helmet for Coal Mining Tracking
IRJET- IoT based Smart Helmet for Coal Mining Tracking
 
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using ZigbeeIRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
 
IRJET- LPG Leakage Detection and Prevention System with GSM Alert
IRJET-  	  LPG Leakage Detection and Prevention System with GSM AlertIRJET-  	  LPG Leakage Detection and Prevention System with GSM Alert
IRJET- LPG Leakage Detection and Prevention System with GSM Alert
 
IRJET- Smart Security System in Homes using Simple Internet of Things Ena...
IRJET-  	  Smart Security System in Homes using Simple Internet of Things Ena...IRJET-  	  Smart Security System in Homes using Simple Internet of Things Ena...
IRJET- Smart Security System in Homes using Simple Internet of Things Ena...
 
IRJET - Fire and Harmful Gas Detection Notification System
IRJET - Fire and Harmful Gas Detection Notification SystemIRJET - Fire and Harmful Gas Detection Notification System
IRJET - Fire and Harmful Gas Detection Notification System
 
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
 
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
Wireless Auto Power Trip System for Liquefied Petroleum Gas Leakage to Improv...
 
Smart human two wheeler safety system
Smart human two wheeler safety systemSmart human two wheeler safety system
Smart human two wheeler safety system
 
LPG GAS DETECTOR presentation for engineers
LPG GAS DETECTOR presentation for engineersLPG GAS DETECTOR presentation for engineers
LPG GAS DETECTOR presentation for engineers
 
IRJET - Smart Industrial Control and Safety System
IRJET - Smart Industrial Control and Safety SystemIRJET - Smart Industrial Control and Safety System
IRJET - Smart Industrial Control and Safety System
 

Recently uploaded

call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptDineshKumar4165
 
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...shivangimorya083
 
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一ffhuih11ff
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERunosafeads
 
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...Garima Khatri
 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsFifth Gear Automotive
 
Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...D&V Business Consulting
 
GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024AHOhOops1
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualExcavator
 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 HybridHyundai Motor Group
 
Crash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptCrash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptVlademirGebDubouzet1
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubaikojalkojal131
 
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...Niya Khan
 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsappssapnasaifi408
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Roomdivyansh0kumar0
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girlsshivangimorya083
 

Recently uploaded (20)

call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in  G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in G.T.B. Nagar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
 
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
 
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
 
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一
定制(UW毕业证书)华盛顿大学毕业证成绩单原版一比一
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
 
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
 
Call Girls in Shri Niwas Puri Delhi 💯Call Us 🔝9953056974🔝
Call Girls in  Shri Niwas Puri  Delhi 💯Call Us 🔝9953056974🔝Call Girls in  Shri Niwas Puri  Delhi 💯Call Us 🔝9953056974🔝
Call Girls in Shri Niwas Puri Delhi 💯Call Us 🔝9953056974🔝
 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These Symptoms
 
Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...
 
GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024GREEN VEHICLES the kids picture show 2024
GREEN VEHICLES the kids picture show 2024
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair Manual
 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
 
Crash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.pptCrash Vehicle Emergency Rescue Slideshow.ppt
Crash Vehicle Emergency Rescue Slideshow.ppt
 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
 
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
 
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...
Alia +91-9537192988-Experience the Unmatchable Pleasure with Model Ahmedabad ...
 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
 
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kasba 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kasba 👉 8250192130 Available With Room
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
 

Automated Smoke Detected Exhaust Fan

  • 1. Automated Smoke Detecting Exhaust Fan Project Report Introductions to Mechatronics Submitted By Hamza Nadeem BME-143019 Submitted To Mr. Talha Jamal Solija Department of Mechanical Engineering Faculty of Engineering Capital University of Science and Technology Islamabad 11th Jan, 2018
  • 2. 1 Abstract Fire detection has become a crucial aspect in design of buildings, both commercial and domestic, as opposed to about 70 years ago when automatic detection was rarely provided in buildings. Before introduction of smoke and fire alarms, fires resulted in the loss of human lives and damage of property and it was mainly attributed to lack of a mechanism for early detection of fire. In this project smoke detector fan is made, which detects the smoke at specific value given by the user and turn on the fan. MQ-2 smoke sensor is used which detects the smoke and gives the output in voltage signal. Relay is used as a switch in this project. Microcontroller used in this project is arduino. The scope of this project is to design a circuit for smoke detection. It activates a fan when a substantive quantity of smoke is sensed. This system can be of great in domestic as well as industrial settings to detect smoke and alert people on an impending fire. This can go a long way in helping to save human life. This system can also be used to detect and deter smokers in areas where smoking is prohibited. The cost of implementing this system is relatively low since the components used are relatively cheap and are easily available in the market.
  • 3. 2 Table of Contents Table of Figures .............................................................................................................................. 3 1 Introduction ............................................................................................................................. 4 2 Problem Statement................................................................................................................... 4 3 Objective.................................................................................................................................. 4 4 Scope of Work......................................................................................................................... 5 5 Block Diagram......................................................................................................................... 5 6 Smoke Detectors/Sensors ........................................................................................................ 5 6.1 LDR-Based Smoke Detector............................................................................................ 5 6.2 RE46C190 Photoelectric Smoke Detector ....................................................................... 5 6.3 MQ2 Sensor-Based Smoke Detector ............................................................................... 6 7 Sensor Used ............................................................................................................................. 6 8 Components............................................................................................................................. 7 8.1 MQ2 smoke sensor........................................................................................................... 7 8.2 Arduino UNO................................................................................................................... 9 8.3 5 V Relay.......................................................................................................................... 9 9 Methodology.......................................................................................................................... 10 9.1 Arduino Code................................................................................................................. 10 10 Conclusion ......................................................................................................................... 11
  • 4. 3 Table of Figures Figure 1 Block Diagram................................................................................................................. 5 Figure 2 Structure of MQ2 ............................................................................................................. 8 Figure 3 MQ2 Sensor...................................................................................................................... 9 Figure 4 Arduino Uno..................................................................................................................... 9 Figure 5 Relay 5 V........................................................................................................................ 10
  • 5. 4 1 Introduction Fire detection has become a crucial aspect in design of buildings, both commercial and domestic, as opposed to about 70 years ago when automatic detection was rarely provided in buildings. Before introduction of smoke and fire alarms, fires resulted in the loss of human lives and damage of property and it was mainly attributed to lack of a mechanism for early detection of fire. However, early smoke detectors required high voltage power input. Further research was done and power requirement in smoke detectors was reduced to make battery power viable and this made widespread installation in residences highly feasible. Later developments in smoke detectors have sought to improve their performance, reduce power requirement, and improve their nuisance alarm sensitivity and also to continuously monitor their status. The most recent advances in smoke detectors have been motivated to make them smarter. Smoke can be detected either optically (photoelectric) or by physical process (ionization). Detectors may use either or both methods. Smoke detectors have prior detection when compared with heat detectors, hence are preferred for fire detection. They also find application in detecting, and thus deter smoking in premises where it is banned. In this project smoke detector fan is made, which detects the smoke at specific value given by the user and turn on the fan. MQ-2 smoke sensor is used which detects the smoke and gives the output in voltage signal. Relay is used as a switch in this project. Microcontroller used in this project is arduino. 2 Problem Statement Safety is a crucial consideration in design of residential and commercial buildings in order to safeguard against loss of life and damage to property. Fire is a key element in safety considerations. This project therefore seeks to design a arduino based smoke detector fan that will continuously monitor the presence of significant amount of smoke and activate a fan to draw out a smoke to contain the situation. 3 Objective The main objective of this project is to design a circuit useful for detecting smoke and activate a fan. To achieve this, the following must be done:  Analysis and calibration of MQ2 smoke sensor.  Development of program to convert the analog output of the sensor to equivalent digital form in the arduino.  Configuration of 5 V relay pins so that it is used as a switch
  • 6. 5 4 Scope of Work The scope of this project is to design a circuit for smoke detection. It activates a fan when a substantive quantity of smoke is sensed. Hence, it does not primarily indicate the presence of fire. 5 Block Diagram Figure 1 Block Diagram 6 Smoke Detectors/Sensors A smoke detector is a device that senses smoke typically as an indicator of fire or non-smoking zone. In order to ensure human safety and safeguard property against fire in both domestic and commercial settings, different solutions for smoke detection have been developed. Some of the smoke detectors are shown below. 6.1 LDR-Based Smoke Detector LDR (Light Dependent Resistor) also known as a LDR, photo resistor, photoconductor or photocell, is a resistor whose resistance increases or decreases depending on the amount of light intensity This detector relies on the smoke that is produced in the event of a fire and passes between a bulb and an LDR, the amount of light falling on the LDR decreases hence its resistance increases. This in turn affects its voltage characteristics which can be used to pull high the voltage at the base of a transistor to which the supply to the chip on board is completed. The sensitivity of the smoke detector depends on the distance between bulb and LDR. 6.2 RE46C190 Photoelectric Smoke Detector The RE46C190 is a low voltage, low current programmable photoelectric smoke detector IC. With minimal external components, this smoke detector alarm circuit can provide all the required features for a photoelectric smoke detector type electronic project. Programmable setup, calibration and feature selection are the key to reduced component count and cost. The boost regulator insures proper operation of the infrared diode and the piezo horn under low battery conditions. The design incorporates a gain-selectable photo amplifier for use with an infrared
  • 7. 6 emitter detector pair. An internal oscillator strobes power to the smoke detection circuitry every 10 seconds, to keep the standby current to a minimum. If smoke is sensed, the detection rate is increased to verify an alarm condition. 6.3 MQ2 Sensor-Based Smoke Detector The MQ 2 sensor belongs to the MQ series Semiconductor Gas Sensors. The MQ sensor find application in gas leak and smoke detection application. Their major advantageous features include:  High sensitivity  Fast response  Wide detection range  Stable performance and long life  Simple drive circuit Model Target Gas MQ2 General combustible gas including smoke. MQ3 Alcohol MQ4 Natural gas, Methane MQ5 LPG, Natural gas, Coal gas MQ6 LPG, Propane MQ7 Carbon Monoxide MQ8 Hydrogen MQ9 CO and Combustible gas MQ216 Natural gas Coal gas MQ306A LPG, Propane MQ2 is the most suitable and readily available for smoke detection. MQ2 is a flammable gas and smoke sensor which detects the concentrations of combustible gas in the air and outputs reading as an analog voltage. It is sensitive to a wide range of gases and is used at room temperature. Some modules have a built-in variable resistor to adjust the sensitivity of the sensor. For MQ2, the sensitive material used is SnO2, whose conductivity is lower in clean air. Its conductivity increases as the concentration of combustible gases increases. The output voltage, which is analogue in nature, can be used to activate a buzzer by interfacing it with a microcontroller, Arduino or Raspberry Pi. 7 Sensor Used For the purpose of design of the smoke detector circuit for this project, the MQ2 sensor was chosen due to the following advantageous features:
  • 8. 7  Wide detecting scope  Availability  Stable and long life  Fast response  Low cost  Simple drive circuit 8 Components Various components and elements that have been used in the project are given and explained below.  MQ2 smoke sensor  Arduino  5 V relay 8.1 MQ2 smoke sensor MQ2 sensors are used in gas leakage detecting equipment in family and industry, and are suitable for detecting LPG, i-butane, propane, methane ,alcohol, Hydrogen, smoke. Specifications of MQ2 sensor is given below.  Standard work condition
  • 9. 8  Sensitivity Characteristics  Structure and Configuration Figure 2 Structure of MQ2
  • 10. 9 Figure 3 MQ2 Sensor 8.2 Arduino UNO Arduino is an open-source electronics platform based on easy-to- use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a motion detection and turn it into an output - activating a motor, turning on an LED, rotating a camera. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing. As per general operating procedures associated with Arduino, a program was developed that would make everything work. Figure 4 Arduino Uno 8.3 5 V Relay A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate a switch, but other operating principles are also used, such as solid-state relays. Relays are used where it is necessary to control a circuit by a separate low-power signal, or where several circuits must be controlled by one signal. The advantage of using a 5V relay in this project is that the power supply for the relay can be directly given from the Arduino UNO board itself. Under normal lighting conditions, the output from the MQ2 is in the range of 80 – 100. When MQ2 detect the smoke, the output from the MQ2 will jump to 130 – 140. This condition can be used to trigger the 5V Relay and turn on the fan,
  • 11. 10 Figure 5 Relay 5 V 9 Methodology This smoke detecting exhaust fan mechanism works on a closed loop system. In this system an MQ2 sensor will detect smoke from any source and send a feedback signal to the microcontroller, arduino. Arduino will trigger the relay, hence completing the circuit which will allow the actuator to work as for this case, the exhaust fan will turn on. 9.1 Arduino Code int smoke = A5; int analogSensor; int t=8; void setup() { pinMode(smoke, INPUT); pinMode(t,OUTPUT); Serial.begin(300); } void loop() { analogSensor = analogRead(smoke) Serial.print("Pin A5: "); Serial.println(analogSensor); if (analogSensor > 100) { Serial.println("smog"); digitalWrite(t,1); } else { digitalWrite(t,0);
  • 12. 11 Serial.println("nosmog"); } } 10 Conclusion The main objective of this project has been to design a circuit that detects smoke and consequently turn on the fan. This objective was met since the systems works effectively. The cost of implementing this system is relatively low since the components used are relatively cheap and are easily available in the market. The single microcontroller can be used to interface sensor with relay as long as more pins are freed for multiple inputs multiple outputs. This system can be of great in domestic as well as industrial settings to detect smoke and alert people on an impending fire since smoke is a precursor for fire, instead of relying on heat/temperature sensors which sounds alarm when the fire has already started. This can go a long way in helping to save human life. This system can also be used to detect and deter smokers in areas where smoking is prohibited.