SlideShare a Scribd company logo
Gas & Smoke Detection Using Arduino UNO
Introduction
Gas Explosion
An explosion resulting from mixing a gas, typically from a gas leak, with air in the presence of an ignition
source.
Components Used
Name Image
Arduino UNO
Generic Breadboard
Components Used
Name Image
MQ-4 Smoke & Gas Sensor
Jumber Cables
Components Used
Name Image
LED Bulb (1 Green, 1 Red)
Buzzer
About MQ-4 Gas & Smoke Sensor
Features
◦ High Sensitivity to CH4, Natural Gas
◦ Fast Response
◦ Simple Drive Circuit
◦ Sensitive to LPG, Butane, Propane, Methane, Alcohol, Hydrogen
About MQ-4 Gas & Smoke Sensor
Application
◦ Detecting CH4, Natural Gas
◦ Detecting Smoke, Cooking Fumes
About MQ-4 Gas & Smoke Sensor
Notes
◦ Resistance of the sensor is different depending on the type of
the gas
◦ Built-in potentiometer allows to adjust the sensor sensitivity
About MQ-4 Gas & Smoke Sensor
About MQ-4 Gas & Smoke Sensor
Working Procedure
◦ The greater the gas concentration,
the greater the output voltage
◦ The lower the gas concentration
the lower the output voltage
Circuit Schematics
Pin Wiring for MQ-4 Sensor
◦ VCC to 5V
◦ A0 to A5
◦ GND to GND
Pin Wiring for Arduino UNO
◦ Red LED, Arduino Pin 12
◦ Green LED, Arduino Pin 11
◦ Buzzer, Arduino Pin 10
Code
Link: https://gist.github.com/660e6c6203ca0a2cef74f842f5774e4d
Code
int RED_LED = 12;
int GREEN_LED = 11;
int BUZZER = 10;
int SMOKE_AT_SENSOR_A0 = A5;
int sensor_threshold = 250;
void setup() {
pinMode(RED_LED, OUTPUT);
pinMode(GREEN_LED, OUTPUT);
pinMode(BUZZER, OUTPUT);
pinMode(SMOKE_AT_SENSOR_A0, INPUT);
Serial.begin(9600);
}
Code
void loop() {
int value_of_gas = analogRead(SMOKE_AT_SENSOR_A0);
Serial.print("Pin A0: ");
Serial.println(value_of_gas);
// Confirms Gas Reaches Threshold Value
if (value_of_gas > sensor_threshold)
{
digitalWrite(RED_LED, HIGH);
digitalWrite(GREEN_LED, LOW);
tone(BUZZER, 1000, 500);
}
Code
// Warn When Reaches 75% of Threshold Value Without Any Sound
else if (value_of_gas * 0.75 > sensor_threshold)
{
analogWrite(RED_LED, 128);
analogWrite(GREEN_LED, 128);
noTone(BUZZER);
}
else {
digitalWrite(RED_LED, LOW);
digitalWrite(GREEN_LED, HIGH);
noTone(BUZZER);
}
delay(1000);
}
Image of Current System
Limitations
◦ Suitable as a demo project, not for household or commercial use
◦ Threshold value is not properly optimized
References
◦ https://arduino.cc
◦ https://sparkfun.com
◦ https://www.tinkercad.com

More Related Content

What's hot

Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert system
Nisha Kumari
 
Io t based air pollution monitoring system using arduino
Io t based air pollution monitoring system using arduinoIo t based air pollution monitoring system using arduino
Io t based air pollution monitoring system using arduino
Binayakreddy
 
LPG Gas detector
LPG Gas detectorLPG Gas detector
LPG Gas detector
ajay singh
 
GSM Based SMS fire alert system
GSM Based SMS fire alert systemGSM Based SMS fire alert system
GSM Based SMS fire alert system
Soumyadeep Kal
 
Automatic gas detection system
Automatic  gas  detection  systemAutomatic  gas  detection  system
Automatic gas detection system
SayanSarkar55
 
Fire Alarm System Project
Fire Alarm System ProjectFire Alarm System Project
Fire Alarm System Project
RinkuNahar
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
Abhishek Bhadoria
 
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
Hari sankar
 
Automatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAutomatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR Sensor
Ankit Chaudhary
 
