Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use MQ-9: Examples, Pinouts, and Specs

Image of MQ-9
Cirkit Designer LogoDesign with MQ-9 in Cirkit Designer

Introduction

The MQ-9 gas sensor, manufactured by Flying Fish (Part ID: MQ-9), is a versatile and reliable sensor designed to detect various gases, including methane (CH₄), propane (C₃H₈), carbon monoxide (CO), and other combustible gases. It operates on the principle of resistive change, where the sensor's resistance varies in the presence of target gases. This makes it an ideal choice for applications in safety systems, environmental monitoring, and industrial gas detection.

Explore Projects Built with MQ-9

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO and A9G GSM/GPRS GPS-Based Air Quality Monitoring System
Image of A9G Smoke Sensor: A project utilizing MQ-9 in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an A9G GSM/GPRS+GPS module and an MQ2 gas sensor. The Arduino communicates with the A9G module via digital pins D11 and D10 for data transmission, and it reads analog gas concentration levels from the MQ2 sensor through analog pin A5. Both the A9G module and the MQ2 sensor are powered by the Arduino's 5V output, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Air Quality Monitoring and GSM Notification System
Image of Arduino wild: A project utilizing MQ-9 in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Fire Detection and Alert System with SIM900A GSM Module
Image of project 1: A project utilizing MQ-9 in a practical application
This circuit is designed for fire detection and alerting. It uses an Arduino UNO to interface with a heat flame sensor for fire detection and an MQ135 sensor for air quality monitoring. Upon detecting a fire, the Arduino activates a buzzer and uses a SIM900A GSM module to send SMS alerts and make calls to predefined phone numbers.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
Image of AIRMS: A project utilizing MQ-9 in a practical application
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MQ-9

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of A9G Smoke Sensor: A project utilizing MQ-9 in a practical application
Arduino UNO and A9G GSM/GPRS GPS-Based Air Quality Monitoring System
This circuit features an Arduino UNO microcontroller interfaced with an A9G GSM/GPRS+GPS module and an MQ2 gas sensor. The Arduino communicates with the A9G module via digital pins D11 and D10 for data transmission, and it reads analog gas concentration levels from the MQ2 sensor through analog pin A5. Both the A9G module and the MQ2 sensor are powered by the Arduino's 5V output, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Arduino wild: A project utilizing MQ-9 in a practical application
Arduino UNO Based Air Quality Monitoring and GSM Notification System
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of project 1: A project utilizing MQ-9 in a practical application
Arduino UNO Based Fire Detection and Alert System with SIM900A GSM Module
This circuit is designed for fire detection and alerting. It uses an Arduino UNO to interface with a heat flame sensor for fire detection and an MQ135 sensor for air quality monitoring. Upon detecting a fire, the Arduino activates a buzzer and uses a SIM900A GSM module to send SMS alerts and make calls to predefined phone numbers.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AIRMS: A project utilizing MQ-9 in a practical application
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Gas leak detection in homes and industries
  • Air quality monitoring systems
  • Combustible gas alarms
  • Industrial safety systems
  • IoT-based environmental monitoring projects

Technical Specifications

The MQ-9 sensor is designed for ease of use and integration into various systems. Below are its key technical details:

Key Specifications

Parameter Value
Operating Voltage 5V DC
Load Resistance (RL) Adjustable (typically 10 kΩ)
Heater Voltage (VH) 5V ± 0.1V
Heating Current ≤ 180 mA
Sensing Resistance (RS) 1 kΩ to 10 kΩ (in clean air)
Detection Range 10 ppm to 10,000 ppm
Preheat Time ≥ 24 hours
Operating Temperature -20°C to 50°C
Humidity Range 5% to 95% RH (non-condensing)
Dimensions 32mm x 20mm x 22mm

Pin Configuration

The MQ-9 sensor module typically comes with a 4-pin interface. Below is the pinout description:

