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 hour3,524
Security System for your Home

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
SmartThings Shield for Arduino
SmartThings Shield for Arduino
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

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 • 160 followers
IOT Enthusiast

Comments

Add projectSign up / Login