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

How to Use MQ137: Examples, Pinouts, and Specs

Image of MQ137Design with MQ137 in Cirkit Designer

Introduction

The MQ137 is a gas sensor manufactured by MQ Sensors, designed to detect ammonia (NH3) concentrations in the air. It operates on the principle of resistive change, where the sensor's resistance varies in response to the presence of ammonia gas. The MQ137 provides an analog output that can be easily interfaced with microcontrollers and other electronic systems.

Explore Projects Built with MQ137

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 Arduino UNO Based Air Quality Monitoring and GSM Notification System: A project utilizing MQ137 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 Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors: A project utilizing MQ137 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

Common Applications and Use Cases

Technical Specifications

The MQ137 sensor is designed for reliable and accurate ammonia gas detection. Below are its key technical details:

Key Technical Details

Parameter Value
Manufacturer MQ Sensors
Part ID MQ137
Target Gas Ammonia (NH3)
Operating Voltage 5V DC
Load Resistance (RL) Adjustable (typically 10 kΩ)
Heater Voltage (VH) 5V ± 0.2V
Heater Power Consumption ≤ 800 mW
Detection Range 5 ppm to 500 ppm
Preheat Time ≥ 24 hours (for best accuracy)
Analog Output Voltage proportional to NH3
Operating Temperature -20°C to 50°C
Humidity Range ≤ 95% RH
Dimensions 32 mm x 20 mm x 22 mm

Pin Configuration and Descriptions

The MQ137 sensor module typically comes with a 4-pin interface. Below is the pin configuration:

Pin Name Description
VCC Power supply pin (5V DC)
GND Ground pin
AOUT Analog output pin (provides NH3 concentration)
DOUT Digital output pin (threshold-based signal)

Usage Instructions

The MQ137 sensor is straightforward to use in a circuit. Follow the steps below to integrate it into your project:

How to Use the MQ137 in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5V DC power supply and the GND pin to ground.
  2. Connect the Output:
    • Use the AOUT pin to read the analog signal corresponding to ammonia concentration.
    • Optionally, use the DOUT pin for a digital signal if a threshold is set using the onboard potentiometer.
  3. Preheat the Sensor: Allow the sensor to preheat for at least 24 hours before taking accurate measurements. This stabilizes the internal heater and sensing element.
  4. Read the Output:
    • For analog readings, connect the AOUT pin to an analog input pin on a microcontroller (e.g., Arduino).
    • For digital readings, connect the DOUT pin to a digital input pin.

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example of how to interface the MQ137 with an Arduino UNO to read analog values:

// MQ137 Gas Sensor Example Code
// This code reads the analog output of the MQ137 sensor and prints the value
// to the Serial Monitor. Ensure the sensor is preheated for accurate readings.

const int MQ137_AOUT = A0; // Connect AOUT pin of MQ137 to Arduino A0 pin

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

void loop() {
  int sensorValue = analogRead(MQ137_AOUT); // Read analog value from MQ137
  float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (0-5V)
  
  // Print the raw sensor value and voltage to the Serial Monitor
  Serial.print("Sensor Value: ");
  Serial.print(sensorValue);
  Serial.print(" | Voltage: ");
  Serial.print(voltage);
  Serial.println(" V");
  
  delay(1000); // Wait for 1 second before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Cause: Insufficient preheat time.
    • Solution: Ensure the sensor is preheated for at least 24 hours before use.
  2. Fluctuating Readings:

    • Cause: Unstable power supply or environmental interference.
    • Solution: Use a stable 5V DC power source and avoid placing the sensor near strong electromagnetic fields.
  3. Sensor Saturation:

    • Cause: Exposure to high ammonia concentrations for extended periods.
    • Solution: Allow the sensor to recover in clean air before reuse.
  4. No Digital Output:

    • Cause: Incorrect threshold setting on the potentiometer.
    • Solution: Adjust the potentiometer to set the desired threshold level.

FAQs

Q1: Can the MQ137 detect gases other than ammonia?
A1: While the MQ137 is optimized for ammonia detection, it may respond to other gases. However, its sensitivity and accuracy for non-ammonia gases are not guaranteed.

Q2: How do I calibrate the MQ137 sensor?
A2: To calibrate the sensor, expose it to a known concentration of ammonia gas and adjust the load resistance (RL) or use software calibration to map the analog output to the gas concentration.

Q3: Can I use the MQ137 with a 3.3V microcontroller?
A3: The MQ137 requires a 5V power supply for its heater. However, you can use a voltage divider or level shifter to interface its output with a 3.3V microcontroller.

Q4: How long does the MQ137 sensor last?
A4: The sensor's lifespan depends on usage and environmental conditions. Under normal conditions, it can last several years with proper care and maintenance.