Coder Social home page Coder Social logo

arduino-sms-alarm's Introduction

Arduino SMS Alarm

An Arduino based burglar alarm that sends an SMS when motion is detected. It will send an SMS to you every 30 minutes while motion is detected (configurable).

SMS Screenshot

Requirements

PIR Sensor

Set up

Wire it up!

  1. Attach + on the PIR sensor to 5v on the Arduino
  2. Attach - on the PIR sensor to GND on the Arduino
  3. Attach OUT on the PIR sensor to DIGITAL 2 on the Arduino

Schematic Wired Up

Upload the sketch

  1. Plug your Arduino into your computer
  2. Open the arduino_pir/arduino_pit.ino sketch with the Arduino IDE
  3. Select your serial port (Tools>Serial Port) and click Upload

Your arduino LED will now be blnking. This means the PIR sensor is calibrating.

Setup the server

  1. Open server.py with a text editor
  2. Change the value of SERIAL_PORT to the serial port you set in the Arduino IDE. For Windows it might look like COM2, for Posix systems, it might look like /dev/tty.usbserial-AH00PP05
  3. Change the value of SMS_FROM to the number in your TelAPI account numbers (You can set this to another number, such as your own phone and it will cost a little extra. This is what I do.)
  4. Change the value SMS_TO to your cell phone
  5. Change the value of TELAPI_ACCOUNT_SID to your Account SID as found at your TelAPI dashboard
  6. Change the value of TELAPI_TOKEN to your Account Token as found at your TelAPI dashboard

Run it!

  1. Open up your terminal and run python server.py (assuming the terminal is CD'd to the directory where server.py is)
  2. The Arduino will blink it's LED for 60 seconds. Get out of the sensor's sight while it calibrates.

Now, whevever motion is detected in the infra-red spectrum (think body heat), server.py will send you an SMS up to once every 30 minutes.

Put it in a case (Optional)

  1. Get some plastic case, like one from a hummus & pretzel snack
  2. Cut a hole in the top for the sensor to be exposed (like R2D2 in an X-Wing)
  3. Cut a hole for the USB cable to stick out
  4. Tape or screw the sensor to the top
  5. Finit!

Cut a hole Cut a hole

Video

Quick video on youtube: http://youtu.be/9AuOZ4iV9zY

BEEP BEEP WHISTLE

X-Wing Car

YUM (Makes a nice case)

Sabra Hummus Single Serve

Free $25 credit when you sign up for a TelAPI account!

arduino-sms-alarm's People

Contributors

mattwilliamson avatar

Watchers

JeffJRare avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.