Introduction
A gas detector is a device that detects the presence of gases in an area, often as part of a safety system. This type of equipment is used to detect a gas leak or other emissions and can interface with a control system so a process can be automatically shut down. A gas detector can sound an alarm to operators in the area where the leak is occurring, giving them the opportunity to leave. This type of device is important because there are many gases that can be harmful to organic life, such as humans or animals. Gas detectors can be used to detect combustible, flammable and toxic gases, and oxygen depletion.
About Device
There are many metal oxide sensors, known as MQ detectors, are available in a series of devices. MQ2 sensors detect methane and butane, for example. MQ138 sensors detect benzene and toluene. A partial list of MQ series sensors includes:
•\tMQ2 Methane, Butane, LPG, Smoke
•\tMQ3 Alcohol, Ethanol, Smoke
•\tMQ4 Methane, CNG
•\tMQ5 Natural gas, LPG
•\tMQ6 LPG, Butane
•\tMQ7 Carbon Monoxide
•\tMQ8 Hydrogen gas
But in this project I am using mq5 gas detector sensor with Arduino Nano. The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the atmosphere. The sensor outputs voltage that is proportional to the concentration of smoke/gas.
When LPG gas leakage sensed, it will give a HIGH pulse on its DO pin and Arduino constantly reads its DO pin. When Arduino receives a HIGH pulse from the LPG Gas sensor module it's green led turns off and red led turns on with led a 5v buzzer also start beeping untill it sense LPG gas.
When Arduino gets a LOW pulse from the LPG Gas detector module, then red led and buzzer turns off and green led turns on.
Advantages
\tDetection and prevention of any sort of gas leakage.
\tCost efficient
\tLess complex circuit
Demo video
EXPANDED TECHNICAL DETAILS
Indoor Air Quality (IAQ) Safety Hub
A critical household safety project designed to detect hazardous gas leaks (LPG, Methane, Smoke) and provide an immediate acoustic alert.
- MQ-Series Spectral Analysis: Interfaces with an MQ-2 or MQ-5 gas sensor. The Arduino monitors the heater-resistor voltage; as the concentration of flammable gas increases, the resistance drops, and the analog voltage spikes.
- Multi-Stage Alarm sequencer: Features a "Pre-Alarm" (Short Chirps) for low concentrations and a "Full Alarm" (Continuous 90dB Siren) for critical concentrations, giving the user time to investigate before the situation is dangerous.
Reliability
- Sensor Pre-Heat Logic: Includes a "Wait-to-Arm" routine that ignores all sensor data for the first 60 seconds after power-up, allowing the MQ-sensor's internal heating element to stabilize for accurate readings.