Takes a picture when motion is detected.
- Camera Module
- PIR motion detector
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 --upload-dir .(the flag specifies where pictures will be saved).
Now, when you move in front of the PIR motion detector, Tessel will take a picture!