
MQ-2 Methane Butane LPG Smoke Gas Sensor Module
In stock
Order before 12.00PM
MQ2 Gas sensor is a Metal Oxide Semiconductor (MOS) type Gas Sensor mainly used to detect gases like Methane, Butane, LPG, Smoke, etc. It is also known as Chemiresistors as the gas detection is based on the change of resistance of the sensing material when the Gas comes in to contact. If you want to measure a different type of Gas you can check these Gas Sensors.
MQ2 Gas sensor module works on 5V DC and uses around 800mW. It can detect LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon Monoxide concentrations in a range of 200 to 10000 ppm.
Specifications:
- Operating Voltage is +5V
- Analog output voltage: 0V to 5V
- Digital Output Voltage: 0V or 5V (TTL Logic)
- Preheat duration 20 seconds
- Can be used as a Digital or analog sensor
- The Sensitivity of Digital pin can be varied using the potentiometer
How to Connect:
To use the MQ2 gas sensor module, you need to power the device with 5V supply and the Power LED will start to glow. You should give it some preheating time before start reading the output. While measuring the gas present, the Output LED will glow in a specific concentration of the gas. You can change it by using the potentiometer. Else you can also use the Analog Output to see how your program reacts to different concentration of gases present.
How to interface with an Arduino?
The MQ-2 gas sensor module is a versatile sensor used to detect a variety of gases, including methane, butane, LPG, and smoke. It is commonly used in applications such as gas leak detection and air quality monitoring. This guide will walk you through the process of interfacing the MQ-2 sensor with an Arduino to measure gas concentrations.
Components Required
-
Arduino Uno
-
MQ-2 Methane Butane LPG Smoke Gas Sensor Module
-
Jumper wires
-
Breadboard
-
LED (optional for visual feedback)
-
Resistor (220 ohms, optional for LED)
Understanding the MQ-2 Gas Sensor Module
The MQ-2 sensor module detects gases using a heating element and a gas-sensitive layer. It has the following pins:
-
VCC: Power supply (5V)
-
GND: Ground connection
-
AO: Analog output pin, which provides a voltage proportional to the gas concentration
-
DO: Digital output pin, which provides a HIGH or LOW signal based on a set threshold
Connecting the MQ-2 to Arduino
Follow these steps to connect the MQ-2 sensor to your Arduino:
- Connect the VCC pin of the MQ-2 to the 5V pin of the Arduino.
- Connect the GND pin of the sensor to the GND pin of the Arduino.
- Connect the AO pin of the sensor to the A0 analog input pin on the Arduino.
- (Optional) Connect the DO pin to a digital pin (e.g., D2) if you want to use the digital output.
Optionally, you can also connect an LED to pin 13 of the Arduino with a 220-ohm resistor for visual feedback.
Arduino Code
Below is the Arduino code to read the analog output from the MQ-2 sensor. This code will read the sensor values and print them to the Serial Monitor.
#define MQ2AnalogPin A0 // MQ-2 sensor analog output connected to A0 void setup() { pinMode(MQ2AnalogPin, INPUT); // Set the MQ-2 pin as input Serial.begin(9600); // Begin serial communication for debugging } void loop() { int sensorValue = analogRead(MQ2AnalogPin); // Read the analog value from the sensor Serial.print("MQ-2 Sensor Value: "); Serial.println(sensorValue); // Print the sensor value to the Serial Monitor delay(1000); // Delay for 1 second }
Conclusion
By following this guide, you have successfully interfaced the MQ-2 gas sensor with an Arduino Uno. This setup allows you to monitor gas concentrations in real time. You can use the analog output to gauge gas levels and the digital output for threshold-based detection. For more advanced applications, you may need to calibrate the sensor and implement more complex algorithms to interpret the sensor data accurately.
Request Stock
Recently viewed products
You might also be interested in...
Customers who bought this also bought...
General Questions
-
What is the latest price of the MQ-2 Methane Butane LPG Smoke Gas Sensor Module in Bangladesh?
The latest price of MQ-2 Methane Butane LPG Smoke Gas Sensor Module in Bangladesh is BDT 150.00 . You can buy the MQ-2 Methane Butane LPG Smoke Gas Sensor Module at the best price on BDTronics.com or contact us via phone.
-
Where to buy MQ-2 Methane Butane LPG Smoke Gas Sensor Module in Bangladesh?
You can buy MQ-2 Methane Butane LPG Smoke Gas Sensor Module online by ordering on BDTronics.com or directly collect by visiting our store in person. BDTronics is a trusted provider of high-quality electronics, 3D printers, solar systems, and robotics parts. We offer fast shipping across the country via courier service.
-
What are the delivery options of MQ-2 Methane Butane LPG Smoke Gas Sensor Module in Bangladesh?
We provide home delivery service all over Bangladesh. We support cash on delivery, bKash and Credit Card (Visa/ MasterCard/ Amex) payment solutions. The delivery time usually takes 1-2 days inside Dhaka and 2-3 days outside Dhaka.