
Login or create an account
CloseReturning Customer
I am a returning customer
Login or create an account
CloseRegister Account
If you already have an account with us, please login at the login form.
Your Account Has Been Created!
Thank you for registering with TechMaze!
You will be notified by e-mail once your account has been activated by the store owner.
If you have ANY questions about the operation of this online shop, please contact the store owner.
Account Logout
You have been logged off your account. It is now safe to leave the computer.
Your shopping cart has been saved, the items inside it will be restored whenever you log back into your account.
Tags: Gas, Detection, Sensor, MQ2, Module, for, Arduino, AVR, Pic
MQ 2 Gas Detection Sensor Module for Arduino or any Microcontroller
Gas Sensor MQ2 module is useful for gas leakage detection (home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke or Propane. Due to its high sensitivity and fast response time, measurement can be taken as soon as possible. The sensitivity of the sensor can be adjusted by potentiometer
in this illustration we will wire the GAS SENSOR MQ2 Module, these device is very useful for GAS leakage detection in home or industry it can detect H2, LPG, CH4, CO, Alcohol or Propane. This device is very sensitive and fast response time and measuring and also can be adjusted onboard by the trimmer potentiometer.
The GAS Sensor is using an Analog output, and should be connected to MCU Analog input.
Required Components
- Arduino Board
- MQ-2 Sensor / H2, LPG, CH4, CO, Alcohol or Propane Sensor
- Jumper Wires / DuPont Wires
- Solder Less Bread Board
Wiring Diagram
Arduino Sketch
//********************************************
// 14CORE Sample Test code for threshold to detect any
// increase/decrease in gas concentration.
// INDUSTRIAL GAS CONCENTRATION SENSOR
// Analog Sense for MQ02 - MQ012
//********************************************
*/
float voltage_Sense; //Float var voltage_sense
float sensor_value; //Float var sensor value
void setup() {
Serial.begin(9600); //Start Serial Communication Baud rate 9600
}
void loop() {
sensor_value = analogRead(A0); //Read value from analog A0
voltage_Sense = sensor_value/1024*5.0; // Voltage / 1024 * 5.0
Serial.print("voltage_Sense = ");
Serial.print(voltage_Sense);
Serial.println("Voltage");
delay(1000); // Delay at 1 second
}
//********************************************
Download MQ-2 Data Schematics here | Pdf
Download MQ2 Circuit Diagram | Pdf