DIY Home Security + Automation using a Raspberry Pi

This instructable should help you set up a DIY home security + automation system that uses 433Mhz door/window sensors, 433 MHz PIR motion sensors and webcams to monitor your home and 433MHz outlets to control lights etc.

The original project was completed in phases and published on my personal blog at http://tkmaker.blogspot.com/2013/11/raspberry-pi-h…. This instructable is aimed at putting all that information together in one place.DIY Home Security + Automation using a Raspberry Pi

Step 1: Hardware Component List

The total hardware cost was approximately $85 (minus the Raspberry Pi)

Step 2: Hardware Setup

1. To increase the range of the transmitter and receiver, solder a 17cm single core wire to the ANT (antenna) connection on the transmitter and receiver.

2. Connect the DATA output of the transmitter to GPIO 17 of the Raspberry Pi (rev B in my case)Connect the DATA output of the transmitter to GPIO 17 of the Raspberry Pi (rev B in my case)

3. Connect the DATA pin input of the superheterodyne receiver to GPIO 21

4. Connect the VCC/GND pins of the 433MHz Rx/Tx to the Raspberry Pi 5V/GND lines

5. The 4×3 membrane keypad is connected as follows:
• Pin 7 on the keypad is ROW 0- GPIO 18
• Pin 6 on the keypad is ROW 1- GPIO 23
• Pin 5 on the keypad is ROW 2- GPIO 24
• Pin 4 on the keypad is ROW 3- GPIO 25
• Pin 3 on the keypad is COL 0 – GPIO 4
• Pin 2 on the keypad is COL 1 – GPIO 22
• Pin 1 on the keypad is COL 2 – GPIO 10DIY Home Security + Automation using a Raspberry Pi schematic

Step 3: Install prerequisite software + source code

1. Install WebIOPi from here: http://www.themagpi.com/issue/issue-9/article/web…
2. Install motion for webcam motion detection: sudo apt-get install motion

• For details on how to setup motion, take a look at my post here: http://tkmaker.blogspot.com/2013/11/raspberry-pi-…

3. I found this article on using 433MHz Tx-Rx modules with the raspberry pi. Follow the instructions here to install the 433Utils package. http://ninjablocks.com/blogs/how-to/7506204-addin…

• Run RFSniffer and trigger all the 433MHz door/window/PIR motion sensors that you want to use and note down the received code. This will be used to trigger the alarm in your system.

4. Clone my git repo for the source code from here: https://github.com/tkmaker/RaspberryPiHomeAlarm to any directory

 

For more detail: DIY Home Security + Automation using a Raspberry Pi


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:
LinkedinTwitter

Leave a Comment

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

Scroll to Top