Baps Bulletin Board Spy Cam

by philtrim in Circuits > Raspberry Pi

326 Views, 0 Favorites, 0 Comments

Baps Bulletin Board Spy Cam

97501730-55A2-4E47-AF52-FAF712955911.jpeg
A simple and easy Pi Spy Cam.

Supplies

(1) Raspberrypi
(1) Motion Sensor
(1) Picamera
(3) Male to Female connector wires

Connect PiCamera and Motion Sensor

31C6EDBC-C19A-4172-B513-CFF6BF96DFB4.jpeg
Connect the PiCamera to the camera connection on the Pi. Pay close attention on the proper orientation of the ribbon cable. The blue tab on the ribbon cable should face the Ethernet port.

For the motion sensor there are 3 pins on most all Motion sensors.
vin - data - ground
Connect a cable from PI pin 4 (5v) to VIN on the sensor. From PI gpio pin 7 (gpio pin 4) to data on sensor. Finally from PI pin 6 to the Ground on the motion sensor.

Python Code

from gpiozero import MotionSensor
from picamera import PiCamera

pir = MotionSensor(4)

while True:
pir.wait_for_motion()
print("Motion detected!")