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

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

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

MQ-135 Gas Sensor Documentation

1. Introduction

The MQ-135 is a versatile gas sensor manufactured by AZ-Delivery, designed to detect a wide range of gases, including ammonia, nitrogen, alcohol, benzene, smoke, and carbon dioxide. This sensor is commonly used in air quality control systems to monitor and ensure safe environmental conditions.

Common Applications and Use Cases

2. Technical Specifications

Key Technical Details

Parameter Value
Operating Voltage 5V DC
Load Resistance 10kΩ (typical)
Heating Resistance 33Ω ± 5%
Heating Power ≤ 800mW
Sensitivity Range 10 - 1000 ppm (NH3, Alcohol, Benzene)
Preheat Time ≥ 24 hours
Response Time ≤ 10 seconds
Recovery Time ≤ 30 seconds
Operating Temperature -20°C to 50°C
Humidity Range 20% - 90% RH
Dimensions 32mm x 20mm x 22mm

Pin Configuration and Descriptions

Pin Name Description
1 VCC Power supply (5V)
2 GND Ground
3 DOUT Digital output
4 AOUT Analog output

3. Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power supply and the GND pin to the ground.
  2. Analog Output: Connect the AOUT pin to an analog input pin on your microcontroller (e.g., Arduino UNO) to read the sensor's analog signal.
  3. Digital Output: Connect the DOUT pin to a digital input pin on your microcontroller if you want to use the sensor's digital output.

Important Considerations and Best Practices

Sample Arduino Code

// MQ-135 Gas Sensor with Arduino UNO
// Connect VCC to 5V, GND to GND, AOUT to A0

const int analogPin = A0; // Analog input pin for MQ-135
int sensorValue = 0;      // Variable to store the sensor value

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 bps
}

void loop() {
  sensorValue = analogRead(analogPin); // Read the analog value from the sensor
  Serial.print("MQ-135 Sensor Value: ");
  Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
  delay(1000); // Wait for 1 second before taking another reading
}

4. Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Fluctuating Readings

    • Solution: Ensure the sensor is properly connected to the power supply and ground. Check for loose connections and ensure a stable 5V supply.
  2. Slow Response Time

    • Solution: Verify that the sensor has been preheated for at least 24 hours. Ensure the sensor is placed in an environment with adequate airflow.
  3. Inaccurate Readings

    • Solution: Calibrate the sensor in a clean air environment to establish a baseline. Ensure there are no interfering gases or contaminants near the sensor.

FAQs

Q1: How long does the MQ-135 sensor last?

Q2: Can the MQ-135 detect multiple gases simultaneously?

Q3: How do I calibrate the MQ-135 sensor?

Q4: What is the difference between the analog and digital outputs?

By following this documentation, users can effectively integrate the MQ-135 gas sensor into their projects, ensuring accurate and reliable air quality monitoring.

Explore Projects Built with MQ-135

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 MQ-135 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-135 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