How to use a Raspberry Pi to detect who's been in your room.
A Raspberry Pi is so small that it can easily be hidden; that makes it the perfect tool for this kind of project. The basic idea is to use motion detection to trigger video recording via the Raspberry Pi Camera Board. You can then leave the Pi hidden in your room and see who's been caught on camera when you get home from school.
- Understand a Passive Infra Red motion sensor
- Understand how to use the
picamera
Python module - Understand how to record videos
- Understand how to play back videos
- To have built and tested a Raspberry Pi parent detector
- Caught someone on camera
- Gained experience in Python programming
- Gained experience using the Raspberry Pi GPIO pins
As well as your Raspberry Pi and all its standard peripherals, you'll need:
- Raspberry Pi Camera Module
- PIR motion sensor module (try eBay)
- Female-to-female jumper wires, at least 3 (try eBay)
- python-picamera
- Camera Board 360 Gooseneck Mount (from modmypi.com) or equivalent
- 1-2 hours
- Connect the PIR motion sensor
- Test the PIR motion sensor
- Setting up the Camera Board
- Install the picamera Python module
- Program the camera to preview on movement
- Recording to a file and playing back
- Stealth mode
- The worksheet
- (Optional) Final version of Python code pirCamera.py
- Download to your Pi with
wget https://raw.githubusercontent.com/raspberrypilearning/parent-detector/master/pirCamera.py --no-check-certificate
- Download to your Pi with
- (Optional) Final version of Python code pirtest.py
- Download to your Pi with
wget https://raw.githubusercontent.com/raspberrypilearning/parent-detector/master/pirtest.py --no-check-certificate
- Download to your Pi with
Unless otherwise specified, everything in this repository is covered by the following licence:
Parent Detector by the Raspberry Pi Foundation is licenced under a Creative Commons Attribution 4.0 International License.
Based on a work at https://github.com/raspberrypilearning/parent-detector