Skip to content

guruvaraja/parent-detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Raspberry Pi Parent Detector

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.

Lesson objectives

  • 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

Lesson outcomes

  • 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

Requirements

As well as your Raspberry Pi and all its standard peripherals, you'll need:

Hardware

  • Raspberry Pi Camera Module
  • PIR motion sensor module (try eBay)
  • Female-to-female jumper wires, at least 3 (try eBay)

Software

  • python-picamera

Extras

  • Camera Board 360 Gooseneck Mount (from modmypi.com) or equivalent

Time required

  • 1-2 hours

Steps

  1. Connect the PIR motion sensor
  2. Test the PIR motion sensor
  3. Setting up the Camera Board
  4. Install the picamera Python module
  5. Program the camera to preview on movement
  6. Recording to a file and playing back
  7. Stealth mode

Worksheet & included files

  • 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
  • (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

Licence

Unless otherwise specified, everything in this repository is covered by the following licence:

Creative Commons License

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

About

How to use a Raspberry Pi to detect who's been in your room

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published