กลับไปหน้ารวมไฟล์
arduino-and-mq2-gas-sensor-f3ae33-en.md

Fire & Gas Safety: The MQ-2 Sensor

The MQ-2 Gas Sensor is one of the most widely used sensors for safety electronics. It is highly sensitive to LPG, propane, methane, hydrogen, alcohol, smoke, and carbon monoxide, making it a perfect all-in-one detector for your workshop or kitchen.

Video

How It Works

Inside the metal mesh is a small heater element and a chemical sensor:

  1. Warm-up: The heater must be powered to bring the sensor to its operating temperature.
  2. Detection: Combustible gases react with the oxygen on the sensor's surface, lowering its electrical resistance.
  3. Reading: The Arduino reads this change as an analog voltage—the higher the voltage, the higher the gas concentration.

Hardware Needed

  • Arduino Uno/Nano: The main microcontroller.
  • MQ-2 Gas Sensor Module: The detection core.
  • Piezo Buzzer: For the loud audio alarm.
  • LEDs (Green, Orange, Red): To provide a visual threat level indicator.

Calibration

When using the MQ-2, it's crucial to "burn it in" by leaving it powered on for at least 24 hours the first time you use it. This stabilizes the chemical coating and provides accurate, consistent readings for your safety alarm.

ข้อมูล Frontmatter ดั้งเดิม

apps: []
author: "m_karim02"
category: "Sensors & Environment"
components:
  - "1x Arduino UNO"
  - "1x MQ 2 Gas Sensor"
  - "1x USB Cable 2.0 Type A/B for Arduino Uno"
  - "1x Breadboard"
  - "1x Jumper Wires"
  - "1x Prototype Expansion Board for Arduino Uno"
description: "The Grove Gas Sensor (MQ2) module is useful for gas leakage detection (home and industry). It is suitable for detecting H2, LPG, CH4 and CO."
difficulty: "Easy"
documentationLinks: []
downloadableFiles: []
encryptedPayload: "U2FsdGVkX18CTSqGCyAQuSrvxuev0YSwqM+cVA5wfm79urwG57KCfnhs0NltQsOGan2L4sG33VLJvTeChtHsvOjGkCEtmQBN4ePKunUAvR8="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-and-mq2-gas-sensor-f3ae33_cover.jpg"
lang: "en"
likes: 18
passwordHash: "a9358f954eaa3cae3b169b7c5926e0ef6fe3e3d5749eccbc158058d0e69e1126"
price: 1120
seoDescription: "Learn to use Arduino with MQ2 Gas Sensor for gas leakage detection of H2, LPG, CH4, and CO in home and industry."
tags:
  - "environmental sensing"
  - "embedded"
  - "greener planet"
  - "health"
  - "monitoring"
title: "Arduino And MQ2 Gas Sensor"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/W5q8JZdNFRI"
views: 188551