Stufin
Home Quick Cart Profile

MQ-7 Gas Sensor Module For Carbon Monoxide Detector Module

Buy Now

Component Name

MQ-7 Gas Sensor Module For Carbon Monoxide Detector Module

Overview

The MQ-7 Gas Sensor Module is a highly sensitive and reliable detection module designed to detect Carbon Monoxide (CO) gas concentrations in the air. This module is specifically designed for use in CO detector systems, HVAC systems, and industrial control applications. The MQ-7 sensor is a metal oxide semiconductor (MOS) type gas sensor, which provides accurate and fast response to CO gas concentrations.

Functionality

The MQ-7 Gas Sensor Module is designed to detect Carbon Monoxide gas concentrations in the air and provide an analog output signal proportional to the CO concentration. The module operates on the principle of catalytic combustion, where the CO gas reacts with the sensing material to produce a change in resistance. This change in resistance is then converted into an analog output signal, which can be used to trigger alarms, display CO concentrations, or control ventilation systems.

Key Features

  • High Sensitivity: The MQ-7 sensor has high sensitivity to Carbon Monoxide gas concentrations, allowing for accurate detection of even small changes in CO levels.
  • Fast Response Time: The module responds quickly to changes in CO concentrations, ensuring timely detection and response to potentially hazardous situations.
  • Stable Output: The analog output signal is stable and linear, making it easy to interface with microcontrollers, analog-to-digital converters, and other electronic components.
  • Low Power Consumption: The module operates at a low power consumption of 5V DC, making it suitable for battery-powered devices and energy-efficient systems.
  • Compact Design: The module is designed to be compact and lightweight, making it easy to integrate into a wide range of applications.
  • Easy Interface: The module has a simple analog output interface, making it easy to connect to microcontrollers, development boards, and other electronic devices.
  • Operating Temperature Range: The module operates over a wide temperature range of -10C to 50C, making it suitable for use in a variety of environments.

Sensor Type

Metal Oxide Semiconductor (MOS)

Detection Range

10-1000 ppm CO

Sensitivity

0.1-10 ppm/100mV

Operating Voltage

5V DC

Operating Current

<20mA

Output Signal

Analog voltage (0-5V)

Response Time

<10 seconds

Operating Temperature Range

-10C to 50C

Storage Temperature Range

-20C to 70C

Humidity Range

5-95% RH (non-condensing)

Applications

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

Carbon Monoxide detectors

HVAC systems

Industrial control applications

Air quality monitoring systems

Security systems

Automotive applications

Medical devices

Note

The MQ-7 Gas Sensor Module should be used in conjunction with a suitable CO detection circuit and a microcontroller or other electronic device to provide accurate CO concentration measurements and alarm functionality.

Pin Configuration

  • MQ-7 Gas Sensor Module For Carbon Monoxide Detector Module Pinout
  • The MQ-7 Gas Sensor Module is a sensitive detector for carbon monoxide (CO) gas. It consists of a sensing element and a signal processing circuit. The module has 6 pins, which are described below:
  • Pinout:
  • VCC (Pin 1):
  • + Function: Power Supply
  • + Description: This pin is used to supply power to the module. It should be connected to a voltage source between 5V and 24V.
  • + Note: The recommended operating voltage is 5V.
  • GND (Pin 2):
  • + Function: Ground
  • + Description: This pin is the ground connection for the module. It should be connected to the ground of the power supply and the microcontroller.
  • DOUT (Pin 3):
  • + Function: Digital Output
  • + Description: This pin outputs a digital signal indicating the presence of CO gas. The output is high (VCC) when the CO concentration is above the detection threshold, and low (GND) when it is below the threshold.
  • AOUT (Pin 4):
  • + Function: Analog Output
  • + Description: This pin outputs an analog signal proportional to the CO concentration. The output voltage increases as the CO concentration increases.
  • HEAT (Pin 5):
  • + Function: Heating Element
  • + Description: This pin is connected to the heating element of the sensor. It requires a voltage source to heat the sensor and enable it to detect CO gas.
  • GND (Pin 6):
  • + Function: Ground
  • + Description: This pin is another ground connection for the module. It should be connected to the ground of the power supply and the microcontroller.
  • Connection Structure:
  • To connect the MQ-7 Gas Sensor Module to a microcontroller or other devices, follow these steps:
  • 1. Power Supply Connection:
  • Connect VCC (Pin 1) to a voltage source (5V recommended) using a breadboard or PCB.
  • Connect GND (Pin 2) to the ground of the power supply and the microcontroller.
  • 2. Heating Element Connection:
  • Connect HEAT (Pin 5) to a voltage source (5V recommended) using a breadboard or PCB.
  • Connect GND (Pin 6) to the ground of the power supply and the microcontroller.
  • 3. Output Connection:
  • Connect DOUT (Pin 3) to a digital input pin of the microcontroller.
  • Connect AOUT (Pin 4) to an analog input pin of the microcontroller (if required).
  • Note: Before connecting the module to a microcontroller, ensure that the power supply voltage and current meet the module's requirements. Also, follow proper soldering and wiring techniques to avoid damaging the module.
  • By following this pinout and connection structure, you can successfully integrate the MQ-7 Gas Sensor Module into your IoT project for carbon monoxide detection.

