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 ZWET (Part ID: MQ-9), is a versatile gas sensor designed to detect a variety of gases, including carbon monoxide (CO), methane (CH₄), and liquefied petroleum gas (LPG). It operates on the principle of resistive change in the presence of target gases, providing an analog output proportional to the gas concentration. This sensor is widely used in air quality monitoring, industrial safety systems, and home safety devices.

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 Gas Detection and GSM Notification System
Image of gsm home security system: A project utilizing MQ 9 in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an MQ-5 gas sensor, a SIM900A GSM module, a green LED, a red LED, and a piezo buzzer. The MQ-5 sensor's analog output is connected to the Arduino's A5 pin for gas concentration measurement. The Arduino controls the LEDs and buzzer, and communicates with the SIM900A module for potential SMS notifications or calls in response to gas detection.
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
MQ-2 Gas Detection Circuit with Audio-Visual Alert
Image of Smoke detector: A project utilizing MQ 9 in a practical application
This circuit is designed to detect gases using an MQ-2 sensor and provide alerts through a buzzer and a bulb. The buzzer is triggered by the sensor's digital output, while the bulb, in series with a resistor, may serve as a status indicator or additional alert. The entire circuit is powered by a 9V battery.
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 gsm home security system: A project utilizing MQ 9 in a practical application
Arduino UNO Based Gas Detection and GSM Notification System
This circuit features an Arduino UNO microcontroller interfaced with an MQ-5 gas sensor, a SIM900A GSM module, a green LED, a red LED, and a piezo buzzer. The MQ-5 sensor's analog output is connected to the Arduino's A5 pin for gas concentration measurement. The Arduino controls the LEDs and buzzer, and communicates with the SIM900A module for potential SMS notifications or calls in response to gas detection.
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 Smoke detector: A project utilizing MQ 9 in a practical application
MQ-2 Gas Detection Circuit with Audio-Visual Alert
This circuit is designed to detect gases using an MQ-2 sensor and provide alerts through a buzzer and a bulb. The buzzer is triggered by the sensor's digital output, while the bulb, in series with a resistor, may serve as a status indicator or additional alert. The entire circuit is powered by a 9V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Carbon monoxide detection in homes and workplaces
  • Methane and LPG leak detection in industrial environments
  • Air quality monitoring systems
  • Gas detection in automotive applications

Technical Specifications

Key Technical Details

Parameter Value
Operating Voltage 5V DC
Load Resistance (RL) Adjustable (typically 10 kΩ)
Heater Voltage (VH) 5V ± 0.1V
Heater Power Consumption ≤ 350 mW
Detection Range 10 ppm to 1000 ppm (CO)
Preheat Time ≥ 24 hours
Operating Temperature -20°C to 50°C
Humidity Range 33% to 85% RH
Output Signal Analog voltage

Pin Configuration and Descriptions

The MQ-9 sensor typically comes with a 4-pin or 6-pin configuration. Below is the pinout description:

4-Pin Configuration

Pin Number Label Description
1 VCC Power supply (5V DC)
2 GND Ground
3 AOUT Analog output signal
4 DOUT Digital output signal (threshold)

6-Pin Configuration

Pin Number Label Description
1 H1 Heater pin 1
2 AOUT Analog output signal
3 GND Ground
4 H2 Heater pin 2
5 DOUT Digital output signal (threshold)
6 VCC Power supply (5V DC)

Usage Instructions

How to Use the MQ-9 in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5V DC power supply and the GND pin to ground.
  2. Preheat the Sensor: Allow the sensor to preheat for at least 24 hours before first use to stabilize its readings.
  3. Connect the Output:
    • Use the AOUT pin for analog gas concentration readings.
    • Use the DOUT pin for a digital HIGH/LOW signal based on a preset threshold.
  4. Adjust the Load Resistor: Set the load resistor (RL) value to optimize sensitivity for the target gas.
  5. Read the Output:
    • For analog readings, connect the AOUT pin to an ADC (Analog-to-Digital Converter) input on a microcontroller.
    • For digital readings, connect the DOUT pin to a digital input pin.

Important Considerations

  • Preheat Time: Ensure the sensor is preheated for at least 24 hours before use to achieve accurate readings.
  • Ventilation: Use the sensor in a well-ventilated area to avoid saturation or false readings.
  • Calibration: Calibrate the sensor in a controlled environment with known gas concentrations for precise measurements.
  • Power Supply: Use a stable 5V DC power source to avoid fluctuations in sensor performance.

Example: Connecting MQ-9 to Arduino UNO

Below is an example of how to connect and read data from the MQ-9 sensor using an Arduino UNO:

Circuit Connections

MQ-9 Pin Arduino UNO Pin
VCC 5V
GND GND
AOUT A0
DOUT Digital Pin 2

Arduino Code

// MQ-9 Gas Sensor Example Code
// Reads analog data from the sensor and prints it to the Serial Monitor

const int analogPin = A0;  // Analog pin connected to AOUT
const int digitalPin = 2;  // Digital pin connected to DOUT

void setup() {
  Serial.begin(9600);       // Initialize serial communication
  pinMode(digitalPin, INPUT); // Set DOUT as input
}

void loop() {
  int analogValue = analogRead(analogPin); // Read analog value from AOUT
  int digitalValue = digitalRead(digitalPin); // Read digital value from DOUT

  // Print the sensor readings to the Serial Monitor
  Serial.print("Analog Value: ");
  Serial.print(analogValue);
  Serial.print(" | Digital Value: ");
  Serial.println(digitalValue);

  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 gas leaks effectively, such as near gas appliances or pipelines.
  • Regularly clean the sensor to remove dust or debris that may affect its performance.

Troubleshooting and FAQs

Common Issues and Solutions

Issue Possible Cause Solution
No output signal Incorrect wiring Verify all connections and pinouts.
Unstable readings Insufficient preheat time Preheat the sensor for 24 hours.
False positives or negatives Environmental interference Ensure proper ventilation and avoid
placing near strong air currents.
Low sensitivity to target gas Incorrect load resistor value (RL) Adjust RL to optimize sensitivity.

FAQs

  1. Can the MQ-9 detect multiple gases simultaneously?

    • Yes, but the sensor's output will represent a combined response to all detected gases. For precise measurements, use a dedicated sensor for each gas.
  2. How do I calibrate the MQ-9 sensor?

    • Expose the sensor to a known concentration of the target gas and adjust the load resistor (RL) or software calibration parameters to match the expected output.
  3. What is the lifespan of the MQ-9 sensor?

    • The sensor typically lasts for 2-3 years under normal operating conditions. Regular maintenance can extend its lifespan.
  4. Can I use the MQ-9 sensor outdoors?

    • The sensor is designed for indoor use. Outdoor use may expose it to extreme temperatures, humidity, or contaminants, which can affect its performance.

By following this documentation, users can effectively integrate the MQ-9 gas sensor into their projects for reliable gas detection and monitoring.