MQ-4 gas methane sensor module


৳ 140.00

MQ-4 is a simple-to-use compressed natural gas (CNG)sensor, suitable for sensing natural gas.

  • The MQ-4 can detect natural gas concentrations anywhere from 300 to 10000ppm.
  • This sensor has a high sensitivity and fast response time.
  • Model Number: MQ-4

This is a sensor that is sensitive to effects of methane.

Methane (CH4) is a colorless, odorless gas with a wide distribution in nature. Methane is known chiefly as being the principal component of natural gas, which is a mixture containing about 75% methane (CH4), 15% ethane (C2H6), and 5% other hydrocarbons, suh as propane (C3H8) and butane (CH4H10).

The principal use of methane is as a fuel. The combustion of methane is highly exothermic, meaning reactions create the release of a great deal of energy. The energy released by the combustion of methane, in the form of natural gas, is used directly to heat homes and commercial buildings. It is also used in the generation of electric power. During the past decade, natural gas accounted for about 1/5 of the total energy consumption worldwide and about 1/3 in the United States.

Much debate has been stirred on whether natural gas is more green, meaning better for the environment, than coal. This is because methane, when burned, emits less carbon dioxide than coal. Carbon dioxide, CO2, is a dangerous greenhouse gas. However, when unburned, when it is vented or leaked directly into the atmosphere, methane is far more potent than carbon dioxide. In terms of its contribution to global warming, it is 23 times more powerful than carbon dioxide.

Thus, methane is a powerful gas that can do a lot of good and potentially a lot of bad at the same time.

Therefore, it’s a gas that’s important to monitor.

And to do so, we need a methane sensor. So this is the device we will build in this project. OUr device will be able to detect the gas methane and tell us its concentration in the air.

Package Inlcuded : 1 X MQ-4 sensor

Diagram

MQ-4 methane sensor circuit

Sample code

/* MQ-4 Methane Sensor Circuit with Arduino */

const int AOUTpin=0;//the AOUT pin of the methane sensor goes into analog pin A0 of the arduino
const int DOUTpin=8;//the DOUT pin of the methane sensor goes into digital pin D8 of the arduino
const int ledPin=13;//the anode of the LED connects to digital pin D13 of the arduino

int limit;
int value;

void setup() {
Serial.begin(115200);//sets the baud rate
pinMode(DOUTpin, INPUT);//sets the pin as an input to the arduino
pinMode(ledPin, OUTPUT);//sets the pin as an output of the arduino
}

void loop()
{
value= analogRead(AOUTpin);//reads the analaog value from the methane sensor’s AOUT pin
limit= digitalRead(DOUTpin);//reads the digital value from the methane sensor’s DOUT pin
Serial.print(“Methane value: “);
Serial.println(value);//prints the methane value
Serial.print(“Limit: “);
Serial.print(limit);//prints the limit reached as either LOW or HIGH (above or underneath)
delay(100);
if (limit == HIGH){
digitalWrite(ledPin, HIGH);//if limit has been reached, LED turns on as status indicator
}
else{
digitalWrite(ledPin, LOW);//if threshold not reached, LED remains off
}
}

 

 

 

Based on 0 reviews

0.0 overall
0
0
0
0
0

Be the first to review “MQ-4 gas methane sensor module”

There are no reviews yet.