Code Examples

MQ-7 Gas Sensor Module for Carbon Monoxide Detector Module
Overview
The MQ-7 Gas Sensor Module is a highly sensitive and accurate sensor for detecting carbon monoxide (CO) concentrations in the air. This module is often used in gas detection systems, air quality monitoring, and safety alarm systems. The sensor module outputs an analog signal proportional to the CO concentration, making it easy to integrate with microcontrollers and other electronic devices.
Pinouts and Connections
The MQ-7 Gas Sensor Module typically has the following pinouts:
VCC: Power supply pin (5V recommended)
 GND: Ground pin
 OUT: Analog output pin
Characteristics and Specifications
Operating voltage: 5V
 Operating temperature: -10C to 50C
 Sensitivity: 1 ppm to 1000 ppm CO concentration
 Output signal: Analog voltage (0-5V)
 Response time: 10-30 seconds
Code Examples
### Example 1: Basic Analog Read with Arduino
This example demonstrates how to read the analog output of the MQ-7 Gas Sensor Module using an Arduino board.
```c++
const int sensorPin = A0;  // Analog input pin for MQ-7 sensor
const int ledPin = 13;    // Digital output pin for LED indicator
void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  float coConcentration = sensorValue  (5.0 / 1023.0); // Convert to CO concentration (ppm)
  Serial.print("CO Concentration: ");
  Serial.print(coConcentration);
  Serial.println(" ppm");
if (coConcentration > 50) {
    digitalWrite(ledPin, HIGH); // Turn on LED if CO concentration is above 50 ppm
  } else {
    digitalWrite(ledPin, LOW); // Turn off LED if CO concentration is below 50 ppm
  }
  delay(1000);
}
```
### Example 2: Detecting CO Concentration Threshold with Raspberry Pi (Python)
This example demonstrates how to use the MQ-7 Gas Sensor Module with a Raspberry Pi to detect when the CO concentration exceeds a certain threshold.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
sensorPin = 17  # Analog input pin for MQ-7 sensor
ledPin = 23    # Digital output pin for LED indicator
# Set up the LED pin as an output
GPIO.setup(ledPin, GPIO.OUT)
while True:
    # Read the analog output of the MQ-7 sensor
    sensorValue = GPIO.input(sensorPin)
    coConcentration = sensorValue  (5.0 / 1023.0)  # Convert to CO concentration (ppm)
if coConcentration > 100:  # Set the threshold to 100 ppm
        GPIO.output(ledPin, GPIO.HIGH)  # Turn on the LED if CO concentration is above threshold
    else:
        GPIO.output(ledPin, GPIO.LOW)  # Turn off the LED if CO concentration is below threshold
print("CO Concentration: {:.2f} ppm".format(coConcentration))
    time.sleep(1)
```
Note: These code examples are for illustration purposes only and may require modifications to suit specific use cases and hardware configurations. Always ensure proper safety precautions when working with gas sensors and electronic components.