Stufin
Home Quick Cart Profile

MQ-9 Gas Sensor Module For Carbon Monoxide, Methane, and LPG Detector Module

Buy Now on Stufin

Component Name

MQ-9 Gas Sensor Module

Overview

The MQ-9 Gas Sensor Module is a highly sensitive and reliable gas detector module designed to detect the presence of Carbon Monoxide (CO), Methane (CH4), and Liquefied Petroleum Gas (LPG) in the air. This module is widely used in various applications, including industrial automation, environmental monitoring, and safety systems.

Functionality

The MQ-9 Gas Sensor Module is capable of detecting the concentration of CO, CH4, and LPG gases in the air and provides an analog output signal proportional to the gas concentration. The module is equipped with a built-in heating element that helps to enhance the sensitivity and stability of the sensor.

Key Features

  • Sensitive Detection: The MQ-9 Gas Sensor Module boasts high sensitivity, allowing it to detect even small changes in gas concentration.
  • Multi-Gas Detection: The module can detect three types of gases: Carbon Monoxide (CO), Methane (CH4), and Liquefied Petroleum Gas (LPG).
  • Analog Output: The module provides an analog output signal that is proportional to the gas concentration, making it easy to interface with microcontrollers, Arduino, or other electronic devices.
  • Built-in Heating Element: The module features a built-in heating element that helps to stabilize the sensor and improve its sensitivity.
  • Low Power Consumption: The module operates at a low power consumption of 5V, making it suitable for battery-powered devices.
  • Compact Size: The module has a compact design, making it easy to integrate into a wide range of applications.
  • Easy Interface: The module has a simple and easy-to-use interface, making it suitable for both technical professionals and hobbyists.

Operating Voltage

5V DC

Current Consumption

150mA (typical)

Sensitivity

1.5-2.5 V (CO), 2.0-3.0 V (CH4), 2.5-3.5 V (LPG)

Detection Range

100-1000 ppm (CO), 100-10000 ppm (CH4), 100-10000 ppm (LPG)

Heating Element Power

5V DC, 1.5W

Operating Temperature

-10C to 50C

Humidity Range

20-80% RH

Dimension

32mm x 20mm x 10mm

Applications

  • Industrial Automation: The MQ-9 Gas Sensor Module is suitable for industrial automation applications, such as monitoring gas levels in industrial processes.
  • Environmental Monitoring: The module can be used for environmental monitoring applications, such as monitoring air quality in urban areas.
  • Safety Systems: The module is suitable for safety systems, such as detecting gas leaks in homes, industrial facilities, and vehicles.

Note

The MQ-9 Gas Sensor Module should be used in well-ventilated areas, and it is recommended to calibrate the module before use. Additionally, the module should not be used in explosive atmospheres or in the presence of flammable gases.

Pin Configuration

  • MQ-9 Gas Sensor Module Documentation
  • Overview
  • The MQ-9 Gas Sensor Module is a sensitive detector for carbon monoxide, methane, and liquefied petroleum gas (LPG). It is designed to provide a reliable and accurate measurement of gas concentrations in the air. This documentation provides a detailed explanation of the module's pins and their connections.
  • Pinout Description
  • The MQ-9 Gas Sensor Module has a total of 6 pins, which are labeled as follows:
  • 1. VCC (Power Supply)
  • Pin description: Positive power supply pin (5V)
  • Connection: Connect to a 5V power source (e.g., a microcontroller or a battery)
  • Note: Ensure a stable 5V power supply to the module for proper operation
  • 2. GND (Ground)
  • Pin description: Ground pin
  • Connection: Connect to the ground of the power supply or the microcontroller
  • Note: Proper grounding is essential for noise reduction and stable operation
  • 3. OUT (Analog Output)
  • Pin description: Analog output pin (0-5V)
  • Connection: Connect to an analog input pin of a microcontroller (e.g., Arduino) or an analog-to-digital converter (ADC)
  • Note: The analog output voltage is proportional to the gas concentration detected by the sensor
  • 4. DOUT (Digital Output)
  • Pin description: Digital output pin (TTL logic level)
  • Connection: Connect to a digital input pin of a microcontroller
  • Note: The digital output is a binary signal (high or low) indicating the presence or absence of gas
  • 5. AOUT (Analog Enable)
  • Pin description: Analog output enable pin (active low)
  • Connection: Connect to a digital output pin of a microcontroller or a logic level shifter
  • Note: Pull the AOUT pin low to enable the analog output (OUT pin)
  • 6. HEAT (Heater)
  • Pin description: Heater pin (for sensor calibration and operation)
  • Connection: Connect to a digital output pin of a microcontroller or a power source (5V)
  • Note: The heater pin is used to heat the sensor element during calibration and operation
  • Connection Structure
  • Here is a suggested connection structure:
  • Connect VCC to a 5V power source
  • Connect GND to the ground of the power supply or microcontroller
  • Connect OUT to an analog input pin of a microcontroller (e.g., Arduino)
  • Connect DOUT to a digital input pin of a microcontroller
  • Connect AOUT to a digital output pin of a microcontroller (active low to enable analog output)
  • Connect HEAT to a digital output pin of a microcontroller or a power source (5V)
  • Important Notes
  • Ensure proper power supply and grounding for stable operation
  • Use a voltage regulator or a power source with a stable 5V output
  • Keep the sensor away from direct sunlight, moisture, and extreme temperatures
  • Calibrate the sensor according to the manufacturer's instructions for optimal performance
  • By following this documentation, you should be able to connect and use the MQ-9 Gas Sensor Module with your microcontroller or development board.

