Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use MQ-7 Breakout: Examples, Pinouts, and Specs

Image of MQ-7 Breakout
Cirkit Designer LogoDesign with MQ-7 Breakout in Cirkit Designer

Introduction

The MQ-7 Breakout is a specialized sensor module designed for the detection of carbon monoxide (CO) gas concentration in the air. With its high sensitivity to CO, it is an essential component in various applications, including gas leak detection systems, indoor air quality monitoring, and safety systems in both residential and industrial settings.

Explore Projects Built with MQ-7 Breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
Image of AIRMS: A project utilizing MQ-7 Breakout in a practical application
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display
Image of outline robotics: A project utilizing MQ-7 Breakout in a practical application
This circuit is a multi-sensor monitoring system using an ESP32 microcontroller. It integrates various sensors including flame sensors, gas sensors (MQ-2 and MQ-7), a temperature and humidity sensor, and an OLED display for real-time data visualization. Additionally, it includes a relay module for controlling external devices and a GSM module for remote communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Air Quality Monitoring System with MQ Sensors
Image of AIRMS: A project utilizing MQ-7 Breakout in a practical application
This circuit is an air quality monitoring system using an Arduino UNO microcontroller connected to three different gas sensors: MQ-7 for carbon monoxide, MQ131 for ozone, and MQ-135 for general air quality. The Arduino reads analog signals from these sensors and outputs the readings via the serial interface for monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Gas Detection System with LCD Display and SD Card Logging
Image of Gas detector booooot: A project utilizing MQ-7 Breakout in a practical application
This circuit is a gas detection system that uses multiple gas sensors (MQ-7, MQ-135, MQ-4, and MH-Z19B) to measure concentrations of various gases. The Arduino UNO processes the sensor data, displays the readings on a 16x2 I2C LCD screen, and logs the data to a micro SD card. Additionally, a DS3231 RTC module provides timestamping for the logged data.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MQ-7 Breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of AIRMS: A project utilizing MQ-7 Breakout in a practical application
Arduino-Based Air Quality Monitoring System with Multiple Gas Sensors and GSM Module
This circuit is an air quality monitoring system that uses an Arduino UNO to read data from various sensors, including the MQ-7 for CO detection, MQ131 for ozone detection, MQ-135 for general air quality, and a DHT11 for temperature and humidity. The Arduino processes the sensor data and can communicate the results via a SIM800L module for remote monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of outline robotics: A project utilizing MQ-7 Breakout in a practical application
ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display
This circuit is a multi-sensor monitoring system using an ESP32 microcontroller. It integrates various sensors including flame sensors, gas sensors (MQ-2 and MQ-7), a temperature and humidity sensor, and an OLED display for real-time data visualization. Additionally, it includes a relay module for controlling external devices and a GSM module for remote communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AIRMS: A project utilizing MQ-7 Breakout in a practical application
Arduino-Based Air Quality Monitoring System with MQ Sensors
This circuit is an air quality monitoring system using an Arduino UNO microcontroller connected to three different gas sensors: MQ-7 for carbon monoxide, MQ131 for ozone, and MQ-135 for general air quality. The Arduino reads analog signals from these sensors and outputs the readings via the serial interface for monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Gas detector booooot: A project utilizing MQ-7 Breakout in a practical application
Arduino-Based Gas Detection System with LCD Display and SD Card Logging
This circuit is a gas detection system that uses multiple gas sensors (MQ-7, MQ-135, MQ-4, and MH-Z19B) to measure concentrations of various gases. The Arduino UNO processes the sensor data, displays the readings on a 16x2 I2C LCD screen, and logs the data to a micro SD card. Additionally, a DS3231 RTC module provides timestamping for the logged data.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Sensor Type: Tin Dioxide (SnO2) semiconductor
  • Detection Gas: Carbon monoxide (CO)
  • Concentration Range: 20 to 2000 ppm CO
  • Supply Voltage (Vcc): 5V ± 0.1V DC
  • Heater Voltage (VH): 5V (pulse)
  • Load Resistance: Adjustable via onboard potentiometer
  • Preheat Duration: >48 hours
  • Operating Temperature: -10°C to 50°C
  • Humidity Range: 95% RH or less (non-condensing)

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC Power supply (5V)
2 GND Ground
3 DOUT Digital output (TTL logic level)
4 AOUT Analog output (proportional to CO level)

Usage Instructions

Integration with a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power source and the GND pin to the ground.
  2. Analog Output: Connect the AOUT pin to an analog input on your microcontroller to read the CO levels.
  3. Digital Output: The DOUT pin can be connected to a digital input on your microcontroller. It will output a high (5V) or low (0V) signal based on the CO concentration threshold set by the onboard potentiometer.

Important Considerations and Best Practices

  • Calibration: The MQ-7 requires calibration to ensure accurate readings. This should be done in an environment with a known CO concentration.
  • Ventilation: Ensure proper ventilation when testing the sensor to prevent harmful CO accumulation.
  • Temperature and Humidity: Operate the sensor within the specified temperature and humidity range for optimal performance.
  • Safety: As CO is a toxic gas, always follow safety guidelines when working with the sensor.

Example Code for Arduino UNO

// MQ-7 Carbon Monoxide Sensor Example Code
int mq7AnalogPin = A0; // MQ-7 AOUT pin connected to Arduino analog pin A0
int mq7DigitalPin = 2; // MQ-7 DOUT pin connected to Arduino digital pin 2
int sensorValue = 0;   // Variable to store the sensor value

void setup() {
  Serial.begin(9600);          // Initialize serial communication at 9600 baud rate
  pinMode(mq7DigitalPin, INPUT); // Set the digital pin as input
}

void loop() {
  sensorValue = analogRead(mq7AnalogPin); // Read the analog value from sensor
  Serial.print("CO level: ");
  Serial.println(sensorValue); // Print the CO level to the serial monitor
  
  // Check the digital pin for threshold trigger
  if (digitalRead(mq7DigitalPin) == HIGH) {
    // High CO levels - take necessary action
    Serial.println("High CO level detected!");
  }
  delay(1000); // Wait for 1 second before reading again
}

Troubleshooting and FAQs

Common Issues

  • Inaccurate Readings: If the sensor provides inconsistent or inaccurate readings, ensure that it has been properly calibrated and that it is operating within the recommended temperature and humidity range.
  • No Output Signal: Check the power supply connections and ensure that the sensor is receiving the correct voltage.
  • Sensor Not Responding: If the sensor does not respond, it may need more time to preheat. Allow it to operate for at least 48 hours before use.

FAQs

Q: How long does the MQ-7 sensor last? A: The lifespan of the MQ-7 sensor can vary based on usage, but it typically lasts for several years with proper calibration and maintenance.

Q: Can the MQ-7 sensor detect other gases? A: While the MQ-7 is specifically designed for CO detection, it may show some sensitivity to other gases. However, it should not be used as a primary sensor for detecting gases other than carbon monoxide.

Q: Is the MQ-7 sensor suitable for outdoor use? A: The MQ-7 can be used outdoors, but it should be protected from extreme weather conditions and should not be exposed to water or high humidity levels.

For further assistance or technical support, please contact the manufacturer or visit the official product forum.