SlideShare a Scribd company logo
1 of 18
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

Gas & smoke detector Report
Gas & smoke detector ReportGas & smoke detector Report
Gas & smoke detector ReportToushik Paul
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection systemAashiq Ahamed N
 
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 detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino UT-028
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentationRija Fatima
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoOmer Kilic
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoDistance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoAswin KP
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxRaJYadav196733
 
Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert systemNisha Kumari
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduinoBetsy Eng
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Alwin Arrasyid
 
Automatic gas detection system
Automatic  gas  detection  systemAutomatic  gas  detection  system
Automatic gas detection systemSayanSarkar55
 
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 ModuleManish Patel
 
Arduino : how to get started
Arduino : how to get startedArduino : how to get started
Arduino : how to get started동호 손
 

What's hot (20)

Gas & smoke detector Report
Gas & smoke detector ReportGas & smoke detector Report
Gas & smoke detector Report
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection system
 
Smoke Detection System
Smoke Detection SystemSmoke Detection System
Smoke Detection 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
 
Home security system
Home security system Home security system
Home security system
 
Fire detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentation
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoDistance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino Uno
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
 
Gsm based fire alert system
Gsm based fire alert systemGsm based fire alert system
Gsm based fire alert system
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
 
Ardui no
Ardui no Ardui no
Ardui no
 
Fire alarm system
Fire alarm systemFire alarm system
Fire alarm system
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
 
Automatic gas detection system
Automatic  gas  detection  systemAutomatic  gas  detection  system
Automatic gas detection system
 
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
 
Gas detection robot ppt
Gas detection robot pptGas detection robot ppt
Gas detection robot ppt
 
Arduino : how to get started
Arduino : how to get startedArduino : how to get started
Arduino : how to get started
 

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 AnalysisYokogawa1
 
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.pptxhicham 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.pptxhicham 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 SecurityIRJET Journal
 
Eye C Gas
Eye C GasEye C Gas
Eye C Gaseyecgas
 
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 ammoniaSherry 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 firesarabfires
 
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 AlarmUdit Jain
 
GAS sensor report
GAS sensor reportGAS sensor report
GAS sensor reportSaroj 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 SystemMonzer 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.pptxJohnSena23
 
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 - VE2013Analog Devices, Inc.
 
Automated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust FanAutomated Smoke Detected Exhaust Fan
Automated Smoke Detected Exhaust FanHamzanadeem96
 

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

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 

Recently uploaded (20)

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 

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