in Apple, Arduino, Maker

Arduino Alarm with Push Notifications

A prior post talked about a lightweight and reliable method for sending push notifications from an Arduino to a mobile phone. In this post I’ll to describe my application for the notifications.

When looking for project inspiration I saw a couple of designs for monitoring a postal mailbox and sending a notification when the door was opened (e.g. when you get new mail). Those didn’t seem very useful but they did tickle a notion I’ve had of knowing if my garage door was left open for a period of time. I see this happen regularly in our neighborhood and it sometimes results in the loss of bicycles, tools and once even a car. In the spirit of truth-in-posting we once left ours open all night. Fortunately nothing was taken. Now on to the build…

The parts list, other than a basic pullup resistor and some wire, is pretty short and consists of

In simple terms the goal of the project is to send me an alert if the door is open longer than a specified period of time (e.g. 15 minutes) and to send me an update if the door closes after that time period. Quite simple eh? I also implemented a “health check” that enables the Arduino to ping my server periodically. A script runs on the server and if it doesn’t hear from the Arduino it too will send an alert letting me know there has been a monitoring failure. After all what good is a security device that fails silently?

If you’re interested in a project like this let me know and I can give you the source code (sketch).

 

Write a Comment

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

11 Comments

  1. Ron-

    Very interesting application and something I could use. I have been called countless times by my neighbors while at work for leaving my garage door open and would like to try doing this. Could you send me the sketch?

    Thanks!

    Philip

  2. Hi,
    I’m looking for a pretty similar project, I want to get a push notification to a mobile with a replay coming from Arduino. Could you share the sketch with me?

    Thanks in Advance

  3. Hi Ron,

    Yes please share the code with me, this is something of interest, I want to send push notification to my android device.

    Big thanks

    Dan

  4. I’m looking to do something similar and being new to Arduino’s having something to start on would be great. Could you send me the sketch ?
    THanks in Advance

  5. Hi Ron. I’d be interested in seeing the code for your Arduino Alarm with Push Notifications. I’m building a similar project but I am just getting started. Thanks!

  6. Hey I would like to try out the code. I’m working on a similar Ideal that I’m stuck on. I have only started out with the arduino’s and might need simple instructions on setting up and uploading them. thanks

  7. nice project ron

    i have been searching all over the not for a project like this because i have a school project just like this. can you send me the code for the magnetic reed switch. it would be a great assist to me .thanks

  8. Hi Ron. I’d be interested in seeing the code for your Arduino Alarm with Push Notifications. I’m building a similar project but I am just getting started. Thanks!

  9. That is a really great idea, would you mind sending me the sketch? I am in the process of building something similar. Thank you.

  10. Thanks for the comment, glad you liked the project! I’m happy to report it is still working even in the oven that is my garage this summer 🙂

  11. Nice project. It’s great to see practical Arduino projects, I’m just starting out but in looking for product ideas I’ve noticed a lot don’t have actual uses.