Wemos and MQ8 Gas Sensor

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.

mq-8

FEATURES

* High sensitivity to Hydrogen
* Small sensitivity to alcohol, LPG,cooking fumes
* Fast response .
* Stable and long life
* Simple drive circuit

Parts List

I recommend you try and get a kit of all the MQ sensors, you can buy these individually but you can also get a kit for about $9

Here are the parts I used

Name Links
Wemos Mini
MQ sensors
Connecting cables

Connection

here are the connections for my sensor

Wemos Gas Sensor
3v3 VCC
GND GND
NC DO
Analog A0 AO

 

Code

void setup() 
{
  Serial.begin(9600);
}
 
void loop() 
{
  float sensorVoltage; 
  float sensorValue;
 
  sensorValue = analogRead(A0);
  sensorVoltage = sensorValue/1024*5.0;
 
  Serial.print("sensor voltage = ");
  Serial.print(sensorVoltage);
  Serial.println(" V");
  delay(1000);
}

 

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here