Ks0131 keyestudio EASY plug Analog Gas Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 8: | Line 8: | ||
<span style=color:red> '''Special Note:''' <br> | <span style=color:red> '''Special Note:''' <br> | ||
The sensor/module is | The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br> | ||
<br> | <br> |
Revision as of 09:42, 22 May 2019
Introduction
This analog gas sensor - MQ2 is used in gas leakage detecting equipment in consumer electronics and industrial markets.
This sensor is suitable for detecting LPG, I-butane, propane, methane, alcohol, Hydrogen and smoke. It has high sensitivity and quick response.
In addition, the sensitivity can be adjusted by the potentiometer.
This module should be used together with EASY plug control board.
Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.
Features
- Connector: Easy plug
- Power supply: 5V
- Interface type: Digital and Analog
- Wide detecting scope
- Simple drive circuit
- Stable and long lifespan
- Quick response and High sensitivity
Technical Details
- Dimensions: 56mm*20mm*18mm
- Weight: 9g
Connect It Up
Connect the EASY Plug analog gas sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Upload the Code
Below is an example code. Open or drag below code to Mixly Blocks and upload.
What You Should See
Done uploading the test code, open the serial monitor and set the baud rate to 9600, you should be able to see the analog value.
Adding OLED Display
If you want to display the gas analog value more convenient, you can add OLED screen.
Hookup Guide
What You Should See
Upload success, you should be able to see the analog value is showed on the OLED screen.
Resources
Download the Arduino information here:
https://drive.google.com/open?id=1rlH4_QHex1jX4bB1YiifLejcR7eA2Yfg
Download the Mixly information here:
https://drive.google.com/open?id=1QRScLM_RFtBljzq5n88QpIZZqtaV8zqM