Subscribe to Make Magazine Today!

Make: Projects

Notifying Doorbell with PushingBox

Use an Arduino and an optional IP camera to build a doorbell that sends you a Push notification on your phone and an email with a picture of the person at the door.

Notifying Doorbell with PushingBox

connectedhome_banner

This project will help you to hack your doorbell to send Push notification and an email with an attached picture when somebody’s at the door. It use the free PushingBox service to delegate all the programming part and make things easy.
UPDATE (July 2013) : For those who don’t know how to program an Arduino, there is a new Internet Of Things wireless device called Notifon, preprogrammed and ready to use. More information at http://www.notifon.net.

Steps

Step #1:

PrevNext
Notifying Doorbell with PushingBox
  • How does it work ?
  • 1. When the doorbell is pushed, the Arduino sends an HTTP request to the PushingBox API.
  • 2. PushingBox launches the user's scenario and gets a picture from the web camera.
  • 3. PushingBox sends a Push notification to the user's phone and a mail message with the picture attached.

Step #2:

PrevNext
Notifying Doorbell with PushingBox
  • Prepare your material. You need:
  • An Arduino + Ethernet Shield
  • A Doorbell
  • A soldering iron
  • A 10K resistor
  • A web camera (optional)

Step #3:

PrevNext
Notifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBox
  • Open your doorbell.
  • Solder wires to the button's terminals.
  • Close the doorbell.

Step #4:

PrevNext
Notifying Doorbell with PushingBox
  • Plug the wires into the Arduino.
  • One wire on the 5v pin;
  • One wire on the 3rd input pin;
  • The 10K resistor between GND and the 3rd pin.

Step #5:

PrevNext
Notifying Doorbell with PushingBox

Test the connectivity with a simple Arduino program.

Step #6:

PrevNext
Notifying Doorbell with PushingBox
  • The hardware part is finished. Let's define the way you will be notified.
  • Go to http://www.pushingbox.com.
  • Login with your Google account.
  • Go to the My Services page.
  • Click on Add a service.

Step #7:

PrevNext
Notifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBox
  • Click on the service by which you want be notified.
  • Use Prowl or Pushme.to for iPhone Push notification;
  • Notifry for Android Push notification;
  • Toasty for Windows Phone Push notification.
  • Enter the name of your new service and fill in the API that this application gave you when you installed it.
  • Click Submit.

Step #8:

PrevNext
Notifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBox
  • Now, go to the My Scenarios page.
  • Create a scenario called "Somebody's at the door".
  • Click on Create scenario.
  • Click on Add an Action.

Step #9:

PrevNext
Notifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBoxNotifying Doorbell with PushingBox
  • First, add an action using the Email Service.
  • Fill in the mail Subject and the Body.
  • The third field is optional and is for attaching a shot from your IP camera to the email. Fill in the URL (publicly reachable) of your web camera. The camera's output must be a picture less than 100KB in size.
  • Do the same with your Push notification service and click the Back button.

Step #10:

PrevNext
Notifying Doorbell with PushingBox
  • Your scenario is now created.
  • Click on "Test" to test the scenario.
  • You should receive a Push notification on your phone and an email.
  • Make a note of the "DeviceID" value of this scenario. You will paste it into the Arduino code.

Step #11:

