- 商品說明
- 原廠資料
- 技術文件
商品說明
Grove – Gas Sensor MQ2 煙霧氣體感測器
Grove – Gas Sensor MQ2 氣體感測器模組能檢測家庭或工業區域的氣體洩漏,檢測的氣體包括異丁烷,液化石油氣,甲烷,乙醇,氫氣,煙霧等。感測器的回應速度快,便於實際的測量。通過板上的電位器調整輸出精度。
特徵
- 快速回應並具備高靈敏度
- 檢測範圍廣
- 穩定,工作壽命長
- Grove 接口
規格參數
项目 | 參數 | 最小值 | 典型值 | 最大值 | 單位 |
---|---|---|---|---|---|
VCC | 工作電壓 | 4.9 | 5 | 5.1 | V |
PH | 熱能耗 | 0.5 | – | 800 | mW |
RL | 負載電阻 | adjustable | |||
RH | 發熱器電阻 | – | 33 | – | Ω |
Rs | 敏電阻 | 3 | – | 30 | kΩ |
出貨清單
- Grove – Gas Sensor(MQ2) x1
- Grove連接線 x1
Documents
=========================================================
Grove – Gas Sensor(MQ2)
The Grove – Gas Sensor(MQ2) module is useful for gas leakage detecting(in home and industry). It can detect LPG, i-butane, methane, alcohol, Hydrogen, somke and so on. Based on its fast response time. measurements can be taken as soon as possible. Also the sensitivity can be adjusted by the potentiometer.
Features
- Wide detecting scope
- Stable and long lifetime
- Fast response and High sensitivity
Specification
Item | Parameter | Min | Typical | Max | Unit |
---|---|---|---|---|---|
VCC | Working Voltage | 4.9 | 5 | 5.1 | V |
PH | Heating consumption | 0.5 | – | 800 | mW |
RL | Load resistance | adjustable | |||
RH | Heater resistance | – | 33 | – | Ω |
Rs | Sensing Resistance | 3 | – | 30 | kΩ |
Features
- Wide detecting scope
- Stable and long life
- Fast response and High sensitivity
Specification
Item | Parameter | Min | Typical | Max | Unit |
---|---|---|---|---|---|
VCC | Working Voltage | 4.9 | 5 | 5.1 | V |
PH | Heating consumption | 0.5 | – | 800 | mW |
RL | Load resistance | adjustable | |||
RH | Heater resistance | – | 33 | – | Ω |
Rs | Sensing Resistance | 3 | – | 30 | kΩ |
Application Ideas
- Gas leakage detection.
- Toys.
Hardware Overview
This is a Analog output sensor. This needs to be connected to any one Analog socket in Base Shield. The examples used in this tutorial makes uses of A0 analog pin. Connect this module to the A0 port of Base Shield.
It is possible to connect the Grove module to Arduino directly by using jumper wires by using the connection as shown in the below table:
Arduino | Gas Sensor |
---|---|
5V | VCC |
GND | GND |
NC | NC |
Analog A0 | SIG |
The output voltage from the Gas sensor increases when the concentration of gas increases. Sensitivity can be adjusted by varying the potentiometer. Please note that the best preheat time for the sensor is above 24 hours. For detailed information about the MQ-2 sensor, please refer to the data-sheet provided in resource section.
Getting Started
Connect the Grove – Gas Sensor(MQ2) to A0 port as shown in the above picture.
Gas Detection : Basic Example
In this example, the sensor is connected to A0 pin. The voltage read from the sensor is displayed. This value can be used as a threshold to detect any increase/decrease in gas concentration.
void setup() { Serial.begin(9600); } void loop() { float sensor_volt; float sensorValue; sensorValue = analogRead(A0); sensor_volt = sensorValue/1024*5.0; Serial.print("sensor_volt = "); Serial.print(sensor_volt); Serial.println("V"); delay(1000); }
Measurement : Approximation
This examples demonstrates a way to know the approximate concentration of Gas. As per the data-sheet of the MQx sensors, these equations are tested for standard conditions and are not calibrated. It may vary based on change in temperature or humidity.
1.Keep the Gas Sensor in clean air environment. Upload the below program.
void setup() { Serial.begin(9600); } void loop() { float sensor_volt; float RS_air; // Get the value of RS via in a clear air float R0; // Get the value of R0 via in H2 float sensorValue; /*--- Get a average data by testing 100 times ---*/ for(int x = 0 ; x < 100 ; x++) { sensorValue = sensorValue + analogRead(A0); } sensorValue = sensorValue/100.0; /*-----------------------------------------------*/ sensor_volt = sensorValue/1024*5.0; RS_air = (5.0-sensor_volt)/sensor_volt; // omit *RL R0 = RS_air/9.8; // The ratio of RS/R0 is 9.8 in a clear air from Graph (Found using WebPlotDigitizer) Serial.print("sensor_volt = "); Serial.print(sensor_volt); Serial.println("V"); Serial.print("R0 = "); Serial.println(R0); delay(1000); }
2. Then, open the serial monitor of Arduino IDE. Write down the value of R0 and this needs to be used in the next program. Please node down the R0 after the reading stabilizes.
Replace the R0 below with value of R0 tested above . Expose the sensor to any one of the gas listed above.
void setup() { Serial.begin(9600); } void loop() { float sensor_volt; float RS_gas; // Get value of RS in a GAS float ratio; // Get ratio RS_GAS/RS_air int sensorValue = analogRead(A0); sensor_volt=(float)sensorValue/1024*5.0; RS_gas = (5.0-sensor_volt)/sensor_volt; // omit *RL /*-Replace the name "R0" with the value of R0 in the demo of First Test -*/ ratio = RS_gas/R0; // ratio = RS/R0 /*-----------------------------------------------------------------------*/ Serial.print("sensor_volt = "); Serial.println(sensor_volt); Serial.print("RS_ratio = "); Serial.println(RS_gas); Serial.print("Rs/R0 = "); Serial.println(ratio); Serial.print("\n\n"); delay(1000); }
Now, we can get the concentration of gas from the below figure
According to the graph, we can see that the minimum concentration we can test is 100ppm and the maximum is 10000ppm, in a other word, we can get a concentration of gas between 0.01% and 1%. However, we can’t provide a formula because the relation between ratio and concentration is nonlinear.
相關商品
-
Grove – Relay 繼電器模組 ( 峰值電壓能力250V 10安培) 支援 Arduino 與 Raspberry Pi seeed原廠
0 滿分 5 分繼電器是數位電路常用的控制開關元件,可用於控制更高的電壓和電流。設置為高電位時,指示燈會亮,繼電器ON。
NT$143NT$95 未稅閱讀全文速覽 -
Grove – Piezo Vibration Sensor MEAS 壓電式 振動 感測器 震動傳感器 seeed原廠
0 滿分 5 分主要用於汽車防盜報警器、臥式滾筒洗衣機振動不平衡及其他要求安靜、小噪音的家用電器如空調及電廣靶鏢記分等 振動 信號的檢測,也可以用於記數器的觸發器做為柔性開關、脈膊檢測、聲納測量等等。
NT$267NT$219 未稅加入購物車速覽 -
Grove – Recorder v3.0 錄音感測器 錄音機 語音錄放模組 seeed原廠
0 滿分 5 分NT$733NT$571 未稅加入購物車速覽 -
Grove – Digital Light Sensor 數位型光敏感測器 偵測光亮強度傳感器 seeed原廠
0 滿分 5 分NT$400NT$324 未稅加入購物車速覽 -
Grove – Ultrasonic Ranger 超音波測距模組 距離探測傳感器 seeed原廠
0 滿分 5 分Grove – Ultrasonic Sensor是一個非接觸式的距離探測模塊。他的工作頻率在42KHz,適合用於中距離或近距離的探測。已經附上 Arduino 函數庫。
NT$190NT$129 未稅加入購物車速覽 -
Grove – Sound Sensor 聲音感測器 seeed原廠
0 滿分 5 分聲音感測模組是一個麥克風元件,它可以用於檢測偵測環境中的聲音強度。而偵測到的資料輸出的值可以由電位進行調整。
NT$238NT$181 未稅加入購物車速覽 -
Grove – Dry-Reed Relay 磁簧管開關模組 干簧管繼電器模組 乾式磁簧繼電器 seeed原廠
0 滿分 5 分乾式磁簧繼電器的應用, 有如繼電器。支援 Arduino 與 Raspberry Pi 。
NT$181NT$152 未稅加入購物車速覽 -
Grove – Chainable RGB LED 全彩 RGB 可串接式 LED 模組 seeed原廠
0 滿分 5 分Grove – Chainable RGB LED是基於P9813全彩LED驅動晶片的RGB LED模塊。它支持串接,最多可同時串接1024個同類模組。
NT$162NT$124 未稅加入購物車速覽 -
Grove – UV Sensor UV 紫外線感測器 seeed原廠
0 滿分 5 分NT$457NT$333 未稅加入購物車速覽 -
Grove – Screw Terminal 4P 螺絲端子座 額定功率可達 125V@6A seeed原廠
0 滿分 5 分NT$100NT$81 未稅加入購物車速覽