Gas Sensor
In this project, you'll learn how to connect and control the MQ-2 gas sensor.
The gas sensor can detect any combustible gases such as LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
Specification of the MQ-2 gas sensor:
- Detection of gas: combustible gases, fumes (LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke)
- Detectable concentration: 300-10000ppm (flammable gas)
- D0 is an active low digital output, i.e. it outputs a low signal when it detects gas.
- A0 is an analog output.
Parts needed:
| ||
1 | Making the connections
| |
2 | Adjustment
In the absense of all flammable gases, turn the potentiometer until the D0-led just turns off. | |
3 | Create a new BareMinimum program and type in this code. |
|
4 | Run the program and test the sensor. | |