Are you using classic doorbell or electronic doorbell? Wired or Wireless?
My friend often call me instead of pressing my doorbell when they arrive, because I always miss the doorbell and left my guests outside, but how about postman or delivery service whom may not have my phone number? There are also special doorbell made for deafness people with lights alert, but it still can be missed easily, so I think it is time to reinvent doorbell with AWS IoT platform.
In this project, I am going to build an IoT doorbell using Raspberry Pi with the help of AWS IoT platform. Once the visitor pressed the doorbell, it will publish and an alert will be sent using AWS SNS service by Email or SMS, so I know someone is knocking my door no matter where I am. Visitors no longer need to call me and simply let the IoT doorbell to do the job, deafness people also benefit using it so they can alert from vibration of their phone.
To make it more advanced, USB webcam was added so our IoT doorbell will take a picture of visitor, upload it using FTP (or you can use AWS service for storing the image) and attach the link in the email or SMS message sent.
If you want you can add voice/video call capability on Raspberry Pi so you can talk to your visitor over the phone, or you can add sensor to get alert when someone try to break into your house. It can also interact with other IoT appliance inside home to pretend someone is here!
Procedure:
Setup AWS IoT node, AWS has a great step by step guide here: http://docs.aws.amazon.com/iot/latest/developerguide/iot-device-sdk-node.html
Follow step by step guide from AWS SNS to create topic and subscription: http://docs.aws.amazon.com/sns/latest/dg/GettingStarted.html
Tips:
1) Remember to check your inbox or phone and click the link to confirm the subscription
2) modify the message to with your web server link so we can simply click to open the image.
Create a rule in AWS IoT like this:
Once it is done, you will have these in AWS IoT
Now, wire and create your own IoT doorbell with Raspberry Pi. Install fswebcam (sudo apt-get install fswebcam
) and required NodeJS libraries (sudo npm install jsftp sleep onoff
) and run my NodeJS code.
If nothing goes wrong, press the doorbell and your phone/Email will ring within few seconds and you can follow the link in the message to see who is outside your house!
Email notification from AWS SNS:
I changed the link with dummy in the example, to make it simple I send the link of the directory where I store all the image captured so I can follow the link and click specific image to view, or you can make use of PHP to automatically open the last image captured.
Thanks for watching!
Comments