Categories

MQ6 Gas Sensor

The MQ6 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 LPG, iso-butane, propane, LNG, avoid the noise of alcohol , cooking fumes and cigarette smoke.  Due to its high sensitivity and response time, measurements can be taken as soon as possible.

The sensitivity of the sensor can be adjusted by using the potentiometer.

mq-6

mq-6

FEATURES

* High sensitivity to LPG, iso-butane, propane
* Small sensitivity to alcohol, smoke.
* Fast response .
* Stable and long life
* Simple drive circuit

Connection

here are the connections for my sensor

Arduino Gas Sensor
5V 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, in this case I noticed that it took about 3 minutes for the readings to stabilise, something you may want to factor in

sensor voltage = 1.14 V
sensor voltage = 1.44 V
sensor voltage = 1.71 V
sensor voltage = 1.95 V
sensor voltage = 2.16 V
sensor voltage = 2.32 V
sensor voltage = 2.46 V
sensor voltage = 2.55 V
sensor voltage = 2.56 V
sensor voltage = 2.47 V
sensor voltage = 2.28 V
sensor voltage = 2.08 V
sensor voltage = 1.90 V
sensor voltage = 1.76 V
sensor voltage = 1.63 V
sensor voltage = 1.52 V
sensor voltage = 1.43 V
sensor voltage = 1.34 V
sensor voltage = 1.26 V

3 minutes worh of readings

sensor voltage = 0.40 V
sensor voltage = 0.40 V
sensor voltage = 0.40 V
sensor voltage = 0.39 V
sensor voltage = 0.39 V
sensor voltage = 0.39 V
sensor voltage = 0.39 V

Links

Mq-6 gas sensor specifiication
MQ-6 Liquefied Petroleum Gas Sensor Liquefied Isobutane Propane Module

Share

MQ5 Gas Sensor

The MQ5 Gas Sensor module is useful for gas leakage detection. It is suitable for detecting H2, LPG, CH4, CO, Alcohol. Due to its high sensitivity and response time, measurements can be taken as soon as possible. The sensitivity of the sensor can be adjusted by using the potentiometer.

MQ-5

MQ-5

FEATURES

* High sensitivity to LPG, natural gas , town gas
* Small sensitivity to alcohol, smoke.
* Fast response .
* Stable and long life
* Simple drive circuit

Connection

here are the connections for my sensor

Arduino Gas Sensor
5V VCC
GND GND
NC DOUT
Analog A0 AOUT

 

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

sensor voltage = 0.70 V
sensor voltage = 0.69 V
sensor voltage = 0.68 V
sensor voltage = 0.67 V
sensor voltage = 0.67 V
sensor voltage = 0.66 V

Links

Mq-5 datasheet
MQ-5 Methane Natural Gas Sensor

Share

MQ-4 gas sensor

The MQ-4 gas sensor modules are used in gas leakage detecting equipments, they are suitable for the detection of CH4,Natural gas.LNG, avoid alcohol and cooking fumes and cigarette smoke with this sensor.

MQ-4

MQ-4

Features

  • High sensitivity to CH4 and Natural gas
  • Slight sensitivity to alcohol, smoke
  • Fast response
  • Stable and long life
  • Simple drive circuit

 

Connection was as follows

VCC - 5V
GND - GND
A0  - Analog pin0
D0  - Not connected

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 via the serial monitor

sensor voltage = 0.22 V
sensor voltage = 0.22 V
sensor voltage = 0.22 V
sensor voltage = 0.23 V
sensor voltage = 0.23 V
sensor voltage = 0.23 V
sensor voltage = 0.24 V

 

Links

Mq-4 datasheet
MQ4 Methane Gas Sensor

Share

MQ-3 Gas sensor

The MQ3 Gas Sensor module is useful for gas leakage detection (in home and industry). It is suitable for detecting Alcohol, Benzine, CH4, Hexane, LPG, CO. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible. The sensitivity can be adjusted by using the potentiometer on the module.

MQ-3

MQ-3

 

My sensor was wired up as follows

Arduino Gas Sensor
5V VCC
GND GND
NC D0
Analog A0 A0

Code

Same as the MQ2 sensor

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

I saw the following results in the serial monitor

sensor voltage = 1.83 V
sensor voltage = 1.78 V
sensor voltage = 1.74 V
sensor voltage = 1.70 V
sensor voltage = 1.66 V
sensor voltage = 1.63 V
sensor voltage = 1.59 V
sensor voltage = 1.56 V

 

Links

Mq-3 Gas sensor specs
MQ-3 Alcohol Ethanol Sensor Breath Gas Ethanol Detection

Share