Difference between revisions of "Template:MQ-7 Gas Sensor Arduino Guide"
From Waveshare Wiki
(Created page with "The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO. ==Hardware connection== Fi...") |
|||
Line 1: | Line 1: | ||
The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO. | The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO. | ||
+ | =Arduino= | ||
==Hardware connection== | ==Hardware connection== | ||
[[File:MQ5 Line 2.jpg|300px|thumb|right|Hardware connection-Arduino]] | [[File:MQ5 Line 2.jpg|300px|thumb|right|Hardware connection-Arduino]] | ||
Line 14: | Line 15: | ||
|DOUT||D2||Digital data output | |DOUT||D2||Digital data output | ||
|} | |} | ||
+ | |||
==Examples== | ==Examples== | ||
*Please download and install Arduino IDE to your PC. | *Please download and install Arduino IDE to your PC. |
Revision as of 02:18, 19 July 2022
The examples provided are based on the Arduino UNO, if you need to use other Arduino boards, please check if the board is compatible with the UNO.
Arduino
Hardware connection
MQ7 | Arduino | Description |
---|---|---|
VCC | 5V | Power input |
GND | GND | Ground |
AOUT | A0 | Analog data output |
DOUT | D2 | Digital data output |
Examples
- Please download and install Arduino IDE to your PC.
- Download the demo codes, unzip and find the Arduino examples
- Open the Gas_Sensor.ino file by the Arduino IDE
- Build and upload the codes to the UNO board
- After uploading, you can open the Serial Monitor of IDE and check the data
Expected result
- The sensor needs to preheat for about a minute to heat the internal sensitive materials of the sensor.
- Put the sensor inside the device containing sensitive gas, and the indicator on the module lights up. The indicator goes off when the sensor is removed from the device.