An AllThingsTalk starter kit experiment to receive notifications from a doorbell on your smartphone.
Ever been in a situation where you are working in the garden and someone rings at your door but you couldn’t hear the doorbell?
If yes, then this experiment is definitely for you.
This experiment will send out a notification to your smartphone when someone pushes the button representing our doorbell. It demonstrates
how you can connect hardware, use notifications and how to integrate an Android device as an IoT device.
Basic knowledge of Arduino is a must have, if you’ve never used an Arduino before we suggest the setup guide.
First we need to create our device. Log in to AllThingsTalk Maker and navigate to the ground in which you want to create your device. Next follow these instructions.
If you just created a new account, you will have a default ground called playground setup for you. You can use this ground to create your devices.
You find the device credentials under the SETUP tab of your device settings, which you can find behind the gear icon.
Doorbell_notifier.ino
file in your Arduino IDE which you can find under the examples and experiments folderWe are now ready to upload our sketch to the Arduino.
After the sketch has been compiled and uploaded, you should now see the assets created under your device in the AllThingsTalk Maker (you may need to refresh your screen).
It’s time to test the first part of the experiment. Click the button to initiate it. It will now show true or false depending on whether the button is down or not.
As a last step, we will create a pinboard for a nicer visualisation of our asset.
To visualise our date, we will create a pinboard. For more information on pinboards, please check how to use pinboards.
Now we will pin a control (visual representation) for our Push button asset.
To receive ground notifications, simply turn them on in the ground. You can do this as follows:
You will now receive a notification every time something in the ground changes. You can view these notifications both in the AllThingsTalk Maker
and AllThingsTalk Mobile!