M5Stack MQ-5 Gas Unit (STM32G030)
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
M5Stack MQ-5 Gas Unit (STM32G030)
Description
Unit MQ is a combustible gas detection unit based on the MQ-5 semiconductor gas sensor and an STM32G030F6P6 MCU. It is designed for detecting combustible gases such as LPG and methane in the surrounding environment.
The module communicates with host devices through I2C and can provide internal reference voltage, sensor voltage, 12-bit and 8-bit ADC raw values, firmware version, thermistor temperature, and related gas sensor data.
Unit MQ supports continuous heating mode and intermittent heating mode. Continuous heating helps the MQ-5 sensor reach operating temperature faster, while intermittent heating allows configurable heating cycles to optimize device power consumption.
Notes
Recommended preheat time in continuous heating mode is 20 seconds before reading gas detection data.
Features
- MQ-5 gas sensing: detects combustible gases such as LPG and methane.
- Built-in MCU: STM32G030F6P6 32-bit ARM Cortex-M0+ controller handles sensor data acquisition.
- I2C interface: Unit MQ communicates over I2C at address 0x11, with configurable address support.
- Dual heating modes: supports continuous heating and intermittent heating with customizable periods.
- Readable sensor data: provides internal reference voltage, sensor voltage, ADC raw values, firmware version, and thermistor temperature.
- Standard MQ sensor interface: compatible with multiple MQ sensors such as MQ-2, MQ-3, MQ-7, and MQ-135.
- Development support: Arduino tutorial, driver library, UiFlow2 documentation, Home Assistant integration, internal firmware, and I2C protocol resources are available.
Specifications
| MCU | STM32G030F6P6 @ 32-bit ARM Cortex-M0+ processor |
| Sensor | MQ-5 combustible gas sensor |
| Communication Interface | I2C @0x11, address configurable |
| Operating Current | Off mode: DC 5.02V @ 6.88mA; Continuous heating mode: DC 5.05V @ 188.89mA |
| Detected Gases | LPG, methane |
| Detection Range | 300-10000ppm for methane and propane |
| Recommended Preheat Time | 20s in continuous heating mode |
| Product Size | 64.0 x 24.0 x 25.0mm |
| Product Weight | 19.3g |
| Package Size | 138.0 x 93.0 x 25.0mm |
| Gross Weight | 24.7g |
Applications
- Smart home combustible gas detection projects.
- Air quality and environmental monitoring around LPG or methane sources.
- Industrial safety monitoring where combustible gas presence needs to be sensed.
- Home Assistant sensor integrations using Unit MQ gas sensor readings.
- Arduino or UiFlow2 prototypes that need MQ-5 sensor voltage, ADC, and temperature data.
Product List
- 1 x Unit MQ
- 1 x HY2.0-4P Grove Cable (20cm)
Other Content
PinMap
| HY2.0-4P Black | GND |
| HY2.0-4P Red | 5V |
| HY2.0-4P Yellow | SDA |
| HY2.0-4P White | SCL |
The schematic, model size PDF, structure files, MQ-5 datasheet, Arduino driver, internal firmware, and I2C protocol PDF are provided in Resources for hardware integration and software development.
Unit MQ is suitable for monitoring workflows where gas detection status, raw ADC values, thermistor temperature, and configurable heating behavior need to be read by a controller.
Resources
- Unit MQ product document
- Unit MQ schematic PDF
- Unit MQ model size PDF
- Mechanical structure files for the MQ-5 gas unit
- MQ-5 gas sensor datasheet
- Arduino tutorial for MQ gas detection
- Arduino driver library for MQ gas sensor unit
- UiFlow2 documentation for MQ gas sensor unit
- Home Assistant integration for MQ gas sensor readings
- Internal firmware repository for MQ gas sensor unit
- I2C protocol PDF for MQ gas sensor unit
- Unit MQ documentation PDF
FAQ
What gases can Unit MQ detect?
Unit MQ is designed to detect combustible gases such as LPG and methane with its MQ-5 sensor.
Which interface does it use?
The module uses I2C communication at address 0x11, and the address is configurable.
What data can the host read?
A host can read internal reference voltage, sensor voltage, 12-bit and 8-bit ADC raw values, firmware version, and thermistor temperature.
What is the recommended preheat time?
In continuous heating mode, the recommended preheat time is 20 seconds.
Which development options are available?
Arduino tutorial, driver library, UiFlow2 documentation, Home Assistant integration, internal firmware, and I2C protocol resources are available for Unit MQ.











