Skip to main content

Smart home project with MQ2 gas sensor

Project summary: 

MQ2 gate sensor is analog type sensor which can detect LPG, Methane, CO2 and Smoke in Air.
In this project we are going to calibrate LPG, CO and Smoke PPM in the air and display these values on the Nokia 5110 LCD screen.



Figure 1: MQ2 gas sensor with Nokia5110LCD




In this project when you will exhale breathe on it or put a cigarette lighter near it then LCD screen reading would change.

Component required: -

This project is based on the Arduino uno board and we are interfacing MQ2 gas sensor with Nokia 5110LCD so we would required component which are described below.
Components list:
      ·         Arduino board.
      ·         Arduino software.
      ·         MQ2 gas sensor.
      ·         Nokia 5110LCD.
      ·         Bread board.
      ·         Jumper male to male and male to female wires.

Libraries required:
      ·         Nokia 5110LCD Graphic library. https://github.com/adafruit/Adafruit-GFX-Library
      ·         Nokia 5110LCD function library. https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library


Figure 2: Components required


Connections: -

This project can be really help full to understand and getting familiar with Nokia 5110LCD and MQ2 gas sensor, so follow the below connections to make this project. Now we are going to interface MQ2 and Nokia 5110LCD with Arduino board.

Connections:
S no.
Component Pins
Arduino Pins
1.
Nokia 5110LCD VCC
3.3v
2.
Nokia 5110LCD GND
Any GND
3.
Nokia 5110LCD BL(Back light)
D11 or Any voltage between 0 to 3.3 or 5v
4.
Nokia 5110LCD CLK
D7  Pin
5.
Nokia 5110LCD Din
D6 Pin
6.
Nokia 5110LCD D/C
D5 Pin
7.
Nokia 5110LCD CE
D4 Pin
8
Nokia 5110LCD RST
D3 Pin
9
MQ2 sensor VCC
+5v
10
MQ2 sensor GND
Ground pin
11
MQ2 sensor output
A0
                                      

                                                     Figure 3: Connection of components

Follow the bellow following steps to make this project: -

Step_1: Gather all the components and make connection as shown in the figure above and then copy the file name MQ2_gas_Sensor_with_Nokia_5110LCD from below.

           

                                                       Figure 4:Step_1 open the code file


Step_2: check all the connection and check correct port and board are selected in tool menu.



                                                 Figure 5 Step_2 check for port and board.



Step_3: now if you have done everything then it’s the time to upload the code in your Arduino board.


       


                                                  Figure 6 Step_3 upload the code in board.


Result: -

After burning the code in your Board and making all the connection of project. You will see the Nokia LCD will get started and shows you message and thenafter the calibrating the R0 value it would show you LPG, CO and Smoke concentration in PPM (parts per million) on the LCD screen.
Whenever you will breathe out or put LPG gas or CO, its value would changes on the screen.

                                             


                                               
                                                   Figure 7: Result on the LCD screen.




When you exhale breathe on the sensor the values on the sensor does change and if you have cigarette lighter then the reading would be much higher.

Project specification: -

LGP sensor detection or smoke or CO can be really a good project and you can learn many things from this project.MQ2 sensor sense LPG, CO, and Methane and Smoke so many homemade projects and product can be made.
MQ2 sensor is very interesting sensor and mostly used in factories and industries for detection of gas leakage and gas concentration in the chamber.
MQ2 gas sensor has many other siblings which work for different gases and all those are used for different purpose.
Projects which can be made with it: -
·         LPG and methane gas leakage alarm system.
·         Gas concentration measurement in any reaction chamber.

This project also can be interface with many other communication modules for transmitting information from one point to other like GSM module, X-bee module and Wi-Fi module.

Project due: ½ day.

Note: if you want to see these results on serial monitor of Arduino then you can upload MQ2_gas_sensor_on Serial monitor. And if you are using it as real time product for home then give power to MQ2 sensor external power source because it drain so much apm current and get heavily heated.

                       
                               
                                 Figure 8: result of MQ2_gas_Sensor_on Serial monitor.

Arduino code for this project: -

MQ2_gas_Sensor_with_Nokia_5110LCD: -

Share with friends and hit follow button if you like my work it.

Comments

  1. This is really nice blog. i feel happy to read this CO2 Gas Transmitter blog information.Thanks for sharing this information with us. Acorn Controls Pvt.Ltd. is also one of the best company that manufacturer and supply the Ultrasonic Flow Meter.

    ReplyDelete
  2. sorry but I cant open your code how can I open it?

    ReplyDelete

Post a Comment

Popular posts from this blog

RFID-MFRC522 with Arduino Board.

1.     RFID MFRC522:        A normal RFID kit is just like our ATM card which can send a specific data to controller when it gets in touch with its reader module.       MFRC522 is name of controller which is being used in this RFID kit.   Figure 1 : RFID MRFC522      1.1 Specifications of RFID MFRC22 Module Name:MF522-ED Working current : 13 - 26mA / DC 3.3V Standby current : 10 - 13mA / DC 3.3V Sleep current : <80uA Peak current : <30mA Working frequency : 13.56MHz Card reading distance : 0 ~ 60mm ( Mifare1 card ) Protocol : SPI. Data communication speed : 10Mbit/s Max. Card types supported: Mifare1  S50, Mifare1 S70, Mifare UltraLight, Mifare Pro, Mifare  Desfire Dimension : 40mm × 60mm Working temperature : -20—80 degree Storage temperature : -40—85 degree Humidity : relevant humidity 5%—95% This RFID kit works on the...

Smart Home Door lock system project.

RFID MFRC522  Door lock system Project summary: RFID system radio frequency identification in which Information is written in the card or tag is get read by RFID module when they get in contact. In this project we are making a home lock system which would open only when an authorized card will be available and access will be denied on wrong card. Component require: - In this project we are interfacing Arduino board with RFID MFRC522 and servo motor. RFID system would send data to Arduino board and according to that data action would be taken by Arduino board. Components are listed below:         ·          Arduino board.         ·          Arduino software.         ·          RFID MFRC522 board.         ·        ...

An alarm system with Sound detector sensor.

Project: Alarm system with Sound sensor Project summary:  In this project we would interface our sound detector sensor and make alarm system which would detect any sound in the room of any kind of noise disturbance, by beeping up a buzzer. And also we would able to see the result on the Serial monitor of Arduino Software (IDE). Figure 1:alarm system with Sound detector sensor. Component & tools required: - In this project we would required the component and tools which are described below. ·          Arduino board. ·           Arduino Software (IDE). ·           Sound detector sensor. ·          Red led 1, and Green led 1. ·          Buzzer. ·          1K resisters 2....