Categories
TUTORIALS

Using Buzzer and Sensor to Warn Gas Leaking

Background

A gas sensor is an apparatus that identifies the existence of various gases in the surrounding atmosphere. These sensors are utilized in a wide range of applications, including security systems in refineries, industrial facilities, and homes. They are capable of detecting combustible gases, toxic gases, pollutants, and more.

As part of the pollution detection & control project, this demo is intended to show you how to alert dangerous gas leaks by using the MQ-9 carbon monoxide combustible gas sensor with the buzzer.

Components

The MQ-9 is a semiconductor device for detecting the presence of methane, carbon monoxide, and LPG gases. The sensing component of it is tin dioxide, or Sn02, which the conductivity is impaired in clean air.

Structure and Configuration of the MQ-9 Sensor

The active buzzer from the starter kit is also used to sound the alarm when gas leaks are detected. With a built-in oscillating source, the active buzzer will generate a sound when electrified.

Active Buzzer

Other components to make this prototype will include:

  • ELEGOO UNO R3 Board ATmega328P with USB Cable
  • Breadboard
  • 1KΩ Resistor
  • Jumper Wires

Wiring Diagram

Connection Table
Photo

Code

MQ-9 requires calibration before using the module. It includes R0 (sensor resistance in 1000ppm concentration of LPG) and Rs (Internal resistance of the sensor which changes by gas concentration). Run the following code for 15 minutes in clean air before the first use until R0 has a fixed value.

After obtaining a fixed R0 value, run the following code with the R0 value for trigging the alarm if there is a gas leak.

Reference

Elegoo Super Starter Kit for UNO. Lesson 6 Active Buzzer

How to interface MQ-9 Gas Sensor with Arduino. https://www.circuits-diy.com/how-to-interface-mq-9-gas-sensor-with-arduino/

MQ-9. Hanwei Eletronics CO., LTD. www.hwsensor.com

Leave a Reply

Your email address will not be published. Required fields are marked *