Gas Leakage Detector using Arduino with SMS Alert - Engineering Project
Gas Leakage Detector using Arduino with SMS Alert - Engineering ProjectGas Leakage Detector using Arduino with SMS Alert - Engineering Project
Gas Leakage Detector using Arduino with SMS Alert - Engineering Project
CircuitsToday
 
Microcontroller Based LPG Detector Using GSM Module
Microcontroller Based LPG Detector Using GSM ModuleMicrocontroller Based LPG Detector Using GSM Module
Microcontroller Based LPG Detector Using GSM Module
Manish Patel
 
Smoke detector
Smoke detectorSmoke detector
Smoke detector
Hassan Muhammad
 
High sensitive lpg sensor with gas leakage alert buzzer
High sensitive lpg sensor with gas leakage alert buzzerHigh sensitive lpg sensor with gas leakage alert buzzer
High sensitive lpg sensor with gas leakage alert buzzer
Jagadeesh Yadav
 
Bluetooth controlled home appliances
Bluetooth controlled home appliancesBluetooth controlled home appliances
Bluetooth controlled home appliances
ADARSH KUMAR
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentationRija Fatima
 
IoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINOIoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINO
AYSHA S KABEER
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266
Rishav Pandey
 
Pollution Monitoring System using Arduino and various gas sensor
Pollution Monitoring System using Arduino and various gas sensorPollution Monitoring System using Arduino and various gas sensor
Pollution Monitoring System using Arduino and various gas sensor
Utkarsh Jaiswal
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
Arvind Singh
 
FIRE ALARM SYSTEM
FIRE ALARM SYSTEM FIRE ALARM SYSTEM
FIRE ALARM SYSTEM
Sebin James
 

What's hot (20)

Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert system
 
Io t based air pollution monitoring system using arduino
Io t based air pollution monitoring system using arduinoIo t based air pollution monitoring system using arduino
Io t based air pollution monitoring system using arduino
 
LPG Gas detector
LPG Gas detectorLPG Gas detector
LPG Gas detector
 
GSM Based SMS fire alert system
GSM Based SMS fire alert systemGSM Based SMS fire alert system
GSM Based SMS fire alert system
 
Automatic gas detection system
Automatic  gas  detection  systemAutomatic  gas  detection  system
Automatic gas detection system
 
Fire Alarm System Project
Fire Alarm System ProjectFire Alarm System Project
Fire Alarm System Project
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
 
Automatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAutomatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR Sensor
 
Gas Leakage Detector using Arduino with SMS Alert - Engineering Project
Gas Leakage Detector using Arduino with SMS Alert - Engineering ProjectGas Leakage Detector using Arduino with SMS Alert - Engineering Project
Gas Leakage Detector using Arduino with SMS Alert - Engineering Project
 
Microcontroller Based LPG Detector Using GSM Module
Microcontroller Based LPG Detector Using GSM ModuleMicrocontroller Based LPG Detector Using GSM Module
Microcontroller Based LPG Detector Using GSM Module
 
Smoke detector
Smoke detectorSmoke detector
Smoke detector
 
High sensitive lpg sensor with gas leakage alert buzzer
High sensitive lpg sensor with gas leakage alert buzzerHigh sensitive lpg sensor with gas leakage alert buzzer
High sensitive lpg sensor with gas leakage alert buzzer
 
Bluetooth controlled home appliances
Bluetooth controlled home appliancesBluetooth controlled home appliances
Bluetooth controlled home appliances
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentation
 
IoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINOIoT BASED SMART HOME USING ARDUINO
IoT BASED SMART HOME USING ARDUINO
 
Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266Patient Health Monitoring System Using Arduino & ESP8266
Patient Health Monitoring System Using Arduino & ESP8266
 
Pollution Monitoring System using Arduino and various gas sensor
Pollution Monitoring System using Arduino and various gas sensorPollution Monitoring System using Arduino and various gas sensor
Pollution Monitoring System using Arduino and various gas sensor
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 
FIRE ALARM SYSTEM
FIRE ALARM SYSTEM FIRE ALARM SYSTEM
FIRE ALARM SYSTEM
 

Similar to Arduino UNO Gas & Smoke Detection - Embedded Systems

Changing Best Practices in Flue Gas Analysis
Changing Best Practices in Flue Gas AnalysisChanging Best Practices in Flue Gas Analysis
Changing Best Practices in Flue Gas Analysis
Yokogawa1
 
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptxTrainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
hicham benkhelifa
 
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptxTrainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
hicham benkhelifa
 
IRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living SecurityIRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living Security
IRJET Journal
 
Eye C Gas
Eye C GasEye C Gas
Eye C Gas
eyecgas
 
Semiconductor gas sensor for air quality ammonia
Semiconductor gas sensor for air quality ammoniaSemiconductor gas sensor for air quality ammonia
Semiconductor gas sensor for air quality ammonia
Sherry Huang
 
Heiman hm 710 gas detector user manual - arab fires
Heiman hm 710 gas detector user manual - arab firesHeiman hm 710 gas detector user manual - arab fires
Heiman hm 710 gas detector user manual - arab fires
arabfires
 
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
ijtsrd
 
Photonics for High-End Gas Analysis - Gasera Ltd.
Photonics for High-End Gas Analysis - Gasera Ltd.Photonics for High-End Gas Analysis - Gasera Ltd.
Photonics for High-End Gas Analysis - Gasera Ltd.
Gasera Ltd.
 
Gas sensor Alarm
Gas sensor AlarmGas sensor Alarm
Gas sensor Alarm
Udit Jain
 
CO Sensing Safety Systems for Appliances
CO Sensing Safety Systems for AppliancesCO Sensing Safety Systems for Appliances
CO Sensing Safety Systems for Appliances
U.S. Consumer Product Safety Commission
 
GAS sensor report
GAS sensor reportGAS sensor report
GAS sensor report
Saroj kumar
 
LPG – Liquefied Petroleum Gas & Gas Detection System
LPG – Liquefied Petroleum Gas & Gas Detection SystemLPG – Liquefied Petroleum Gas & Gas Detection System
LPG – Liquefied Petroleum Gas & Gas Detection System
Monzer Salahdine
 
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
Analog Devices, Inc.
 
126 Tejas Katkar. Gas leakage detection project.pptx
126 Tejas Katkar. Gas leakage detection project.pptx126 Tejas Katkar. Gas leakage detection project.pptx
126 Tejas Katkar. Gas leakage detection project.pptx
JohnSena23
 
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
Md. Muntasir R- Rafi
 
Instrumentation: Liquid and Gas Sensing - VE2013
Instrumentation: Liquid and Gas Sensing - VE2013Instrumentation: Liquid and Gas Sensing - VE2013
Instrumentation: Liquid and Gas Sensing - VE2013
Analog Devices, Inc.
 
Automated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust FanAutomated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust Fan
Hamzanadeem96
 

Similar to Arduino UNO Gas & Smoke Detection - Embedded Systems (20)

Changing Best Practices in Flue Gas Analysis
Changing Best Practices in Flue Gas AnalysisChanging Best Practices in Flue Gas Analysis
Changing Best Practices in Flue Gas Analysis
 
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptxTrainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
 
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptxTrainee Presentaion-21 - Fire and Gas Detectors.pptx
Trainee Presentaion-21 - Fire and Gas Detectors.pptx
 
IRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living SecurityIRJET -Arduino based Gas Leakage Detection for Living Security
IRJET -Arduino based Gas Leakage Detection for Living Security
 
Eye C Gas
Eye C GasEye C Gas
Eye C Gas
 
Semiconductor gas sensor for air quality ammonia
Semiconductor gas sensor for air quality ammoniaSemiconductor gas sensor for air quality ammonia
Semiconductor gas sensor for air quality ammonia
 
Heiman hm 710 gas detector user manual - arab fires
Heiman hm 710 gas detector user manual - arab firesHeiman hm 710 gas detector user manual - arab fires
Heiman hm 710 gas detector user manual - arab fires
 
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
Smart Automation Gas Level Monitoring with Gas Leakage Deduction and Refill B...
 
Photonics for High-End Gas Analysis - Gasera Ltd.
Photonics for High-End Gas Analysis - Gasera Ltd.Photonics for High-End Gas Analysis - Gasera Ltd.
Photonics for High-End Gas Analysis - Gasera Ltd.
 
ACA-02
ACA-02ACA-02
ACA-02
 
GfG_G888_
GfG_G888_GfG_G888_
GfG_G888_
 
Gas sensor Alarm
Gas sensor AlarmGas sensor Alarm
Gas sensor Alarm
 
