- Arduino UNO with USB Cable - 1
- MQ4 gas sensor - 1
- breadboard 400 points – 1
- OLED LCD Display – 1
- Jumper Wires male to female – 40 pcs
- Jumper Wires male to male – 40 pcs
- 9v Battery -1
- Dc Jack – 1
- Piezo Buzzer – 1
- Led – 2
MQ4 sensor can sense methane / natural gas easily with a range sensitivity from 300 to 10000ppm, costs are very low, and can be easily plugged with Arduino boards.
MQ4 GAS SENSOR – METHANE NATURAL GAS MONITOR WITH MQ3 / MQ4 SENSORS
HARDWARE REQUIRED
- Arduino UNO with USB Cable - 1
- MQ4 gas sensor - 1
- breadboard 400 points – 1
- OLED LCD Display – 1
- Jumper Wires male to female – 40 pcs
- Jumper Wires male to male – 40 pcs
- 9v Battery -1
- Dc Jack – 1
- Piezo Buzzer – 1
- Led – 2
SOFTWARE REQUIRED
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download :https://www.arduino.cc/en/Main/Software
SPECIFICATIONS
MQ-4 GAS Sensor Module
- Detection Range: 300 ~ 10000ppm
- Characteristic Gas: 5000ppm methane
- Sensitivity: R in air/R in typical gas≥5
- Resistance of Sensitive Material: 1KΩ~20KΩ in 5000ppm methane
- Response Time: ≤10s
- Recovery Time: ≤30s
- Heating Resistance: 31Ω±3Ω
- Heating Current: ≤180mA
- Heating Power: ≤900mW
- Heating Voltage: 5.0V±0.2V
- Measuring Voltage: ≤24V
- High sensitivity to CH4,Natural gas
- Small sensitivity to alcohol, smoke
- Fast response
- Stable and long life
- Simple drive circuit
Working condition of MQ-4:
- Environment Temperature: -20℃~+55℃
- Humidity: ≤95%RH
- Environment Oxygen Content: 21%
Storage condition of MQ-4:
- Temperature: -20℃~+70℃
- Humidity: ≤70%RH
OLED DISPLAY
- Voltage: 3V ~ 5V DC. Working Temperature: -30 ℃ ~ 70 ℃
- Ultra-low power consumption: full screen lit 0.08W
- Supports many control chip: Fully compatible with Arduino, 51 Series, MSP430 Series, and STM32 / 2, CSR IC, etc.
- High resolution: 128 * 64. Viewing angle:> 160 °
PIN DESCRIPTION
MQ-4 GAS Sensor Module
- 1 pin VCC 5v
- 1 pin GND
- 1 pin DO (digital output) TTL digital 0 and 1 (0.1 and 5V)
- 1 pin AO (analog output) 0.1-0 .3 V (clean), the highest concentration of voltage around 4V
Led
CIRCUIT CONNECTION
- Connect led with one ground and other to pin no 10 of Arduino Uno
- Connect Buzzer’s one point to gnd and another pin to pin no 9 of Arduino uno.
- Connect mq-4 gas sensor’s gnd to gnd, vcc to vcc, analog output to pin a0 of arduino Uno.
- Now connect the oled vcc to vcc, gnd to gnd , scl to arduino scl pin no 16 and sda to Arduino pin no 17 sda.
- Now upload the code.
CODE
Click to see the code:
WORKING
Upload the code and see the data on OLED Display measured by MQ-4 Gas Sensor.