Arduino-Based Gas Detecting Alarm System: Ensuring Safety with Smart Sensor Technology

marceldavidbaroi 20 views 11 slides Mar 12, 2025
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

This project presents an Arduino-based Gas Detecting Alarm System designed to detect hazardous gases like LPG, methane, and carbon monoxide in real-time. Utilizing an MQ-series gas sensor, the system triggers an alarm and activates a warning LED when gas levels exceed a safe threshold. This smart an...


Slide Content

GAS DETECTING ALARM SYSTEM

Components USED Arduino (UNO) LCD Gas sensor (MQ2) Breadboard LED Resistor Buzzer Wires

Arduino Arduino senses the environment by receiving inputs from many sensors, and affects its surroundings by controlling lights, motors, and other actuators.

LCD Liquid Crystal Display commonly abbreviated as LCD is basically a display unit built using Liquid Crystal technology

GAS SENSOR The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas. The greater the gas concentration, the greater the output voltage The lower the gas concentration, the lower the output voltage

Small Components Resistor LED Buzzer

code #include < LiquidCrystal.h > LiquidCrystal lcd(5,6,8,9,10,11); int redled = 2; int greenled = 3; int buzzer = 4; int sensor = A0; int sensorThresh = 400; void setup() { pinMode ( redled , OUTPUT); pinMode ( greenled,OUTPUT ); pinMode ( buzzer,OUTPUT ); pinMode ( sensor,INPUT ); Serial.begin (9600); lcd.begin (16,2); }

code void loop() { int analogValue = analogRead (sensor); Serial.print ( analogValue ); if( analogValue > sensorThresh ) { digitalWrite ( redled,HIGH ); digitalWrite ( greenled,LOW ); tone(buzzer,1000,10000); lcd.clear (); lcd.setCursor (0,1); lcd.print ("ALERT"); delay(1000); lcd.clear (); lcd.setCursor (0,1); lcd.print ("EVACUATE"); delay(1000); } else { digitalWrite ( greenled,HIGH ); digitalWrite ( redled,LOW ); noTone (buzzer); lcd.clear (); lcd.setCursor (0,0); lcd.print ("SAFE"); delay(1000); lcd.clear (); lcd.setCursor (0,1); lcd.print ("ALL CLEAR"); delay(1000); } }

bREADBOARD A breadboard is a rectangular plastic board with a bunch of tiny holes in it. These holes let you easily insert electronic components to prototype (meaning to build and test an early version of) an electronic circuit, like this one with a battery, switch, resistor, and an LED (light-emitting diode).

Limitations The gas sensor cannot differentiate between the gasses Contrast of the LCD cannot be adjusted Graphical User Interface will be added Auto door can be added to ensure safety Auto SOS call Can be added Temperature sensor can be added to make the project more effective Automated fire/ smoke defense system can be added Future Scopes

Thank You!