Skip to main content

Smoke Detector Notification Gauge Using NodeMcu || Micro Electronics

Hello Guys , Welcome To Another Post , In This Post We Will Help In Making NodeMcu Based Smoke Detector Notification Gauge Using Smoke Sensor. We Have Given You The Circuit Diagram And Source Code Below. Please Subscribe To Our Blog To Get Awesome Project From Us , And Remember That You Don't Miss Any Update From Us.


Material Required-
1-Node Mcu
2-Smoke Detector

Connections-
1- D0--D0
2-GND--GND
3-VCC- 3v3 


Source Code-

//Micro Electronics
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
char auth[] = "----------------"; //Enter Authentication code sent by Blynk
 

char ssid[] = "---------"; //Enter WIFI Name
char pass[] = "---------"; //Enter WIFI Password
 
SimpleTimer timer;
 
int mq2 = A0; // smoke sensor is connected with the analog pin A0 
int data = 0; 
void setup() 
{
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(1000L, getSendData);
}
 
void loop() 
{
  timer.run(); // Initiates SimpleTimer
  Blynk.run();
}
 
void getSendData()
{
data = analogRead(mq2); 
  Blynk.virtualWrite(V2, data);
 
  if (data > 700 )
  {
    Blynk.notify("Smoke Detected!"); 
  }
 
}


Comments

Popular posts from this blog

How To Make Pac- Man Game Using Arduino

Hello Guys , In This Post We Will Tell You How To Make A Arduino Based Pac- Man Game. For More Awesome Arduino Projects Subscribe Our Blog. #Microelectronics Components Required- 1-Arduino Uno / Nano  2-Display Module  3- Joystick Module  4- Jumper Wire   Circuit Diagram Is Given Below- Source Code- //Nokia 5110 LCD PacMan Game #include <LCD5110_Graph.h> #include <avr/pgmspace.h> #define RST 12    // RESET #define CE  13    // CS #define DC  11    // Data/Command #define DIN  10   // MOSI #define CLK  9    // SCK LCD5110 myGLCD(CLK, DIN, DC, RST, CE); // LCD5110(SCK, MOSI, DC, RST, CS); extern uint8_t SmallFont[]; const uint8_t pacman1[] PROGMEM={ 0x80, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x3E, 0x1C,   // 0x0010 (16) pixels 0x0C, 0x00, 0x00, 0x00, 0x1F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, ...

How to use ADXL345 accelerometer with raspberry pi

 Hey,  Today's blog we are going to use ADXL345   Accelerometer with raspberry pi. WHAT YOU NEED : Raspberry pi 3 SD card (8gb+ recommend) Power supply ADXL345 accelerometer  Breadboard CIRCUIT :  PREPARING RASPBERRY PI : 1.  Before we can get our Raspberry Pi to retrieve data from our ADXL345 Accelerometer, there are a few changes we must make to the Pi’s configuration. Let’s first ensure that everything is up to date by running the following two commands. sudo apt-get update sudo apt-get upgrade 2.  Once the Raspberry Pi has finished updating, we will need to go ahead and launch the Raspberry configuration tool so that we can  enable I2C  on the Raspberry Pi. Run the following command to launch the  raspi configuration tool . sudo raspi-config 3.  On this screen, you need to head to the “ 5 Interfacing Options ” menu. You can navigate the  raspi-config  tools menus by using the  arrow keys . Use the  ENTER...

How To Make Led Memory Game Using Arduino ?

Hello Guys , In This Post We Are Going To Tell You That How You Can Make Your Led Memory Game Using Arduino. Code And Circuit Diagram Is Given In Post. Please Subscribe Our Blog. An Arduino Based Led Memory Game.  Source Code -  /* Start the game by pressing one of the four buttons. When a button lights up,   press the button, repeating the sequence. The sequence will get longer and longer. The game is won after   13 rounds.  Generates random sequence, plays music, and displays button lights.  Simon tones from Wikipedia  - A (red, upper left) - 440Hz - 2.272ms - 1.136ms pulse  - a (green, upper right, an octave higher than A) - 880Hz - 1.136ms,  0.568ms pulse  - D (blue, lower left, a perfect fourth higher than the upper left)   587.33Hz - 1.702ms - 0.851ms pulse  - G (yellow, lower right, a perfect fourth higher than the lower left) -   784Hz - 1.276ms - 0.638ms pulse  Simo...