Takes a picture and tweets it when motion is detected
Connecting the PIR: PIR's GND goes to Tessel's GND on the GPIO bank PIR's +5V goes to Tessel's Vin on the GPIO bank PIR's OUT goes to Tessel's G3 on the GPIO bank
Connecting the camera: Plug in the camera module to Tessel port A.
Running the code:
- Clone this repo.
- From inside this directory, run
npm installto install dependencies.
- Run the code with
tessel run index.js(the flag specifies where pictures will be saved).
Now, when you move in front of the PIR motion detector, Tessel will take a picture and will tweet it!