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

How to Use MQ-138 SENSOR FORMALDEHYDE GAS V2: Examples, Pinouts, and Specs

Image of MQ-138 SENSOR FORMALDEHYDE GAS V2
Cirkit Designer LogoDesign with MQ-138 SENSOR FORMALDEHYDE GAS V2 in Cirkit Designer

Introduction

The MQ-138 Sensor Formaldehyde Gas V2 is an electrochemical gas sensor designed for the detection of formaldehyde (HCHO) in the air. It is widely used in various applications such as air quality monitoring systems, environmental monitoring, and indoor air quality testing. The sensor is appreciated for its sensitivity and reliability in detecting even low levels of formaldehyde, which is a common volatile organic compound (VOC) with potential health risks.

Explore Projects Built with MQ-138 SENSOR FORMALDEHYDE GAS V2

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered MQ-2 Gas Sensor with Alert Buzzer
Image of gas detect: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
This is a simple gas detection alarm system that uses an MQ-2 sensor to detect gas presence and sound a buzzer when gas is detected. It is powered by a rechargeable 18650 battery, with a TP4056 module for battery management and charging. A rocker switch is used to control the power to the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered Environmental Monitoring Station with ESP32 and Gas Sensors
Image of AIR QUALITY MONITORING: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Multi-Gas Detection System with Arduino and MQ Sensors
Image of Centrala calitate aer: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
This circuit is designed to monitor various gases using a series of MQ gas sensors (MQ-2, MQ-3, MQ-4, MQ-5, MQ-6, MQ-7, MQ-8, MQ-9, and MQ-135), each providing digital outputs to an Arduino UNO microcontroller. The Arduino is also connected to a piezo speaker for audible alerts and multiple LEDs with resistors, likely for visual status indicators. An Adafruit TCA9548A I2C multiplexer is included, suggesting the potential for I2C sensor expansion or managing multiple I2C devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Gas Detection Alarm with MQ2 Sensor and Buzzer
Image of smoke detection: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
This circuit is a gas detection alarm system that uses an MQ2 gas sensor to detect gas levels. When gas is detected, the sensor outputs a signal that triggers a buzzer to sound an alarm. The circuit is powered by a 2 x AA battery mount.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MQ-138 SENSOR FORMALDEHYDE GAS V2

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 gas detect: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
Battery-Powered MQ-2 Gas Sensor with Alert Buzzer
This is a simple gas detection alarm system that uses an MQ-2 sensor to detect gas presence and sound a buzzer when gas is detected. It is powered by a rechargeable 18650 battery, with a TP4056 module for battery management and charging. A rocker switch is used to control the power to the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of AIR QUALITY MONITORING: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Centrala calitate aer: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
Multi-Gas Detection System with Arduino and MQ Sensors
This circuit is designed to monitor various gases using a series of MQ gas sensors (MQ-2, MQ-3, MQ-4, MQ-5, MQ-6, MQ-7, MQ-8, MQ-9, and MQ-135), each providing digital outputs to an Arduino UNO microcontroller. The Arduino is also connected to a piezo speaker for audible alerts and multiple LEDs with resistors, likely for visual status indicators. An Adafruit TCA9548A I2C multiplexer is included, suggesting the potential for I2C sensor expansion or managing multiple I2C devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of smoke detection: A project utilizing MQ-138 SENSOR FORMALDEHYDE GAS V2 in a practical application
Battery-Powered Gas Detection Alarm with MQ2 Sensor and Buzzer
This circuit is a gas detection alarm system that uses an MQ2 gas sensor to detect gas levels. When gas is detected, the sensor outputs a signal that triggers a buzzer to sound an alarm. The circuit is powered by a 2 x AA battery mount.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Target Gas: Formaldehyde (HCHO)
  • Operating Voltage: 5V DC
  • Heater Voltage: 5V (typical)
  • Load Resistance: Adjustable
  • Heater Resistance: 33Ω (at room temperature)
  • Heater Power Consumption: Approx. 800mW
  • Detection Range: 0.05 - 10 ppm (parts per million)
  • Preheat Duration: 20 minutes (minimum)
  • Operating Temperature: -10°C to 50°C
  • Operating Humidity: 95% RH or less (non-condensing)

Pin Configuration and Descriptions

Pin Number Description
1 H (Heater)
2 H (Heater)
3 A (Analog Output)
4 B (Analog Output)

Usage Instructions

Integration with a Circuit

To use the MQ-138 sensor in a circuit, follow these steps:

  1. Connect the heater pins (H) to a 5V power supply.
  2. Connect one of the analog output pins (A or B) to the analog input of a microcontroller such as an Arduino.
  3. Use a variable resistor or a potentiometer to adjust the load resistance for calibrating the sensor's sensitivity.
  4. Allow the sensor to preheat for at least 20 minutes before taking readings.

Best Practices

  • Ensure that the sensor is calibrated in an environment with a known concentration of formaldehyde for accurate readings.
  • Avoid exposure to high concentrations of organic solvents, silicon compounds, and sulfur compounds as they may affect the sensor's performance.
  • Keep the sensor away from direct sunlight and high humidity to prevent damage.
  • Use the sensor within the recommended temperature and humidity ranges for optimal performance.

Example Code for Arduino UNO

// MQ-138 Formaldehyde Gas Sensor Example Code
const int MQ138AnalogPin = A0; // Analog input pin connected to MQ-138

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

void loop() {
  int sensorValue = analogRead(MQ138AnalogPin); // Read the sensor output
  float concentration = sensorValue * (10.0 / 1023.0); // Convert to ppm (example)

  Serial.print("Formaldehyde concentration: ");
  Serial.print(concentration);
  Serial.println(" ppm");
  
  delay(1000); // Wait for 1 second before the next read
}

Note: The conversion from the sensor's analog output to ppm (parts per million) requires proper calibration. The example conversion formula provided is for illustration purposes only.

Troubleshooting and FAQs

Common Issues

  • Inaccurate Readings: Ensure that the sensor has been properly calibrated. Also, check for any interference from other gases or environmental factors.
  • Sensor Not Responding: Verify that the sensor is correctly powered and that the preheat time has been observed. Check the wiring for any loose connections.

Solutions and Tips

  • Calibration: Perform calibration in a controlled environment with a known concentration of formaldehyde.
  • Maintenance: Regularly check and clean the sensor's surface to prevent dust accumulation, which can affect readings.
  • Interference: If other gases are present, consider using additional sensors to differentiate between the gases.

FAQs

Q: How often should the MQ-138 sensor be calibrated? A: Calibration frequency depends on usage, but it is generally recommended to calibrate the sensor every 6 months or whenever there is a significant change in the operating environment.

Q: Can the MQ-138 sensor detect other gases besides formaldehyde? A: While the sensor is designed for formaldehyde detection, it may show some sensitivity to other gases. It is important to calibrate the sensor specifically for formaldehyde for accurate measurements.

Q: What is the lifespan of the MQ-138 sensor? A: The typical lifespan of the sensor is about 2 years, depending on the operating conditions and exposure to target gases. Regular maintenance can help extend the sensor's life.

Q: Is the MQ-138 sensor suitable for outdoor use? A: The MQ-138 sensor is primarily designed for indoor use. If used outdoors, it should be protected from extreme weather conditions and direct sunlight to ensure accurate readings.