How to Laser Security system

here you can learn step by step, how to make notification based laser security system
It’s Blynk application based system, once you done all the process just turn on your wifi and the security system automatically connect to your WiFi
once someone wants to break the laser beam or turn off the security system, you will notify by Blynk app through Blynk server.

MAKING OF LASER SECURITY SYSTEM

REQUIRED MATERIALS-

Node MCU
Laser Module
LDR Sensor
Battery
Buzzer

STEP-1
Place all the Parts according to your Base Material

STEP-2
MAKING CIRCUIT- Make the circuit board and connection by following the circuit diagram below

STEP-3
Download the Blynk application from App Store or Play Store, The Application is available on the both Platform

Open Blynk App and Register by your Email ID, Later on the Blynk will send you the Auth Token in Registered Email ID, which you can Use in Node-MCU CODE

Step-4
CODING – Use this code to programing the Node MCU but you must download the ESP8266 Board Driver and add the Zip library to the sketch section


Select- BOARD > ESP8266-Boards > Node MCU 1.0(ESP-12E Module)
Select- Communication Port(Com Port) and upload the code

//https://arduino.esp8266.com/stable/package_esp8266com_index.json

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "wQVar--bcBOiv_Xtyfwze2aqFXqc3sfM"; //auth token

char ssid[] = "TecH BoyS ToyS"; //wifi name
char pass[] = "techboystoys@15021995"; //password

int sensorstate=D7;

void setup()
{
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  pinMode(D8,OUTPUT);//Buzzer
  pinMode(D7,INPUT);//SENSOR
 
}

void loop()
{  Blynk.run();
   sensorstate=digitalRead(D7);
  if(sensorstate==LOW)

  { Serial.println("Someone is there, send notification");
    Blynk.notify("Alert!!! SOMEONE IS TRYING TO BREAK THE SECURITY");
    digitalWrite(D8,HIGH);
    delay(2000);
    
  }
 if(sensorstate==HIGH)

  {
  digitalWrite(D8,LOW);
      
  }

   delay(100);
  
}

*NOTE- You must add this link to Additional Boards Manager URLs- https://arduino.esp8266.com/stable/package_esp8266com_index.json

STEP-5
Power on the Security System and Open again Blynk application


You must turn on Device offline notification
Add the notification widget to Blynk home screen to get notification when someone breaks the Laser beam
Now Run the Blynk Engine and you can see the Device online Status.

NOTE- You must need an active WiFi to Run the Node-MCU

Congratulations…. You Have made an Awesome Project.

1 Comment

Leave a reply

Please enter your comment!
Please enter your name here

Related Articles