
Embedded Systems
LPG Leakage Automatic Shut-Off System
Abstract:
The LPG Leakage Automatic Shut-Off System is designed to detect potential LPG gas leakage and provide an automatic warning response using an Arduino microcontroller and MQ-6 gas sensor. The sensor monitors changes in LPG-related gas concentration and sends an electrical signal to the Arduino. When the sensor readings cross a configured warning threshold, the controller activates a buzzer and visual LED alert. It also operates a servo motor connected to a demonstration valve mechanism to simulate automatic gas shut-off. An optional LCD displays the sensor readings and system status. The project aims to demonstrate gas-leak detection, automated alert generation, and valve-control concepts for educational and prototype applications.
Project Description:
This project develops an LPG leakage detection and automatic shut-off prototype using an Arduino Uno or Nano, MQ-6 LPG gas sensor, servo motor, buzzer, LEDs, and optional 16×2 LCD display.
The MQ-6 sensor is designed to respond to LPG-related gases, particularly propane and butane. It monitors changes in the surrounding gas concentration and provides an analog output to the Arduino through its interface module.
The Arduino processes the sensor readings and compares them with calibrated reference values and configured warning thresholds. When a potential LPG leakage condition is detected, the controller activates the buzzer and red LED to provide an audible and visual warning.
At the same time, the Arduino sends a control signal to the servo motor. The servo rotates a demonstration valve mechanism from its normal position to a closed position. The LCD can display the sensor reading, leakage status, and valve position.
Working Principle:
1. Gas Detection: The MQ-6 sensor detects changes in LPG-related gas concentration around the monitored area.
2. Signal Generation: The sensor module produces an analog output corresponding to changes in the sensing element's response.
3. Data Acquisition: Arduino reads the analog sensor output through its ADC input.
4. Signal Processing: The controller processes the readings using calibration values and compares them with configured warning thresholds.
5. Leakage Identification: When the readings cross the configured alarm threshold, Arduino identifies a potential leakage condition.
6. Audible Alert: The buzzer activates to warn nearby people.
7. Visual Alert: The red LED indicates a potential gas-leak condition, while the green LED indicates normal readings.
8. Servo Activation: Arduino sends a control signal to the servo motor to rotate the demonstration valve mechanism into its closed position.
9. LCD Display: The optional LCD displays sensor readings, leakage status, and valve-control status.
10. System Monitoring: The controller continues monitoring the sensor and maintains the alarm condition until the system is checked and safely reset.
Notes:
- The MQ-6 is designed for LPG-related gas detection, particularly propane and butane, but it is not a precision gas analyser.
- Allow the sensor to warm up and stabilize according to the manufacturer's datasheet before taking measurements.
- Calibrate the sensor under suitable controlled conditions before configuring alarm thresholds.
- Raw analog readings must not be treated as accurate gas concentration values in ppm without a validated calibration process.
- Temperature, humidity, airflow, sensor ageing, and other gases can affect sensor readings.
- The MQ-6 module's analog output must remain within the Arduino's permitted input voltage range.
- Select a servo motor with sufficient torque for the demonstration mechanism and provide a suitable regulated power supply.
- Use a transistor or appropriate driver if the buzzer requires more current than an Arduino GPIO can provide.
- A hobby servo attached to an ordinary gas valve is not a certified or reliable gas shut-off mechanism.
- The servo-based valve mechanism in this educational project should be used only with a non-pressurized demonstration setup, not an actual LPG cylinder or gas pipeline.
- Real LPG shut-off applications require a certified, gas-compatible, fail-safe automatic shut-off valve and a professionally engineered control system.
- Do not rely on this prototype as a replacement for a certified LPG detector, approved gas shut-off equipment, or professional installation.
- In a suspected LPG leak, avoid operating electrical switches or creating sparks, leave the affected area, and contact the gas supplier or emergency services.
- The system should only be reset after the area has been confirmed safe.
Expected Outcome:
The expected outcome is a functional educational LPG leakage detection prototype that monitors LPG-related gas concentration using an MQ-6 sensor and Arduino. When configured alarm conditions are detected, it can activate a buzzer and red LED, operate a servo-controlled demonstration valve mechanism, and display system status on an optional LCD.
All Projects




