The MQ8 Gas Sensor module is useful for gas leakage detection. They are used in gas leakage detecting equipments in home and industry, are suitable for detecting of Hydrogen. Due to its high sensitivity and response time, measurements can be taken as soon as possible.
Try and avoid alcohol, LPG,cooking fumes as the sensor has slight sensitivity to these substances and this may affect results
The sensitivity of the sensor can be adjusted by using the potentiometer.
FEATURES
* High sensitivity to Hydrogen
* Small sensitivity to alcohol, LPG,cooking fumes
* Fast response .
* Stable and long life
* Simple drive circuit
Connection
here are the connections for my sensor
Chipkit | Gas Sensor |
---|---|
3v3 | VCC |
GND | GND |
NC | DO |
Analog A0 | AO |
Code
[codesyntax lang=”cpp”]
void setup() { Serial.begin(9600); } void loop() { float sensorVoltage; float sensorValue; sensorValue = analogRead(A0); sensorVoltage = sensorValue/1024*3.3; Serial.print("sensor voltage = "); Serial.print(sensorVoltage); Serial.println(" V"); delay(1000); }
[/codesyntax]
Results
Again look at the serial monitor, you need to let the sensor stabilise. Remember it consists of a heating element, so you effectively have to let the sensor ‘heat up’.
sensor voltage = 0.58 V
sensor voltage = 0.58 V
sensor voltage = 0.58 V
sensor voltage = 0.57 V
sensor voltage = 0.60 V
sensor voltage = 0.67 V
sensor voltage = 0.67 V
sensor voltage = 0.70 V
sensor voltage = 0.70 V
sensor voltage = 0.66 V
sensor voltage = 0.64 V
Links
MQ8 datasheet
MQ8 Hydrogen Gas Sensor H2 Detection Sensor Module Gas Sensor for Arduino