LPG Gas Sensor(MQ-6): 두 판 사이의 차이

아두위키 : Arduwiki
(Created page with "{{#seo:|title=아두위키 : 아두이노 MQ-6 가스 센서 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, MQ-6 가스 센서, 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 MQ-6 가스 센서를 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커수업에 활용가능합니다.}} File:Mq6 대표이미지.png|center|class=cod...")
 
잔글편집 요약 없음
 
48번째 줄: 48번째 줄:
The LED on the back of the sensor lights up when gas is detected.
The LED on the back of the sensor lights up when gas is detected.
[[File:Mq6 예제 라이브러리.png|center|class=coders100]]
[[File:Mq6 예제 라이브러리.png|center|class=coders100]]


=== Execution Result ===
=== Execution Result ===
Please check the working video at the [https://blog.naver.com/gongzipsa/223195713371 link].
<div class="coders70">
<youtube> C6zQvGlMygA </youtube>
</div>


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

2024년 7월 10일 (수) 14:05 기준 최신판

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

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.