Project tutorial
Home surveillance system using skype calls

Home surveillance system using skype calls © MIT

When someone enter my home the ultrasonic sensor will detect this then 1Sheeld will make a Skype call to let me watch the thief.

  • 2,242 views
  • 0 comments
  • 5 respects

Components and supplies

About this project


Code

Untitled fileArduino
#define CUSTOM_SETTINGS
#define INCLUDE_SKYPE_SHIELD

#include <OneSheeld.h>

const int echoPin1 = 2;
const int trigPin1 = 4;
boolean didWeCall = false;

void setup() {
  OneSheeld.begin();
  pinMode(trigPin1, OUTPUT);
  pinMode(echoPin1, INPUT);
}


void loop()
{
 long duration1, distance1;

  digitalWrite(trigPin1, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin1, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin1, LOW);

  duration1 = pulseIn(echoPin1, HIGH);
  // convert the time into a distance1
  distance1 = duration1 / 29 / 2;
  
  if(distance1 < 5 && !didWeCall)
    {
      /* Call one of your Skype's contacts. */
      Skype.call("echo123");  
      /* Set the flag. */
      didWeCall = true;
    }
}
Ultrasonic sensor trigger Skype calls

Schematics

Circuit diagram
Ultrasnoic%20%26%20Skype%20call.fzz

Comments

Similar projects you might like

Skype Mobile

Project tutorial by Guest

  • 1,442 views
  • 0 comments
  • 3 respects

SMS based Home Automation system using 1SHEELD

Project tutorial by Tanishq Jaiswal

  • 30,130 views
  • 11 comments
  • 64 respects

Control your light system with your voice

Project tutorial by Maha Raafat

  • 42,037 views
  • 22 comments
  • 160 respects

Skype Emergency Call

Project showcase by Manuel Miguel

  • 1,173 views
  • 0 comments
  • 4 respects

Burglar Surveillance Camera

Project showcase by 1Sheeld

  • 3,922 views
  • 3 comments
  • 6 respects

Security System Using Arduino Bluetooth Camera

Project tutorial by amrmostaafaa

  • 15,158 views
  • 12 comments
  • 30 respects
Add projectSign up / Login