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

PATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMPATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMsathish sak
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentationRija Fatima
 
clamp tester.pptx
clamp tester.pptxclamp tester.pptx
clamp tester.pptxMARKABBY25
 
Infrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working PrincipleInfrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working Principleelprocus
 
Iot based health monitoring system
Iot based health monitoring systemIot based health monitoring system
Iot based health monitoring systemShaswataMohanta
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduinochetan kadiwal
 
Wireless mobile charger
Wireless mobile chargerWireless mobile charger
Wireless mobile chargernissy marla
 
Electrical Engineering Final Presentation
Electrical Engineering Final Presentation Electrical Engineering Final Presentation
Electrical Engineering Final Presentation Sethmi Kachchakaduge
 
Pressure sensor lecture
Pressure sensor lecturePressure sensor lecture
Pressure sensor lectureutpal sarkar
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)Aishwary Verma
 
Smart energy meter (Updated)
Smart energy meter (Updated)Smart energy meter (Updated)
Smart energy meter (Updated)Dnyanesh Patil
 
Sensors and actuators
Sensors and actuatorsSensors and actuators
Sensors and actuatorsnazibhmd
 
TEMPERATURE SENSORS.pptx
TEMPERATURE SENSORS.pptxTEMPERATURE SENSORS.pptx
TEMPERATURE SENSORS.pptxshadrickkasuba
 
A solar power generation system with a seven level inverter
A solar power generation system with a seven level inverterA solar power generation system with a seven level inverter
A solar power generation system with a seven level invertershashank chelpuri
 
Electronics project presentation
Electronics project presentationElectronics project presentation
Electronics project presentationZahidul Islam Razu
 

What's hot (20)

PATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMPATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEM
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentation
 
clamp tester.pptx
clamp tester.pptxclamp tester.pptx
clamp tester.pptx
 
Infrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working PrincipleInfrared IR Sensor Circuit Diagram and Working Principle
Infrared IR Sensor Circuit Diagram and Working Principle
 
Iot based health monitoring system
Iot based health monitoring systemIot based health monitoring system
Iot based health monitoring system
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
 
Wireless mobile charger
Wireless mobile chargerWireless mobile charger
Wireless mobile charger
 
Seminar report
Seminar reportSeminar report
Seminar report
 
Electrical Engineering Final Presentation
Electrical Engineering Final Presentation Electrical Engineering Final Presentation
Electrical Engineering Final Presentation
 
Pressure sensor lecture
Pressure sensor lecturePressure sensor lecture
Pressure sensor lecture
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)
 
Smart energy meter (Updated)
Smart energy meter (Updated)Smart energy meter (Updated)
Smart energy meter (Updated)
 
Ultrasonic based distance meter
Ultrasonic based distance meterUltrasonic based distance meter
Ultrasonic based distance meter
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
Sensors and actuators
Sensors and actuatorsSensors and actuators
Sensors and actuators
 
TEMPERATURE SENSORS.pptx
TEMPERATURE SENSORS.pptxTEMPERATURE SENSORS.pptx
TEMPERATURE SENSORS.pptx
 
History of Electric Metering
History of Electric MeteringHistory of Electric Metering
History of Electric Metering
 
A solar power generation system with a seven level inverter
A solar power generation system with a seven level inverterA solar power generation system with a seven level inverter
A solar power generation system with a seven level inverter
 
Proximity sensor
Proximity sensorProximity sensor
Proximity sensor
 
Electronics project presentation
Electronics project presentationElectronics project presentation
Electronics project presentation
 

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

John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualJohn Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualExcavator
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERunosafeads
 
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样gfghbihg
 
Call Girls in Karachi | +923081633338 | Karachi Call Girls
Call Girls in Karachi  | +923081633338 | Karachi Call GirlsCall Girls in Karachi  | +923081633338 | Karachi Call Girls
Call Girls in Karachi | +923081633338 | Karachi Call GirlsAyesha Khan
 
办理埃默里大学毕业证Emory毕业证原版一比一
办理埃默里大学毕业证Emory毕业证原版一比一办理埃默里大学毕业证Emory毕业证原版一比一
办理埃默里大学毕业证Emory毕业证原版一比一mkfnjj
 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxDineshKumar4165
 
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂Hot Call Girls In Sector 58 (Noida)
 
2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agencyHyundai Motor Group
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESDineshKumar4165
 
Digamma / CertiCon Company Presentation
Digamma / CertiCon Company  PresentationDigamma / CertiCon Company  Presentation
Digamma / CertiCon Company PresentationMihajloManjak
 
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedWhat Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedAutobahn Automotive Service
 
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样umasea
 
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一fhhkjh
 
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一mjyguplun
 
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCRsoniya singh
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证jjrehjwj11gg
 
VDA 6.3 Process Approach in Automotive Industries
VDA 6.3 Process Approach in Automotive IndustriesVDA 6.3 Process Approach in Automotive Industries
VDA 6.3 Process Approach in Automotive IndustriesKannanDN
 
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
 

Recently uploaded (20)

John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service ManualJohn Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
John Deere 300 3029 4039 4045 6059 6068 Engine Operation and Service Manual
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
 
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
(办理学位证)(Toledo毕业证)托莱多大学毕业证成绩单修改留信学历认证原版一模一样
 
Call Girls in Karachi | +923081633338 | Karachi Call Girls
Call Girls in Karachi  | +923081633338 | Karachi Call GirlsCall Girls in Karachi  | +923081633338 | Karachi Call Girls
Call Girls in Karachi | +923081633338 | Karachi Call Girls
 
办理埃默里大学毕业证Emory毕业证原版一比一
办理埃默里大学毕业证Emory毕业证原版一比一办理埃默里大学毕业证Emory毕业证原版一比一
办理埃默里大学毕业证Emory毕业证原版一比一
 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
 
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
꧁༒☬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncr☬༒꧂
 
2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
 
Digamma / CertiCon Company Presentation
Digamma / CertiCon Company  PresentationDigamma / CertiCon Company  Presentation
Digamma / CertiCon Company Presentation
 
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be PreventedWhat Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
What Causes DPF Failure In VW Golf Cars & How Can They Be Prevented
 
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样
办理学位证(MLU文凭证书)哈勒 维滕贝格大学毕业证成绩单原版一模一样
 
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
定制(Plymouth文凭证书)普利茅斯大学毕业证毕业证成绩单学历认证原版一比一
 
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一
如何办理爱尔兰都柏林大学毕业证(UCD毕业证) 成绩单原版一比一
 
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证
原版工艺美国普林斯顿大学毕业证Princeton毕业证成绩单修改留信学历认证
 
Call Girls In Kirti Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Kirti Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Kirti Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Kirti Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
VDA 6.3 Process Approach in Automotive Industries
VDA 6.3 Process Approach in Automotive IndustriesVDA 6.3 Process Approach in Automotive Industries
VDA 6.3 Process Approach in Automotive Industries
 
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
 

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.