Project: Catch the Cookie Thief

At this point you should be comfortable with remotely accessing your Raspberry Pi either locally or via the internet. SSH should be straight forward. Executing Python scripts shouldn't be anything new.

Unfortunately I have a problem. Every evening when I leave my cookies out I find them gone the next morning! I know it ain't Santa as this is happening in the middle of the summer. Well, I need to get to the bottom of this and I am going to do this with the help of the Raspberry Pi!

In the following tutorials I show you how to do some home automation with multiple Raspberry Pi computers. I walk you through using the GPIO via Python 3, using the Raspberry Pi brand camera, socket communication, image manipulation, read analog sensors and receive digital inputs.

Project Details…


Ever wanted to get your computer to actually do something in the physical world? This project is for you. Over the course of twenty tutorials we will build a simple home automation system where we will control lights, read both digital and analog sensors, take pictures, back up files and much more.

It is expected that you are familiar with working in the Raspberry Pi environment and are capable of basic Python 3 programming. Although little experience is needed, you will find it easier to keep up if you have followed my previous Raspberry Pi tutorials and have a little Python 3 programming background.

  • How to setup the Raspberry Pi’s Pi Camera and take pictures and video with it
  • How to do basic image manipulation
  • GPIO use for basic inputs and outputs
  • Interfacing with both digital and analog sensors
  • File transfer and socket communication
Although you don’t need every item on the list, the complete kit required to complete the tutorials includes:

  • Raspberry Pi x2
  • Pi Camera
  • DHT22 Temperature Humidity Sensor
  • TMP36 Temperature Sensor
  • MCP3004 or MCP3008 Analog Digital Converter
  • LED
  • 1000ohm Resistor
  • Push Button
  • 5V Relay Breakout Board
  • Breadboard
  • 5V Power Supply that can be connected to breadboard
  • NPN Transistor (I use a 2N3904)
  • Home Router & Internet Connection