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 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.
workink !!!! thank you !
ReplyDeleteThis 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.
ReplyDeleteKey Lock Insert
ReplyDeletesorry but I cant open your code how can I open it?
ReplyDelete