10 May 2015

Arduino sending mobile Push notifications about front door

I wanted to be notified about people entering my house. This could be my neighbor to pick up the mail while being on a holiday, our cleaning lady when being at work or my spouse so I would know it was time to go home ;)

Why monitor entrance to your house?

My two main reasons for this project were:
  1. Security and control, when somebody would enter unexpectedly, I could ask somebody to go and take a look.
  2. Because I can. >:)

Two Arduino’s

I really like all the posibilties with Arduino’s. For this project I used two Arduino’s.

Monitoring the door

One to be monitoring my door with a reed contact sensor.

Reed contact sensor



When the door is opened, the input pin goes HIGH, so my Arduino 'knows' the door is open. When closing the input goes LOW again. Let’s call this one the “Front-door Arduino”.

Connection to the internet

Because I don’t have a wired internet connection at my door, I used a second (Ethernet-)Arduino that was connected to my router. Let’s call this one the “Internet Arduino”.
The Internet Arduino sends API calls to Pushover. Pushover makes it easy to send push notifications to your Android phone or iPhone.

RF-Link for wireless data communication

The front-door Arduino communicates with the Internet Arduino about the door status.
For this connection I used two DFRobot APC220 Radio Communication Modules. They make a perfectly stable serial connection between both ends.



APC220 Radio Communication Modules

Because of this separated setup, it also enhances security. When the ’intruder’ would tamper with the Front-door Arduino, the (hidden) Internet Arduino would notice and send me a push notification to tell me that there is something wrong with the setup.

Schematic

My Setup looks like this:

Pushover

As you can see, the Internet Arduino sends a message to Pushover. You can make a free account there that allows you to send and receive push notifications on your mobile phone.

In your Pushover account, you’ll find a userkey. Also register an ‘Application’, this will be your Arduino sending stuff. Pushover will give you an Application API token/key as well. You need those two values (userkey and API token).

Video

This works like a charm:

Source code

Do you want to build your own setup? Please let me help you with my source code:


Disadvantages

Right now, my Front door Arduino is consuming some power and I need a wire to an outlet to power my Arduino. There must be a smarter way to handle the ‘detecting’-part of this solution. I am working on this now. :)