Raspberry Pi Thief Detector

What is a Raspberry Pi ?

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It’s capable of doing everything you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games.
What’s more, the Raspberry Pi has the ability to interact with the outside world, and has been used in a wide array of digital maker projects, from music machines and parent detectors to weather stations and tweeting birdhouses with infra-red cameras. We want to see the Raspberry Pi being used by kids all over the world to learn to program and understand how computers work.

This is a simple project no matter you are a beginner or an expert! This is so simple that children could also make it.From this Project you learn about GPIO pins too!!

This is a video from Element 14, In our project we just change the Switch with our Trigger and some other things:


Visit http://www.element14.com/community/docs/DOC-65526/…

HOPE YOU ENJOY!!Raspberry Pi Thief Detector

Step 1: Find Materials Required:

For Making this you will need the following Items: (Items marked with * are only needed once for the initial process)

1. Raspberry Pi B+/ 2 and a Memory Card (pre-loaded Noobs/ Raspbian)
| www.element14.com/raspberry-pi/rpi2-modb-8gb-noob… |

2. Monitor or Tv (with HDMI Port)*

3. Keyboard, Mouse and Power Supply*

4.Computer speaker with external power supply

5. Hard Paper, Packing Foil and 2 Alligator clips

6. Solder Less Bread Board, Resistor () and male to male and male to female wire

7. An Audio file to played (Police Siren or any of your choice)

8. Raspberry Pi Case | www.element14.com/multicomp/mc-rp002-blk/raspberr… |

9. Daily tools like Scissors, Glue, Ruler and Pencil

10. Pi Break Out Kit (Optional) | https://in.element14.com/webapp/wcs/stores/servlet… |

Step 2: Making The Trigger!

1. Cut out a Rectangle of (you can change the dimensions according to you).

2. Now Fold it into 2 equal halves and make crease (Do not fold so hard that both sides touch each other).

3. Cut 2 Rectangles () of packing foil paste them inside on both the sides (Make sure that both of them dont touch each other).

4. Now attach the alligator clips on different sides (See pictures) and cut the remaining part.

This should work as an switch (You can test it) when some one steps on it the circuit would be complete and Raspberry pi would get the signals.Raspberry Pi Thief Detector schematic

Step 3: Booting and Coding Pi!!

1. Boot up your pi, If you are doing it first time then visit

2. Open terminal and start typing the following codes One-By-One:

  • Type: sudo apt-get update
  • Type: sudo apt-get upgrade
  • Type: sudo apt-get install python-dev
  • Type: sudo apt-get install python-rpi.gpio
  • Press: Y
  • nano pi-thief-detector.py
  • First save this file as a text file ( http://www.element14.com/community/resources/stati… ) and then your sound(to played )(.mp3) to a thumb drive (in Windows, right click link and select “Save target as. . .”): and then connect the thumb drive to your Raspberry Pi.
  • Open file manager on your Pi, copy sound (.mp3) to your Pi directory.
  • Then select pi-thief-detector.py.txt and double-click to open it.
  • Select all the text and then toggle to the nano editor running in LXTerminal and right click to select Paste.
  • Once the text is in nano, press control-x (you’ll be prompted to save your work).
  • Press Y and then press enter to save it as the same name.
  • Type: chmod +x pi-theif-detector.py
  • Type: sudo python pi-thief-detector.py


For more detail: Raspberry Pi Thief Detector

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top