Stufin
Home Quick Cart Profile

MQ-6 Gas Sensor Module For Propane, Butane, And LPG Detector Module

Buy Now on Stufin

Component Name

MQ-6 Gas Sensor Module For Propane, Butane, And LPG Detector Module

Overview

The MQ-6 Gas Sensor Module is a highly sensitive and reliable gas detection module designed to detect propane, butane, and LPG (Liquefied Petroleum Gas) in the air. This module is widely used in various applications, including industrial, commercial, and residential settings, to detect and alert users of potential gas leaks.

Functionality

The MQ-6 Gas Sensor Module utilizes a detection principle based on the catalytic combustion method, which involves the combustion of gases on a heated surface. When a gas molecule comes into contact with the sensor, it reacts with the catalyst, resulting in a change in the electrical resistance of the sensor. This change is then measured and amplified by the onboard circuitry to produce a corresponding analog output signal.

Key Features

### Sensor Characteristics

High Sensitivity

The MQ-6 Gas Sensor Module has a high sensitivity to propane, butane, and LPG gases, allowing it to detect even slight changes in gas concentrations.

Fast Response Time

The module responds quickly to changes in gas concentrations, ensuring timely detection and alerting.

Stable Operation

The sensor operates stably over a wide range of temperatures and humidity levels, ensuring reliable results in various environments.

### Module Components

Gas Sensor Element

A high-quality, metal oxide semiconductor-based sensor element that detects gas molecules.

Amplifier Circuit

An onboard amplifier circuit that amplifies the sensor signal to produce a robust output.

Power Supply

A built-in voltage regulator ensures a stable power supply to the sensor and amplifier circuit.

Output Signal

An analog output signal (0-5V) that corresponds to the detected gas concentration.

### Operating Parameters

Supply Voltage

5V (typical)

Supply Current

150mA (typical)

Operating Temperature

-20C to 50C

Operating Humidity

30% to 90%

Detection Range

300-10000 ppm for propane, butane, and LPG

### Interface and Dimensions

Interface

5-pin header connector for easy connection to microcontrollers or other devices

Dimensions

24.5mm x 24.5mm x 12.5mm (L x W x H)

### Package Includes

MQ-6 Gas Sensor Module

5-pin header connector

Mounting screws and adhesive pad (optional)

Applications

The MQ-6 Gas Sensor Module is suitable for a wide range of applications, including

Industrial gas detection systems

Residential and commercial gas leak detection systems

Portable gas detectors

HVAC and ventilation system monitoring

Laboratory and research settings

Note

When using the MQ-6 Gas Sensor Module, ensure proper calibration and installation to ensure accurate and reliable results. It is also essential to follow safety guidelines when working with gas detection systems to avoid potential risks.

