Skip to content

CodeClubCornwall/santa-detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Make an infra-red Santa detector

Introduction

No more propping your eyes open with matchsticks to try and catch Santa! This Scratch program uses a low-cost, infra-red detector to set off an alarm when Santa sneaks into your room. It's a great introduction to using simple sensors on the Raspberry Pi, and can be adapted to lots of different projects.

What you will need

Hardware

  • A Raspberry Pi with an SD card loaded with Raspbian
  • A passive infra-red detector (try eBay)
  • Three female-to-female header leads

Software

  • Scratch GPIO 5

Steps

  1. Connect the sensor
  2. Test the sensor in Scratch
  3. Draw a sprite and add sound
  4. Program what happens when the detector spots movement
  5. Set up the detector in your room!

Worksheet & included files

Licence

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

Creative Commons Attribution 4.0 International Licence

Santa Detector by the Raspberry Pi Foundation is licensed under a Creative Commons Attribution 4.0 International Licence.

Based on a work at https://github.com/raspberrypilearning/santa-detector

Releases

No releases published

Packages

No packages published