PrevNext
Notifying Doorbell with PushingBox
  • Download the Arduino source code from the PushingBox API page and open it.
  • In the #define DEVID1 line, paste the DeviceID of your scenario. Make sure you enclose it in quotes as shown.
  • Compile the code and program your Arduino.
  • You're done! Test it, install it on your door and enjoy! :)

  • Jake McMillian

    The Arduino Uno should work great for this job: http://amzn.to/ItkkQT
    You’ll also need an Arduino Ethernet Shield: http://amzn.to/JZxI1a
    And an Internet-enabled webcam: http://amzn.to/JZxKWU

    • Rafael Gervásio

      Ei amigo, para fazer esse projeto é necessário o Arduino Uno e o Arduino Ethernet Shield?

    • https://www.facebook.com/milan.dima Milan D

      >And an Internet-enabled webcam: http://amzn.to/JZxKWU
      As far as I see the cam you posted here is not an IP cam. I’m not sure you can access those images via web services.

  • Goli Mohammadi

    We also have a great selection at the Maker Shed: http://www.makershed.com/SearchResults.asp?Search=arduino&Submit=Search

  • Eric Koelle

    *Update* – Figured it out. This is how you do it using a Foscam camera:

    http://URL:PORT/snapshot.cgi?user=USERNAME&pwd=PASSWORD

    Just replace the URL, PORT, USERNAME and PASSWORD with your own and you should be good to go.

  • Brian Isenstein

    Looks like it’d still ring the bell, as they didn’t disconnect any part of the doorbell circuit. Just added the 2 wires to read if the button is open (not pressed) or closed (pressed).

  • Jay Bryon

    For a wireless doorbell, it’s pretty much that simple, but if you’re old-school with a wired doorbell and transformer off house current, you’ll want to check voltage first. You could get away with just reading the terminals with the Arduino, but if there’s a common ground between the Arduino and the doorbell, you might get excessive voltage to the board and let out the magic smoke, so to speak. This is where I’d opto-isolate it, something as simple as a voltage-appropriate bulb facing a cds, in a tube of black heat-shrink or electrical tape, with the CDS (photoresistor) read by the Arduino. But that’s just one approach.

    • https://www.facebook.com/milan.dima Milan D

      connecting my arduino to the bell actually makes the bell ring constantly. Anyone knows how i could solve this?

  • Boj

    Look for a WiFly shield or similar (not to advertise, but they sell it on SparkFun [only place I know of that sells one])

  • Bader Rashed

    same my Question is it Ethernet or WiFi or Bluetooth to the adurino which is attached to the doorbell?

  • Tommy Inglis

    I bought the camera here http://amzn.to/JZxKWU and was curious if you could offer any insight into discovering the URL?

    • https://www.facebook.com/milan.dima Milan D

      this is not what you need. you need an ip cam

  • Petar

    Hi Brian, i would like to talk to you about ARM, cose like you im also trying to use it instead of a micro, and have problems. btw how did you develop the knocking sensor, and what language did you use?

  • http://twitter.com/AaronKlapheck Aaron Klapheck (@AaronKlapheck)

    Loved this user guide, one of the best I have come across! With that being said, I am confused about one aspect of this.
    Not sure why Prowl and Notify My Android (NMA) are being used in this process. These apps are completely unnecessary and complicate this process. PushingBox allows you to send emails directly to ANY email account and twitter (tested this and it works). Most people have email/twitter notification already on their phones so not sure why anyone would need a specialized notification app. Not only that, but the PushingBox Email service allows you to send a photo where Prowl and NMA do not. Also checked the user reviews for NMA and there are known issues with notifications not showing up (experienced this myself on one occasion). Whereas I have never had notification problems with my email. Simplify, simplify; best to use apps and services which are highly reliable and the user is already familiar with whenever possible.

    • https://www.facebook.com/milan.dima Milan D

      >Not sure why Prowl and Notify My Android (NMA) are being used in this process. These apps are completely unnecessary and complicate this process.

      The prowl service sends a notification immediately (+/- 4 seconds) after the button was pressed.

      You would get a notification from your mail only when the mail was downloaded. But e-mail clients on cell phones usually check only every minute for mail so it’s theoretically possible that you got the notification 1 min after the button was pressed.

  • Rafael

    Onde encontro essa mesma campainha?

  • Michael

    I want to do this with a hard-wired doorbell using an opto-isolator. Would the wiring scheme be the same? Also, can someone tell me what the 10K resistor does in this example?

    • omlow

      Hi michael,
      The 10k resistor is there to debonce the input & having a stable reading from the switching.

  • Mc

    Sir, what exact Arduino boards did you used for this project???

  • CloudyStrife

    Hello.
    I am interested in this project. However, I dont see any web camera connection and code. Please give me a full schematic diagram including web camera connection and also full code. Thanks

  • http://wirelessdoorbell101.wordpress.com bestwirelessdoorbell

    Excellent idea. Now, smartphones are getting more smarter :-)

  • sanket

    I am doing this project and i purchased ip camera(d-link dcs-930L)..but i am not able to configure it to get image from ip camera from other pc with same ip address.but i am able to access from my pc. pushing box is showing image url not found error.I think i have to assign public ip address to but.but i dont know how to do it.can anybody please help me..?? thanks in advance.:)

  • Dave Gaffin

    I feel goofy for even asking since I am an engineer and this DIY should be straightforward to me…anyway…

    Any chance someone may have out together a VIDEO tutorial on building this out?

    Have a great day and thanks for informing us about this this far.:-)

  • http://www.badri.com Raj

    i have used this guide and the notifying doorbell is working perfectly except for one problem. i am getting random fake notifications even when nobody has pressed the bell. these notifications occur when i switch on/off a tube light or fan. Please help

    • https://www.facebook.com/milan.dima Milan D

      Hi Raj, I had the same pretty much the same problem and solved it by putting another pull-down resistor (10k) between the Bell wire and Pin 3. Good luck!

  • Xavi

    Can the Arduino Yun be used for this project?

  • Nathan

    Since a Raspberry Pi, has a Ethernet port built into it would this work for the project?

  • Shap

    Hye, can anybody explain to me how to configure my IP cam? how do i make any picture that captured from my cam goes directly to internet and became publicly reachable? if i able to do so, and then how does that picture automatically appears in my notification email? need any help or any slightest clue could give me an idea to further my work on it.. thank you.

  • Xavi

    Hi, I have a Lorex Wireless Network Camera and I have no idea how to find the “picture URL” Can anybody help out on how to obtain this I’ve looked through all the settings and I found nothing. There is a folder with the snap shots saved in it but how do I access them through the push notification??? Any help is greatly appreciated. you can reach me at [email protected]
    with suggestions. Thanks,

  • Pingback: Notifying Doorbell with PushingBox | MAKE | Blog @ nomanshah.com()

  • Sureshy Jinx

    Hello. as for the Web Camera, how do you connect them to the board?

    • Marius

      i understand it is an ip camera so it is connected to a router, not to te arduino

  • Sureshy Jinx

    Isit a Web Camera or an IP camera?

    • Charlie Heaton

      ip

  • jagjit

    please help me with the type of Arduino required and the entire connection. as soon as possible. please

    • Charlie Heaton

      Arduino duemilanove and an Ethernet shield for it

  • Charlie Heaton

    What type of door bell is that?

  • Pingback: 초인종 벨 알림 서비스 구현하기 | WIZnet Academy()

  • Frank

    Can you tell me the doorbell you used

    make and model please

  • Pingback: WIZ珍藏 #4:门铃推送通知()

  • http://clickok.tk Williamst

    Присоединяйтесь и зарабатывайте прямо сейчас!

    Рекомендую Вам сайт по заработку на CAP (Заработок на Системе Активной Рекламы).
    Мы собрали для Вас самые лучшие русские сайты для заработка без вложений, регистрируйся и зарабатывай достойно!

    Перйты на сайт вы можете по адресу: Заработок на кликах
    Больше сайтов – БОЛЬШЕ ВАШ заработок!

  • Sallu

    Which IP camera gives an output picture of less than 100kB?

  • Nick Hanson

    Can I use a WLAN Shield instead?

  • Nick Hanson

    I was thinking something like this or is using a repeater with the ethernet shield still way better?
    nRF24L01+ 2.4GHz Wireless Transceiver Arduino Compatible https://www.amazon.com/dp/B00E594ZX0/ref=cm_sw_r_awd_jqgmvb1MVWABY

  • Spencer Tomlinson

    I got mine sending me Tweets and emailing me but it won’t play happily with my Foscam FI8918W. Keeps asking for authorisation even though I use this URL.

    http://xxxxxx.dyndns.org:xxxx/snapshot.cgi?user=guest=xxxxx&count=0

    Obviously the xxxx are where my personal information and passwords are. Does anyone know how to get past the authorisation screen as I keep getting emailed 404 not authorised images that won’t open….EXIF needed to examine the content of the image.

    If anyone knows how to get around the Foscam not signing into to free up a snapshot, I would be very grateful. Many thanks kind regards Spence

  • Spencer Tomlinson

    Sorry for the double post but I fixed the problem, people wanting to snap using their Foscam cameras use this URL

    http://YOUR IP OR DYNDNS HERE:YOUR PORT HERE/snapshot.cgi?&user=YOUR USERNAME HERE&pwd=YOUR PASSWORD HERE&count=0

    Good luck and happy….eerr snapping..

  • Pingback: PushingBoxを使って訪問を知らせてくれるドアベル | WIZnet JP Blog()