1 of 17

IoT and cloud based security monitor

Prabal Ghosh-AM.SC.P2CSC20040

Amrita Vishwa Vidyapeetham, Amritapuri

2 of 17

AIM

  • To increase the security of an House using IoT and cloud technologies
  • In this project we are going to use an Arduino IoT system as a small, inexpensive, and portable security device to alert users when motion is detected.
  • which helps to monitor and get alarms when motion is detected.
  • Therefore, advantages like these make this application ideal for monitoring homes in absence

3 of 17

Hardware

  • Arduino MKR WIFI 1010 Board
  • PIR Sensor
  • USB Cable (for power)
  • Connecting wires 
  • 330 Ω Resistor 
  • Light Emitting Diod

4 of 17

PIR sensor

ARDUINO MKR WIFI 1010 BOARD

  • wifi,bluetooth
  • 32 bit process
  • 3.3 v operating voltagte
  • 7 mA max current
  • 7 i/p pins
  • 1 analog pin
  • 8 interrupts
  • lipo batterysupport

​

5 of 17

ArchitecturE DIAGRAM��

6 of 17

Circuit DIAGRAM���

7 of 17

Video

8 of 17

Working Procedure��

  • In this project we will be building a motion sensor allarm ckt using a PR sensor.
  • we will also have an LED in our ckt, which lights up when motion detected.
  • The motion detector(PIR Sensor) will detect the motion and it will be connected to the Arduino MKR WIFI 1010 Board as one self contained device that can be places anywhere.
  • The Arduino then has to be connected to any wifi network with internet access.

​

9 of 17

Working Procedure���

  • We will use WEB HOOKS into our IOT application.This feature is built into the Arduino iot cloud.
  • We will create a WEB HOOK that interfaces with the “IF THIS THEN THAT”[IFTTT] platform.
  • IFTTT allows us to easily integrate API service calls with our IOT projects to build out robust applications.
  • An IFTTT system will be setup with an SMS or Calling applet
  • We will be using IFTTT to automatically call our cell phone, once motion is detected from a sensor.

​

​

10 of 17

Working Procedure�

​

  • When the PIR Sensor senses motion from an animal (such as a person), It will send a signal to the Arduino MKR WIFI 1010 . The MCU will then use the internet connection provided by the Wifi module and the home internet to connect to IFTTT, delivering a text message or phone call to the user’s mobile .
  • IFTTT will finally use its applet to send the message or or phone call to a specified phone number. For that the user must have to install one IFTTT application. Typically the message would say something like “Door Alarm 1 has detected motion” based on the location of that sensor placed in the house.

​

​

​

11 of 17

Software

  • Arduino Cloud
  • IFTTT
  • Arduino Web Editor

12 of 17

Arduino Code

#include "thingProperties.h"

​

int ledPin = 4;

int inputPin = 5;

int val = 0;

​

void setup() {

  Serial.begin(9600);

  delay(1500); 

​

  initProperties();

  ArduinoCloud.begin(ArduinoIoTPreferredConnection);

  

  setDebugMessageLevel(2);

  ArduinoCloud.printDebugInfo();

  pinMode(ledPin, OUTPUT);

  pinMode(inputPin, INPUT);

}

​

​

void loop() {

  ArduinoCloud.update();

  val = digitalRead(inputPin);

  if (val == HIGH) {

    digitalWrite(ledPin, HIGH);

    if (motion == LOW) {

      Serial.println("Motion detected!");

      motion = HIGH;

    }

  } else {

    digitalWrite(ledPin, LOW);

    if (motion == HIGH){

      Serial.println("Motion ended!");

      motion = LOW;

    }

  }  

}

13 of 17

Arduino Code (pt 2)

14 of 17

Outcome�

A Social-relevant Project which :

  • can be placed near gates, doors, windows or in rooms, and when anyone passes through the sensor, the user will get phone call and message about that.Than they can go and investigate physically or they can check the inputs from the surveillance system. This system is useful for home defense and security
  • Provide a cost effective solution.

​

​

​

15 of 17

Demonstration

16 of 17

Reference�

  • Tiong P.K., Ahmad N.S., Goh P. (2019) Motion Detection with IoT-Based Home Security System. In: Arai K., Bhatia R., Kapoor S. (eds) Intelligent Computing. CompCom 2019. Advances in Intelligent Systems and Computing, vol 998. Springer, Cham. https://doi.org/10.1007/978-3-030-22868-2_85
  • Youtube
  • Udemy
  • Coursera

17 of 17

Thank you