Pin Configuration

  • MQ-6 Gas Sensor Module Documentation
  • Pinout Explanation:
  • The MQ-6 Gas Sensor Module has 6 pins, each with a specific function. Below is a detailed explanation of each pin:
  • 1. VCC (Power Supply Pin)
  • Function: Supplies power to the sensor module
  • Voltage: 5V (recommended), but can operate between 4.9V to 5.1V
  • Connection: Connect to a 5V power source (e.g., Arduino's 5V pin or a dedicated 5V power supply)
  • 2. GND (Ground Pin)
  • Function: Provides a ground connection for the sensor module
  • Connection: Connect to a common ground point (e.g., Arduino's GND pin or a dedicated ground connection)
  • 3. DOUT (Digital Output Pin)
  • Function: Provides a digital output signal (HIGH or LOW) indicating the presence of gas
  • Logic Level: TTL (0V to 5V)
  • Connection: Connect to a digital input pin on a microcontroller (e.g., Arduino's digital pins) to read the output signal
  • 4. AOUT (Analog Output Pin)
  • Function: Provides an analog output signal proportional to the gas concentration
  • Output Range: 0V to 5V
  • Connection: Connect to an analog input pin on a microcontroller (e.g., Arduino's analog pins) to read the output signal
  • 5. HEATER (Heater Pin)
  • Function: Supplies power to the internal heating element, which is necessary for the sensor to operate
  • Voltage: 5V (recommended), but can operate between 4.9V to 5.1V
  • Connection: Connect to a 5V power source (e.g., Arduino's 5V pin or a dedicated 5V power supply)
  • 6. NC (No Connection Pin)
  • Function: Not used, leave unconnected
  • Connecting the Pins:
  • To connect the MQ-6 Gas Sensor Module to a microcontroller (e.g., Arduino), follow these steps:
  • 1. Power Supply Connections:
  • Connect VCC to a 5V power source (e.g., Arduino's 5V pin).
  • Connect GND to a common ground point (e.g., Arduino's GND pin).
  • Connect HEATER to a 5V power source (e.g., Arduino's 5V pin).
  • 2. Digital Output Connection:
  • Connect DOUT to a digital input pin on the microcontroller (e.g., Arduino's digital pins).
  • 3. Analog Output Connection:
  • Connect AOUT to an analog input pin on the microcontroller (e.g., Arduino's analog pins).
  • 4. Leave NC Unconnected:
  • Do not connect the NC pin to anything.
  • Example Connection Diagram:
  • Here's an example connection diagram using an Arduino Uno:
  • ```
  • MQ-6 Gas Sensor Module | Arduino Uno
  • ------------------------- ----------------
  • VCC | 5V
  • GND | GND
  • DOUT | Digital Pin (e.g., D2)
  • AOUT | Analog Pin (e.g., A0)
  • HEATER | 5V
  • NC | Not Connected
  • ```
  • Important Notes:
  • Make sure to use a 5V power source for the VCC and HEATER pins.
  • The sensor module requires a few minutes to warm up before it can accurately detect gas concentrations.
  • The analog output signal (AOUT) is proportional to the gas concentration, but may require calibration and scaling to obtain meaningful readings.
  • Handle the sensor module with care, as it can be damaged by excessive heat, moisture, or mechanical stress.

Code Examples

MQ-6 Gas Sensor Module Documentation
Overview
The MQ-6 Gas Sensor Module is a highly sensitive and accurate sensor designed to detect propane, butane, and LPG gases. It is widely used in various applications, including industrial, commercial, and residential gas detection systems. This module is particularly useful in detecting gas leaks, ensuring safety, and preventing potential hazards.
Technical Specifications
Operating Voltage: 5V
 Operating Current: 150mA
 Sensitivity: 30-1000 ppm (parts per million)
 Response Time: <10 seconds
 Accuracy: 10%
 Dimensions: 32mm x 22mm x 17mm
Pinout
The MQ-6 Gas Sensor Module has four pins:
VCC: Power supply (5V)
 GND: Ground
 DOUT: Digital output signal
 AOUT: Analog output signal
Example 1: Basic Gas Detection with Arduino
In this example, we will use the MQ-6 Gas Sensor Module with an Arduino board to detect propane gas and display the concentration on the serial monitor.
Hardware Requirements
Arduino Board (e.g., Arduino Uno)
 MQ-6 Gas Sensor Module
 Breadboard and jumper wires
Software Requirements
Arduino IDE
Code
```c
const int gasSensorPin = A0;  // Analog input pin for MQ-6
void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(gasSensorPin);
  float gasConcentration = sensorValue  (5.0 / 1023.0);  // Convert analog value to voltage
  gasConcentration = gasConcentration  1000;  // Convert voltage to ppm (assuming 5V = 1000 ppm)
if (gasConcentration > 300) {  // Adjust threshold value as needed
    Serial.println("Propane gas detected!");
    Serial.print("Concentration: ");
    Serial.print(gasConcentration);
    Serial.println(" ppm");
  } else {
    Serial.println("No propane gas detected.");
  }
delay(1000);  // Take readings every 1 second
}
```
Example 2: Gas Detection with Raspberry Pi using Python
In this example, we will use the MQ-6 Gas Sensor Module with a Raspberry Pi to detect LPG gas and trigger an alarm when the concentration exceeds a certain threshold.
Hardware Requirements
Raspberry Pi (e.g., Raspberry Pi 4)
 MQ-6 Gas Sensor Module
 Breadboard and jumper wires
 Buzzer or alarm module (optional)
Software Requirements
Python 3.x
 RPi.GPIO library
Code
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define pin connections
gasSensorPin = 17  # GPIO 17
buzzerPin = 23  # GPIO 23 (optional)
# Set up GPIO pins
GPIO.setup(gasSensorPin, GPIO.IN)
GPIO.setup(buzzerPin, GPIO.OUT, initial=GPIO.LOW)
while True:
    sensorValue = GPIO.input(gasSensorPin)
    if sensorValue:
        print("LPG gas detected!")
        # Trigger alarm (if connected)
        GPIO.output(buzzerPin, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(buzzerPin, GPIO.LOW)
    else:
        print("No LPG gas detected.")
time.sleep(1)  # Take readings every 1 second
```
Note: In both examples, the sensor's analog output is converted to a digital value, which is then used to determine the gas concentration. The threshold values can be adjusted according to the specific application requirements.