The MQ-9 is a gas sensor designed to detect various gases, including methane (CH₄), propane (C₃H₈), carbon monoxide (CO), and other combustible gases. Manufactured by Arduino (Part ID: 80cda26a-6eff-5d35-5f53-73b687528d68), this sensor operates on the principle of resistive change in the presence of target gases. It is widely used in safety systems, environmental monitoring, and industrial applications due to its high sensitivity and reliability.
The MQ-9 sensor is a versatile and robust device. Below are its key technical details:
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Load Resistance (RL) | Adjustable (typically 10 kΩ) |
Heater Voltage (VH) | 5V ± 0.2V |
Heater Power Consumption | ≤ 350 mW |
Detection Range | 10 ppm to 10,000 ppm (CO) |
Preheat Time | ≥ 24 hours |
Sensitivity | High sensitivity to CO and CH₄ |
Operating Temperature | -20°C to 50°C |
Humidity Range | 5% to 95% RH (non-condensing) |
Dimensions | 32mm x 20mm x 22mm |
The MQ-9 sensor module typically has four pins. Below is the pinout description:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply pin (5V DC) |
2 | GND | Ground pin |
3 | AOUT | Analog output pin (provides gas concentration as a voltage) |
4 | DOUT | Digital output pin (high/low signal based on threshold) |
Below is an example of how to connect the MQ-9 sensor to an Arduino UNO and read analog values:
// MQ-9 Gas Sensor Example Code
// Reads analog values from the sensor and prints them to the Serial Monitor.
const int MQ9_AOUT = A0; // Analog output pin connected to A0 on Arduino
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(MQ9_AOUT, INPUT); // Set MQ-9 analog pin as input
}
void loop() {
int gasValue = analogRead(MQ9_AOUT); // Read analog value from MQ-9
Serial.print("Gas Concentration (Analog Value): ");
Serial.println(gasValue); // Print the gas concentration value
delay(1000); // Wait for 1 second before the next reading
}
Issue | Solution |
---|---|
No output from the sensor | Check the power supply connections and ensure the sensor is receiving 5V DC. |
Unstable or fluctuating readings | Allow the sensor to preheat for at least 24 hours before taking measurements. |
Incorrect digital output threshold | Adjust the potentiometer to set the desired threshold level. |
Sensor not detecting gas | Verify the gas concentration is within the sensor's detection range. |
High power consumption | Ensure the heater voltage is stable and within the specified range (5V ± 0.2V). |
Can the MQ-9 detect multiple gases simultaneously?
How do I calibrate the MQ-9 sensor?
What is the lifespan of the MQ-9 sensor?
Can the MQ-9 be used outdoors?
By following this documentation, users can effectively integrate the MQ-9 gas sensor into their projects and ensure reliable performance.