Code Examples

MQ-9 Gas Sensor Module Documentation
Overview
The MQ-9 Gas Sensor Module is a versatile gas detection module capable of detecting Carbon Monoxide (CO), Methane (CH4), and Liquefied Petroleum Gas (LPG). This module is widely used in IoT projects, robotics, and industrial automation applications where gas detection is a critical safety parameter.
Pinout and Connections
The MQ-9 Gas Sensor Module has a simple pinout:
| Pin | Function |
| --- | --- |
| VCC | Power supply (5V) |
| GND | Ground |
| OUT | Analog output (0-5V) |
Operating Principle
The MQ-9 sensor works on the principle of catalytic combustion, where the gas molecules react with the sensor's metal oxide surface to produce a change in resistance. The sensor is heated to a high temperature (around 300C) to facilitate this reaction. The resistance change is then converted into an analog voltage output, which is proportional to the gas concentration.
Code Examples
### Example 1: Basic Gas Detection with Arduino
In this example, we'll demonstrate how to use the MQ-9 sensor with an Arduino board to detect gas concentrations.
```c++
const int sensorPin = A0;  // Analog input pin for MQ-9 sensor
void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  float voltage = sensorValue  (5.0 / 1023.0);
  Serial.print("Gas concentration: ");
  if (voltage < 0.2) {
    Serial.println("No gas detected");
  } else if (voltage < 0.5) {
    Serial.println("Low gas concentration");
  } else if (voltage < 1.0) {
    Serial.println("Moderate gas concentration");
  } else {
    Serial.println("High gas concentration");
  }
  delay(1000);
}
```
### Example 2: IoT-based Gas Detection with ESP32 and Blynk
In this example, we'll demonstrate how to use the MQ-9 sensor with an ESP32 board and Blynk app to create a wireless gas detection system.
```c++
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "Your Blynk Auth Token";
char ssid[] = "Your WiFi SSID";
char pass[] = "Your WiFi Password";
BlynkTimer timer;
void setup() {
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
// Set up MQ-9 sensor pin
  pinMode(32, INPUT);  // ESP32 ADC pin 32 for MQ-9 sensor
timer.setInterval(1000L, sendGasData);
}
void loop() {
  Blynk.run();
  timer.run();
}
void sendGasData() {
  int sensorValue = analogRead(32);
  float voltage = sensorValue  (5.0 / 4095.0);
  Blynk.virtualWrite(V1, voltage);
}
```
### Example 3: Gas Detection with Raspberry Pi and Python
In this example, we'll demonstrate how to use the MQ-9 sensor with a Raspberry Pi and Python to create a gas detection system.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN)  # Raspberry Pi GPIO 17 for MQ-9 sensor
while True:
  sensorValue = GPIO.input(17)
  voltage = sensorValue  (5.0 / 1023.0)
  print("Gas concentration: ", voltage)
  if voltage < 0.2:
    print("No gas detected")
  elif voltage < 0.5:
    print("Low gas concentration")
  elif voltage < 1.0:
    print("Moderate gas concentration")
  else:
    print("High gas concentration")
  time.sleep(1)
```
Important Notes
The MQ-9 sensor requires a warm-up time of around 24 hours before use.
 The sensor is sensitive to temperature and humidity, which may affect its accuracy.
 It's essential to calibrate the sensor according to the manufacturer's instructions for accurate readings.
 Always handle the sensor with care, as it can be damaged by excessive heat, vibration, or mechanical stress.