First of all, you will need special hardware for making this, which you can buy in the link I'll provide. Keep in mind that this is an Arduino-like platform, so you will be able to make an almost-infinite amount of projects.
Buy Altair @ Tindie Store In this tutorial a manual execution pet feeder will be made, although later you will be able to modify it so it can work automatically.
Step 1: Introduction
In this tutorial an alarm that automatically triggers will be made, also it will be capable of being activated manually. 4 Altairs will be used; one will be the Hub, other will be the buzzer Altair, and the last 2 will have one of the sensors each one. Also, some things that may cause trouble among users will be explained. It will count with two sensors that at the same time will have events that will tell the Buzzer Altair when to buzz. The events are happenings that occur on an Altair and that we cannot control directly over the Hub.
This events sorted by sensor are:
- “Not presence”
- “Door is closed”
- “Door is opened”
As you can see, an event would be like a notification from the Altair to the rest of the Altair connected to the network.
And, through the hub is where we configure what Altair “listens” to that notification with an action. All this on the Interactions Menu. (Also, the actions might be controlled directly from the hub. Imagine it as a remote control for the TV).
Now that you know this, the actions that the Altair with the buzzer will have
- It will STOP the Altair from buzzing in case is buzzing, being activated manually or through the sensors; If the alarm is “Armed” it will remain armed even after sending the command “STOP”
- It would be the manual execution of the alarm. It could be used as a “sound check”.
- “Arm Alarm”
- This will put all the sensors alert and the Altair with the buzzer ready to make some noise.
- This will make that the Altair with the buzzer ignores all of it’s sensors; it won’t buzz in any way, even if you execute “Buzz”.
Step 2: Materials
Now that you know how the alarm works, I will enlist the necessary materials:
- 4 Altair
- 1 Buzzer
- 1 Movement Sensor
- This element's wiring may differ from the one used in the example, please verify how your sensor is wired before doing so.
- 1 Door Sensor
- 1 Protoboard
- Size won’t matter this time; it’s only for the buzzer.
In the next section the code used will be provided; every code has it’s own explanation.
Step 4: Presence Sensor Diagram and Code
If you have any doubt about the code, please comment in the section below!
Step 5: Door Sensor Diagram and Sensor
I know you are really good and won't have any trouble understanding the whole tutorial! :)
Step 6: Finale
In the end, you should see your interface looking like this.
A video is being edited in order to explain much better what we just saw.