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.
A Raspberry Pi with an SD card loaded with Raspbian
A passive infra-red detector (try eBay)
Three female-to-female header leads
Scratch GPIO 5 STEPS
Connect the sensor
Test the sensor in Scratch
Draw a sprite and add sound
Program what happens when the detector spots movement
Set up the detector in your room!
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!