LPG Gas Sensor(MQ-6)

아두위키 : Arduwiki
ArduWiki (토론 | 기여)님의 2024년 4월 3일 (수) 15:06 판 (Created page with "{{#seo:|title=아두위키 : 아두이노 MQ-6 가스 센서 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, MQ-6 가스 센서, 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 MQ-6 가스 센서를 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커수업에 활용가능합니다.}} File:Mq6 대표이미지.png|center|class=cod...")
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

This module is equipped with a sensor that detects LPG, butane, propane, and LNG.

It is necessary to preheat the sensor for a certain period before use to increase accuracy.

Specifications

  • Operating Voltage [V]: 5
  • Preheat Time: 24 hours (DATASHEET) / However, for practical purposes, if you're only determining the presence or absence of gas, immediate use is acceptable.
  • Sensitivity can be adjusted using the variable resistor on the back.

Example Usage Hardware

  • Arduino board
  • Jumper cables
  • MQ-6 Module

Connection

Although the digital pin is not used in this example, please refer to it as a connection example.

Arduino Uno MQ-6
5V VCC
GND GND
A0 AO
D7 DO

Used Library

The MQUnifiedsensor library by Miguel Califa is used.

Please check the installation and usage methods in the library's documentation.

Example Code

This is an example provided by the library.

The LED on the back of the sensor lights up when gas is detected.

Execution Result

Please check the working video at the link.

You can see the green LED on the back of the sensor lighting up when gas is detected.

On the serial monitor, you can observe the change in the PPM value on the far right caused by lighter gas.