Esp8266 Projects

MQ2 Gas Leakage Detection With Blynk Notification

MQ2 Gas Leakage Detection With Blynk Notification - step by step

Introduction 

In This Tutorial, We Are Going To Learn How You Make Your Own GAS Detector With MQ-2 Sensor And ESP8266 or ESP32. You get the alert information on your mobile and LCD if there is any gas leakage. And You are monitoring the gas level anywhere in the World.

Bill Of Material

These are the required components For This Project.

S.N

Component

Quantity

Link To Buy

1

NodeMCU (ESP8266)

1

2

MQ-2 Sensor

1

3

16x2 LCD Diaplay

1

4

Red Led

1

5

Green Led

1

6

Buzzer

1

ESP8266

Component1

16×2 LCD Display

Component2

MQ-2 Sensor

IMG 2428 scaled e1673169751364

IMG 2429 scaled e1673169774693

Red Led & Green Led

Components3

Buzzer

Components4

Block Diagram

IMG B11E86EF5370 1 e1673127673296

Circuit Diagram

  • In the circuit diagram, we used ESP8266.
  • the MQ-2 Sensor Analog Output is connected to Pin Number A0.
  • And We used the 2 Led Red And Green and They connected To The Pin Number D5 & D7.
  • for Sound indication, we Used the buzzer and they connected to the pin number D6.
  • We Also Used The 16×2 LCD Display And They Connected to Pin Numbers D1 And D2.
  • GND – GND
  • VCC – GND
  • SDA – D2
  • SCL – D1

 

PCB Design

MQ 2 Sensor With ESp8266

ESP8266 With MQ 2 Sensor5

ESP8266 With MQ 2 Sensor3

ESP8266 With MQ 2 Sensor1

Set up Blynk IoT Cloud 

If you are interested in more then refer to the Following Article.

fist you go to the Blynk Website And login in a fist.

Setp1

Blynk app

Now We creating the Template, I have selected ESP8266 As a Hardware bust we used virtual Pins to create the databases, so we can connect any controller with this template.

Step2

Screenshot 2022 12 24 at 8.43.41 PM

Step3

Screenshot 2023 01 09 at 10.50.50 AM

Step4

Screenshot 2023 01 09 at 10.51.31 AM

  • I have added 4 Events. Whenever the Event occurs I will get The Alert information.

Step5

Blynk4

Step6

Blynk2

Step7

Blynk3

Step8

Blynk0

  • Now We Created the final Webdesboard

Final Step

Blynk1

Source Code

Before We Uploading The Code Just Change These Things

Then We Uploading the Code In ESP8266

Set Up Mobile Dashboard in Blynk IoT App

  • First Download and install the Blynk IoT App from The Google Play Store Or App Store.

Open the Blynk IoT App and Select the template

Blynk Mobie App0Blynk Mobie App1Blynk Mobie App4Blynk Mobie App3Blynk Mobie App5Blynk Mobie App2

Project Demo

Now We Test the Project I have used the gas and I just on the gas after a few seconds the MQ-2 Sensor Detected the gas And the Blynk Web Dashboard is Red Led ON LCD Also Display The Alert Message Buzzer Beeping.

When the GAS level is Less Than To 900 Value Then Normal Condiction Geen led On And Buzzer Will Stop Beeping.

IMG 1382 IMG 1387 IMG 1392 IMG 1395

Now we used the Mobile Application and connection of the sensor normally that’s why the green led will glow.

IMG 1399

Now We Test the Sensor I have used the Lighter. just hold the lighter in front of the MQ-2 Sensor When crossing the 900 value we get a notification alert.

IMG 1401

This Is a very Useful IoT-based or Industry Safety Project. You Can Connect Multiple Sensor And Get the Alert Information.

Click Here For More Such ESP8266 projects.

Video tutorial

 

 

If you Like Do Share Your Feedback on this IoT Project. Very Thank You For Your Time 😊

Prateek

Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker