The project is designed as a surveillance system that detects motion using the pir sensor and then send a mail to the registered mail address in the mailer.js file
The project was developed using:
- Raspberry Pi - raspbian, Pir sensor
- Node.js - for the main application
var Gpio = require("onoff").Gpio;
var LED1 = new Gpio(2, "out");
var LED2 = new Gpio(4, "out");
var LED3 = new Gpio(17, "out");
var pir = new Gpio(27, "in", "both");
-
Raspberry Pi
- I used Model B+ with Raspbian - any model should be Ok, just be careful with the Gpio configuration pin mappings, they can differ
-
PIR motion sensor
- It normally connects to Analog Input (ex. on Arduino); however you can use it with Digital as well if you connect a 10K resistor between VCC & Signal
-
Led
- I used a RGB Led