CO Sensing Safety Systems for Appliances
CO Sensing Safety Systems for AppliancesCO Sensing Safety Systems for Appliances
CO Sensing Safety Systems for Appliances
 
GAS sensor report
GAS sensor reportGAS sensor report
GAS sensor report
 
LPG – Liquefied Petroleum Gas & Gas Detection System
LPG – Liquefied Petroleum Gas & Gas Detection SystemLPG – Liquefied Petroleum Gas & Gas Detection System
LPG – Liquefied Petroleum Gas & Gas Detection System
 
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
Instrumentation: Liquid and Gas Sensing (Design Conference 2013)
 
126 Tejas Katkar. Gas leakage detection project.pptx
126 Tejas Katkar. Gas leakage detection project.pptx126 Tejas Katkar. Gas leakage detection project.pptx
126 Tejas Katkar. Gas leakage detection project.pptx
 
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
Design, Construction and Testing of Combustible Gas Leakage Detector for Auto...
 
Instrumentation: Liquid and Gas Sensing - VE2013
Instrumentation: Liquid and Gas Sensing - VE2013Instrumentation: Liquid and Gas Sensing - VE2013
Instrumentation: Liquid and Gas Sensing - VE2013
 
Automated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust FanAutomated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust Fan
 

Recently uploaded

A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 

Recently uploaded (20)

A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 

Arduino UNO Gas & Smoke Detection - Embedded Systems

  • 1. Gas & Smoke Detection Using Arduino UNO
  • 2. Introduction Gas Explosion An explosion resulting from mixing a gas, typically from a gas leak, with air in the presence of an ignition source.
  • 3. Components Used Name Image Arduino UNO Generic Breadboard
  • 4. Components Used Name Image MQ-4 Smoke & Gas Sensor Jumber Cables
  • 5. Components Used Name Image LED Bulb (1 Green, 1 Red) Buzzer
  • 6. About MQ-4 Gas & Smoke Sensor Features ◦ High Sensitivity to CH4, Natural Gas ◦ Fast Response ◦ Simple Drive Circuit ◦ Sensitive to LPG, Butane, Propane, Methane, Alcohol, Hydrogen
  • 7. About MQ-4 Gas & Smoke Sensor Application ◦ Detecting CH4, Natural Gas ◦ Detecting Smoke, Cooking Fumes
  • 8. About MQ-4 Gas & Smoke Sensor Notes ◦ Resistance of the sensor is different depending on the type of the gas ◦ Built-in potentiometer allows to adjust the sensor sensitivity
  • 9. About MQ-4 Gas & Smoke Sensor
  • 10. About MQ-4 Gas & Smoke Sensor Working Procedure ◦ The greater the gas concentration, the greater the output voltage ◦ The lower the gas concentration the lower the output voltage
  • 11. Circuit Schematics Pin Wiring for MQ-4 Sensor ◦ VCC to 5V ◦ A0 to A5 ◦ GND to GND Pin Wiring for Arduino UNO ◦ Red LED, Arduino Pin 12 ◦ Green LED, Arduino Pin 11 ◦ Buzzer, Arduino Pin 10
  • 13. Code int RED_LED = 12; int GREEN_LED = 11; int BUZZER = 10; int SMOKE_AT_SENSOR_A0 = A5; int sensor_threshold = 250; void setup() { pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); pinMode(BUZZER, OUTPUT); pinMode(SMOKE_AT_SENSOR_A0, INPUT); Serial.begin(9600); }
  • 14. Code void loop() { int value_of_gas = analogRead(SMOKE_AT_SENSOR_A0); Serial.print("Pin A0: "); Serial.println(value_of_gas); // Confirms Gas Reaches Threshold Value if (value_of_gas > sensor_threshold) { digitalWrite(RED_LED, HIGH); digitalWrite(GREEN_LED, LOW); tone(BUZZER, 1000, 500); }
  • 15. Code // Warn When Reaches 75% of Threshold Value Without Any Sound else if (value_of_gas * 0.75 > sensor_threshold) { analogWrite(RED_LED, 128); analogWrite(GREEN_LED, 128); noTone(BUZZER); } else { digitalWrite(RED_LED, LOW); digitalWrite(GREEN_LED, HIGH); noTone(BUZZER); } delay(1000); }
  • 17. Limitations ◦ Suitable as a demo project, not for household or commercial use ◦ Threshold value is not properly optimized