Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use MQ-136: Examples, Pinouts, and Specs

Image of MQ-136Design with MQ-136 in Cirkit Designer

Introduction

The MQ-136 Gas Sensor Module by DIYmore is an electronic device designed to detect the presence of hydrogen sulfide (H2S) in the air. This sensor is widely used in industrial applications, environmental monitoring systems, and by hobbyists for safety and air quality projects. The MQ-136 sensor is sensitive to H2S gas concentrations and can be used to alert users to hazardous conditions.

Explore Projects Built with MQ-136

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 Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors: A project utilizing MQ-136 in a practical application
Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors

This circuit is designed to monitor various gas levels and air quality using a set of sensors (MQ-136, MQ-6, MQ-137, MQ-7, and PMS5003) interfaced with an ESP32 microcontroller. The ESP32 collects sensor data and can control a relay module potentially for activating systems like fans or alarms based on the sensor readings. Additional components include a DHT22 for temperature and humidity readings, a power supply with a step-down converter, and safety features like resettable fuses and an LVD (Low Voltage Disconnect) to protect the battery and circuit.

Open Project in Cirkit Designer
Image of Arduino UNO Based Air Quality Monitoring and GSM Notification System: A project utilizing MQ-136 in a practical application
Arduino UNO Based Air Quality Monitoring and GSM Notification System

This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.

Open Project in Cirkit Designer
Image of Arduino UNO Based Gas Detection and GSM Alert System: A project utilizing MQ-136 in a practical application
Arduino UNO Based Gas Detection and GSM Alert System

This circuit is designed to monitor air quality using an MQ135 sensor and provide visual and audible alerts. It features an Arduino UNO microcontroller interfaced with a GSM module for communication, an I2C LCD for display, and LEDs and a buzzer for local alerts. The Arduino runs embedded code to read the MQ135 sensor data, display air quality index (AQI) on the LCD, and trigger SMS and call alerts via the GSM module when gas is detected above a certain threshold.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Key Technical Details

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 gas 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. Signal Output: The MQ-136 provides two types of outputs:
    • Digital Output (DOUT): Connect to a digital input pin on a microcontroller. The sensor outputs a low level when the H2S concentration reaches or exceeds a certain threshold, which can be adjusted using the onboard potentiometer.
    • Analog Output (AOUT): Connect to an analog input pin on a microcontroller to get a variable voltage that is proportional to the H2S concentration.

Important Considerations and Best Practices

Example Code for Arduino UNO

// MQ-136 Gas Sensor Example Code for Arduino UNO

int analogPin = A0; // Analog input pin connected to AOUT on the sensor
int digitalPin = 2; // Digital input pin connected to DOUT on the sensor
int sensorValue = 0; // Variable to store the sensor value

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

void loop() {
  sensorValue = analogRead(analogPin); // Read the analog value from sensor
  Serial.print("Analog Value: ");
  Serial.println(sensorValue); // Print the analog value

  if (digitalRead(digitalPin) == LOW) { // Check if the digital output is LOW
    Serial.println("H2S threshold exceeded!");
  }
  delay(1000); // Wait for 1 second before the next loop
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips

FAQs

Q: How often should I calibrate the MQ-136 sensor? A: Calibration frequency depends on the usage and the environment. It is recommended to calibrate the sensor before initial use and periodically during its lifetime.

Q: Can the MQ-136 sensor detect other gases besides H2S? A: The MQ-136 is specifically designed to detect hydrogen sulfide. While it may show some response to other gases, it is not recommended to use it for detecting gases other than H2S.

Q: What is the expected lifespan of the MQ-136 sensor? A: The lifespan of the sensor can vary based on usage and environmental conditions. Typically, these sensors can last for several months to a couple of years with proper maintenance and calibration.