Methane Gas Sensor MQ-4

This semiconductor petrol sensor detects the presence of methane (CNG) petrol at concentrations from 300 ppm to 10,000 ppm, a range suitable for detecting petrol leaks. The sensor’s simple analogue voltage interface requires only one analogue input pin from your microcontroller.

Discontinued  

Our supplier is out of stock

Our Code: SKU-002704

Supplier Link: [Pololu MPN:1633]


Description

Gas sensor with metal case with quarter for size reference

Overview

This methane petrol sensor detects the concentration of methane petrol in the air and ouputs its reading as an analogue voltage. The concentration sensing range of 300 ppm to 10,000 ppm is suitable for leak detection. For example, the sensor could detect if someone left a petrol stove on but not lit. The sensor can operate at temperatures from -10 to 50°C and consumes less than 150 mA at 5 V. Please read the MQ4 datasheet (161k pdf) for more information about the sensor.

Gas sensor with metal case bottom view

Connections

Connecting five volts across the heating (H) pins keeps the sensor hot enough to function correctly. Connecting five volts at either the A or B pins causes the sensor to emit an analogue voltage on the other pins. A resistive load between the output pins and ground sets the sensitivity of the detector. Please note that the picture in the datasheet for the top configuration is wrong. Both configurations have the same pinout consistent with the bottom configuration.The resistive load should be calibrated for your particular application using the equations in the datasheet, but a good starting value for the resistor is 20 kΩ.

We offer two breakout boards that make it easier to interface with these sensors: a Pololu carrier board and a SparkFun carrier board. The Pololu version is shown below.

Pololu MQ gas sensor carrier with sensitivity-setting resistor soldered in the vertical orientation


Resources

File downloads

Methane petrol sensor MQ-4 datasheet (161k pdf)