Kaustubh Agarwal
Published © GPL3+

Security System for your Home

A system that keeps you updated about the happenings of your house in your absence.The display is shown on your mobile.

BeginnerShowcase (no instructions)1 hour4,835
Security System for your Home

Things used in this project

Schematics

PIR motion fritzing

Code

Security system

Arduino
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>
#define   motion   2   // Motion sensor connected to pin 2 of arduino
char auth[] = "";

SimpleTimer timer;
WidgetLCD lcd(V1); 
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(2,INPUT);
  Blynk.begin(auth);
  while (Blynk.connect() == false) {
    // Wait until connected
  }
}

void loop() {
  // put your main code here, to run repeatedly:
     Blynk.run();
  timer.run();
   if(motion == 1)
   {
   
    Blynk.email("xxx@gmail.com", "Subject: Security", "Please Check! Something fishy!");
 lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Check"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "The House!");
  Blynk.notify("Check the House!!!!!!");
   }
  
}

Credits

Kaustubh Agarwal

Kaustubh Agarwal

14 projects • 191 followers
IoT Enthusiast SDE@ASML

Comments