MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module

SKU: EK531 Category: Tag:

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

80,00 EGP

17 People watching this product now!

Payment Methods:

Description

<p>If you want to detect methane gases with your projects, you will need sensors. If you need any data on the sensitive material then, the MQ-4 High Sensitivity Gas Methane (CNG) Detector Gas Sensor  Module is a quite good solution.</p> <p>This is a simple to use MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module which can sense the presence of Compressed Natural Gas(CNG), methane(CH4), etc in the air. The module uses our MQ-4 sensor. It simplifies the interface to the odd pin spacing of the sensor and provides the interface through standard 4 x 0.1″ header pins.</p> <p>It provides an analog output corresponding to the concentration of the gases in the air and an easy-to-use digital output. The onboard potentiometer can be used to set the maximum gas concentration beyond which the digital output gets triggered. The MQ-4 can detect natural gas concentrations anywhere from 200 to 10000ppm.</p> <p>Just power the module with 5V set the threshold and you can start getting the gas concentration of the air around the sensor! An onboard LED signals the presence of any gas.</p> <p><strong>The digital output can be easily interfaced with microcontrollers and other circuits. The analog output can be hooked up to an ADC of a microcontroller to get a wide range of sensor readings. This is a simple-to-use compressed natural gas (CNG) sensor, suitable for sensing natural gas (composed of mostly Methane [CH4]) concentrations in the air.</strong></p> <p> </p> <hr /> <h4><strong>Features :</strong></h4> <ol> <li>Signal output indicator</li> <li>Dual Signals output (analog output and TTL output)</li> <li>The TTL output signal is low level, allows to connect with SCM directly</li> <li>Analog output 0~5V voltage</li> <li>High sensitivity</li> <li>Long working life and stable performance</li> <li>Quick response and recovery.</li> </ol> <hr /> <h4><strong>Package Includes :</strong></h4> <p>1 x MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module</p>

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
MQ-4VCC/GND/AOUT5V / GND / board analog pin (see per-board note)
📟
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - Arduino Uno
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - Arduino Nano
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - Arduino Mega
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - ESP32
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - ESP8266
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - STM32
MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module - Raspberry Pi Pico
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_arduino_uno.inoArduino Uno
581 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Uno (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_arduino_nano.inoArduino Nano
582 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Nano (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_arduino_mega.inoArduino Mega
582 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on Arduino Mega (ADC range 0-1023, reference 5.0V)
6#define MQ_PIN A0
7
8void setup() {
9 Serial.begin(115200);
10 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
11}
12
13void loop() {
14 int raw = analogRead(MQ_PIN);
15 float voltage = raw * 5.0 / 1023.0;
16
17 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
18 Serial.print(" Voltage: "); Serial.print(voltage);
19 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
20
21 delay(1000);
22}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_esp32.inoESP32
801 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: 34 on ESP32 (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but ESP32's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN 34
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_esp8266.inoESP8266
805 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: A0 on ESP8266 (ADC range 0-1023, reference 3.3V)
6// SAFETY: this module can output up to 5V, but ESP8266's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN A0
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 1023.0;
19
20 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_stm32.inoSTM32
803 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: PA0 on STM32 (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but STM32's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN PA0
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
📄 File: mq-4_high_sensitivity_gas_methane_(cng)_detector_sensor_module_-_raspberry_pi_pico.inoRaspberry Pi Pico
825 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Analog pin: 26 on Raspberry Pi Pico (ADC range 0-4095, reference 3.3V)
6// SAFETY: this module can output up to 5V, but Raspberry Pi Pico's ADC input max is 3.3V.
7// Power the module from the board's 3.3V pin instead of 5V, OR add a simple
8// resistor voltage divider on the analog output before wiring it in.
9#define MQ_PIN 26
10
11void setup() {
12 Serial.begin(115200);
13 Serial.println("Warming up sensor (needs ~20-60s to stabilize)...");
14}
15
16void loop() {
17 int raw = analogRead(MQ_PIN);
18 float voltage = raw * 3.3 / 4095.0;
19
20 Serial.print("MQ-4 (methane/CNG) raw ADC: "); Serial.print(raw);
21 Serial.print(" Voltage: "); Serial.print(voltage);
22 Serial.println(" V (higher = more gas detected; calibrate a clean-air baseline for real ppm)");
23
24 delay(1000);
25}
Analog methane/CNG sensor.

نظرة عامة ومواصفات المنتج — بالعربية

MQ-4 High Sensitivity Gas Methane (CNG) Detector Sensor Module متوفر الآن في متجر إكوسترا للإلكترونيات، ضمن قسم Sensors، بسعر 80,00 EGP. كود المنتج لدينا: EK531. المنتج غير متوفر حالياً — تواصل معنا عبر واتساب لمعرفة موعد توفره القادم.

أهم المواصفات الفنية:

  • الوزن: 1 g

هذا المنتج مناسب لمشاريع الأردوينو (Arduino) و ESP32 و Raspberry Pi، ومشاريع الروبوتات وإنترنت الأشياء والتعليم الهندسي. جميع القطع مفحوصة قبل الشحن.

تصفّح المزيد من Sensors في إكوسترا.

Specification

Specification

WeightWeight10 g
Dimensions5 × 4 × 2 cm

Customer Reviews