LabWired The easy way to build hardware
passive, analog or power part

MQ-6 Gas Sensor

The MQ-6 Gas Sensor is a passive, analog or power part in the LabWired part catalog. Its catalog type is mq-6. It connects to the MCU over Analog (ADC). The catalog gives a supply range of 5 V. It has 4 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

Key facts

CategoryPassive, analog and power parts
Catalog typemq-6
InterfaceAnalog (ADC)
Supply range5 V
Pins4
DatasheetHanwei MQ-6 gas sensor technical data

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

MQ-6 Gas Sensor pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
AOUT Passive —
DOUT Output GPIO

How to simulate the MQ-6 Gas Sensor in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the MQ-6 Gas Sensor (catalog type mq-6).
  3. Connect VCC and GND to the supply and ground of the board. Use a supply inside the catalog range of 5 V.
  4. Connect DOUT to a free GPIO pin.
  5. Connect AOUT as your circuit needs.
  6. Run the firmware. It reads the output of the part with the ADC of the MCU.

Related Passive, analog and power parts

All Passive, analog and power parts · All parts

Modelled from Hanwei MQ-6 gas sensor technical data.