It’s the 1st of July, and hopefully you are lucky enough to go on holiday soon, this is a great way to make a useful project right before leaving home alone!
This is a cheap but powerful system of surveillance and alarm, we know it’s always hard to leave home for a long trip, but now you can be confident!
We’d love to thank first @sistemasorp , the #biicontest finalist that hacked this project!
The UBEC and PIR module can be powered from 7 to 12 volts. The out VCC wire of UBEC goes to GPIO pin 2 (5V), the GND one goes to GPIO pin 6 (GND).
The PIR module signal is open drain, so it needs a pullup resistor. A wire from GPIO 1 (3V3) to a 10K resistor lead, from the other resitor lead there are two wires: the first to GPIO pin 12 (GPIO1) and the second to PIR alarm.
Click here to check all the steps and code to replicate the alarm.
To use the exact same code they used, just execute these commands:
$ bii init project
$ cd project
~/project$ bii open osropa/pi_surveillance_alarm
~/project$ bii arduino:build
~/project$ bii arduino:upload
And that’s it!
Well, thanks again, @sistemasorp, we’re pretty sure that our users will enjoy your project!
For more detail: How to make a Raspberry Pi surveillance and alarm