Project tutorial
Home Security system prototype

Home Security system prototype © CC BY-NC-SA

This prototype that helps to alert most of people near our homes in case there is a thief in there .

  • 513 views
  • 0 comments
  • 0 respects

Components and supplies

Necessary tools and machines

Smartphone

About this project

Everything is illustrated in details in this link

http://www.instructables.com/id/Home-Security-System-Prototype/

Code

Home_Security.inoArduino
/* this code is for home security prototype,what happens is
when the arduino pin gets HIGH signal from the push button 
this activates Camera shield which turns the flash on and 
takes a photo , then using Facebook shield the photo is posted 
on My facebook account , and using Buzzer shield a sound
is heared , then by using SMS shield a message is sent to 
the home owner to call the police */

/* for any questions about this project , feel free to 
to contact me at monamohamed816@gmail.com */

#define CUSTOM_SETTINGS 

#define INCLUDE_SMS_SHIELD
#define INCLUDE_CAMERA_SHIELD 
#define INCLUDE_BUZZER_SHIELD
#define INCLUDE_FACEBOOK_SHIELD  

#include <OneSheeld.h> 

String number = " 01225286961 " ; //Home owner number
String sms = " Call the Police! " ; // content of the message
String Caption = " Help! there is a thief in my home " ; //the caption that will be written when the photo is posted on facebook
int pushButton= 13; 


void setup() {
  OneSheeld.begin();
pinMode ( pushButton ,INPUT ); }


void loop() {
  if ( digitalRead(pushButton)== HIGH )
{
  Buzzer.buzzOn(); // turns buzzer shield ON
  Camera.setFlash(ON); 
  Camera.rearCapture(); // Camera takes the photo

  OneSheeld.delay(10000);

  Facebook.postLastPicture( Caption , 1); /* "1" means :Facebook shield posts on facebook the last picture 
  captured by the camera and saved in camera folder . but instead of "1" you can write "0" which means to upload 
  the last picture captured by the camera and saved in OneSheeld folder */
  
  SMS.send( number , sms ) ; //SMS shield sends the message  
  

}
else 
{ 
  Buzzer.buzzOff();
  Camera.setFlash (OFF);
}

}

Schematics

Home_Security.fzz
Home_Security.fzz

Comments

Similar projects you might like

Security System With 1Sheeld

Project showcase by nada abdelnaby mady

  • 2,074 views
  • 0 comments
  • 2 respects

Thief Trap security system

Project tutorial by Ahmed Abd El Rahman

  • 3,634 views
  • 0 comments
  • 6 respects

Ultrasonic Security System

Project tutorial by Ivan

  • 34,885 views
  • 23 comments
  • 80 respects

Security System Using Arduino Bluetooth Camera

Project tutorial by amrmostaafaa

  • 13,242 views
  • 12 comments
  • 28 respects

Smart Home Automation And Security System Using 1Sheeld

Project tutorial by Team SADEE

  • 8,905 views
  • 6 comments
  • 31 respects

Bluetooth Security System

Project tutorial by Victor Carreño

  • 14,162 views
  • 2 comments
  • 37 respects
Add projectSign up / Login