Project tutorial
How can you Report Thief with a Photo on Twitter by Arduino

How can you Report Thief with a Photo on Twitter by Arduino

Secure your home and your shop from force entry where the thief photo will be reported on twitter and you will get notified with a SMS.

  • 1,562 views
  • 0 comments
  • 8 respects

Components and supplies

Apps and online services

About this project

The project is about how can you secure your home or your store with arduino and 1sheeld.

As our home and our savings are very important to us we would do anything to keep them safe and secure and as most of force entry came from breaking home windows or shop glasses as the thieves thought that the glasses are the least secure place to break in the place we are going to make it safer than before so don't worry no one can break through your home without getting what he deserves.

Am using a piezo electric sensor which can sense vibrations , so we can put the sensor on the home windows or shop front glass and if the vibrations exceeds a certain threshold that will means that a force entry might happens.

Here the 1sheeld's role will show up where it will take a photo for the place and tweet the photo to your twitter account reporting the thief photo and a noisy buzzer will turned on to notify anyone in the around that a force entry took place

Finally it will send you a SMS to your mobile phone telling you that someone is breaking in your home.

*1Sheeld is a platform for Arduino that allows you to tap into your smartphone's sensors and capabilities and lets you use them in your Arduino projects. Basically, It is a hardware shield that sits on top of your Arduino board and communicates over Bluetooth to this Android app, to transfer data between it and your smartphone.

You can check all 1Sheeld's tutorials which will take you from the early beginning into more and more advanced projects from that link .

www.1sheeld.com/tutorials/

and you can order it from here

Code

Use arduino to secure your store and connect it to twitterArduino
/*

   @title    : Use arduino to secure your store and connect it to twitter
   @author   : Ahmed Ismail
   @email    : ahmed.ismail3115@gmail.com
   @compiler : Arduino IDE

*/


/*
  To reduce the library compiled size and limit its memory usage, you
  can specify which shields you want to include in your sketch by
  defining CUSTOM_SETTINGS and the shields respective INCLUDE_ define.

*/

#define CUSTOM_SETTINGS
#define INCLUDE_CAMERA_SHIELD
#define INCLUDE_TWITTER_SHIELD
#define INCLUDE_BUZZER_SHIELD
#define INCLUDE_SMS_SHIELD

/* Include 1Sheeld library. */
#include <OneSheeld.h>

/* Define a boolean flag. */
boolean isMessageSent = false;

/* define the piezo electric on pin A0. */
#define piezo  A0


void setup()
{
  /* Start communication. */
  OneSheeld.begin();


}

void loop()
{

  /* put the readings of the piezo in variable named value. */
  int value = analogRead(piezo);

  /* Always check if the vibrations value is larger than a certain value. */
  if (value > 10)
  {


    if (!isMessageSent)
    {
      /* Send the SMS. */
      SMS.send("01028876652", "someone is storming your store");
      /* Set the flag. */
      isMessageSent = true;
    }

    /* Turn on the buzzer. */
    Buzzer.buzzOn();

    /* Turn on the camera flash. */
    Camera.setFlash(ON);
    /* Take the picture. */
    Camera.rearCapture();
    /* Wait for 10 seconds. */
    OneSheeld.delay(10000);
    /* Post the picture on Twitter. */
    Twitter.tweetLastPicture("Catch that thief");

  }
  else
  {
    /* Turn off the buzzer. */
    Buzzer.buzzOff();

    /* Reset the flag. */
    isMessageSent = false;
  }

}

Schematics

Use arduino to secure your store and connect it to twitter
1sheeld%20and%20twitter

Comments

Similar projects you might like

Control Music Volume and Ledbar Using Slider of 1Sheeld

Project tutorial by ahmed ismail

  • 1,467 views
  • 2 comments
  • 11 respects

My Motion Activated SMS sender

Project tutorial by Christiaan Neil Burger

  • 1,918 views
  • 0 comments
  • 5 respects

Home Automation using Arduino and 1Sheeld

Project tutorial by Ramy ElMallah

  • 3,930 views
  • 2 comments
  • 12 respects

Simple Door Prank with Arduino 1Sheeld

Project tutorial by Zowail

  • 1,136 views
  • 0 comments
  • 6 respects

SMS based Home Automation system using 1SHEELD

Project tutorial by Tanishq Jaiswal

  • 27,345 views
  • 11 comments
  • 63 respects

Export Data from Arduino to Excel Sheet

Project showcase by ahmed ismail

  • 14,681 views
  • 1 comment
  • 7 respects
Add projectSign up / Login