M2M alarm system
In this recipe, we are going to apply what we have learned so far about M2M communications to build a simple alarm system that will be completely based on cloud M2M interactions. There will be one or many motion sensors that will send alarm triggers to a central station composed of an LED and a small buzzer.
Getting ready
There are two parts in this project: the motion sensor module, and the central base module with an LED and a sound buzzer.
This is the list of the required components for this recipe, not counting the Arduino MKR1000 boards and the breadboards and wires:
PIR motion sensor (https://www.sparkfun.com/products/13285)
330 Ohm resistor (https://www.sparkfun.com/products/8377)
Small buzzer (https://www.adafruit.com/products/160)
Let's now see how to assemble those modules. We are going to start with the motion sensor module. Simply connect the VCC pin of the PIR motion to the VCC of the Arduino board, GND to GND, and finally...