Pin Name Description
VCC Power supply pin (5V DC)
GND Ground pin
AOUT Analog output pin (provides gas concentration)
DOUT Digital output pin (threshold-based signal)

Usage Instructions

The MQ-9 sensor is straightforward to use in a circuit. Follow the steps below to integrate it into your project:

Circuit Connection

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Analog Output: Connect the AOUT pin to an analog input pin of your microcontroller (e.g., Arduino) to measure gas concentration.
  3. Digital Output: Optionally, connect the DOUT pin to a digital input pin of your microcontroller. The digital output is triggered when the gas concentration exceeds a preset threshold, which can be adjusted using the onboard potentiometer.

Important Considerations

  • Preheating: The sensor requires a preheating time of at least 24 hours for optimal performance. This ensures the internal heater stabilizes and provides accurate readings.
  • Calibration: For precise measurements, calibrate the sensor in a clean air environment to determine the baseline resistance (RS in clean air).
  • Ventilation: Ensure proper ventilation around the sensor to avoid saturation and improve response time.
  • Power Supply: Use a stable 5V power source to avoid fluctuations in readings.

Example Code for Arduino UNO

Below is an example of how to interface the MQ-9 sensor with an Arduino UNO to read analog values:

// MQ-9 Gas Sensor Example Code
// This code reads the analog output of the MQ-9 sensor and prints the value
// to the Serial Monitor. Ensure the sensor is preheated for accurate readings.

const int analogPin = A0; // Connect AOUT pin of MQ-9 to Arduino A0

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  Serial.println("MQ-9 Gas Sensor Reading...");
}

void loop() {
  int sensorValue = analogRead(analogPin); // Read analog value from MQ-9
  float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (0-5V)
  
  // Print the raw sensor value and voltage to the Serial Monitor
  Serial.print("Sensor Value: ");
  Serial.print(sensorValue);
  Serial.print(" | Voltage: ");
  Serial.print(voltage);
  Serial.println(" V");
  
  delay(1000); // Wait for 1 second before the next reading
}

Best Practices

  • Avoid exposing the sensor to high concentrations of corrosive gases, as this may damage the sensing element.
  • Place the sensor in a location where it can detect gases effectively, avoiding areas with excessive humidity or dust.
  • Regularly clean the sensor module to prevent dust accumulation, which can affect sensitivity.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings

    • Cause: Insufficient preheating time.
    • Solution: Ensure the sensor is preheated for at least 24 hours before use.
  2. Fluctuating Readings

    • Cause: Unstable power supply or environmental interference.
    • Solution: Use a regulated 5V power source and avoid placing the sensor near strong electromagnetic fields.
  3. Digital Output Not Triggering

    • Cause: Threshold not set correctly.
    • Solution: Adjust the potentiometer on the module to set the desired threshold level.
  4. Sensor Not Responding to Gases

    • Cause: Sensor element damaged or expired.
    • Solution: Replace the sensor if it has been used for an extended period or exposed to harsh conditions.

FAQs

Q1: Can the MQ-9 detect multiple gases simultaneously?
A1: The MQ-9 can detect multiple gases, but it does not differentiate between them. It provides a combined response based on the presence of target gases.

Q2: How long does the MQ-9 sensor last?
A2: The sensor typically lasts for 2-3 years under normal operating conditions. Prolonged exposure to high concentrations of gases or harsh environments may reduce its lifespan.

Q3: Can I use the MQ-9 with a 3.3V microcontroller?
A3: The MQ-9 requires a 5V power supply for the heater. However, you can use a voltage divider or level shifter to interface the analog output with a 3.3V microcontroller.

Q4: Is the sensor waterproof?
A4: No, the MQ-9 is not waterproof. Avoid exposing it to water or excessive humidity to prevent damage.

By following this documentation, you can effectively integrate and use the MQ-9 gas sensor in your projects for reliable gas detection and monitoring.