Baps Bulletin Board Spy Cam
by philtrim in Circuits > Raspberry Pi
326 Views, 0 Favorites, 0 Comments
Baps Bulletin Board Spy Cam
A simple and easy Pi Spy Cam.
Supplies
(1) Raspberrypi
(1) Motion Sensor
(1) Picamera
(3) Male to Female connector wires
(1) Motion Sensor
(1) Picamera
(3) Male to Female connector wires
Connect PiCamera and Motion Sensor
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.
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!")
from picamera import PiCamera
pir = MotionSensor(4)
while True:
pir.wait_for_motion()
print("Motion detected!")