Building a Home Security System with Raspberry Pi

Build your own sophisticated modular home security system using the popular Raspberry Pi board

Building a Home Security System with Raspberry Pi

Matthew Poole

3 customer reviews
Build your own sophisticated modular home security system using the popular Raspberry Pi board
Mapt Subscription
FREE
€29.98/m after trial
eBook
€21.84
RRP €31.18
Save 29%
Print + eBook
€31.99
RRP €31.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€21.84
€31.99
€29.98p/m after trial
RRP €31.18
RRP €31.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782175278
Paperback190 pages

Book Description

The Raspberry Pi is a powerful low-cost credit-card-sized computer, which lends itself perfectly as the controller for a sophisticated home security system. Using the on-board interfaces available, the Raspberry Pi can be expanded to allow the connection of a virtually infinite number of security sensors and devices. The Raspberry Pi has the processing power and interfaces available to build a sophisticated home security system but at a fraction of the cost of commercially available systems.

Building a Home Security System with Raspberry Pi starts off by showing you the Raspberry Pi and how to set up the Linux-based operating system. It then guides you through connecting switch sensors and LEDs to the native GPIO connector safely, and how to access them using simple Bash scripts. As you dive further in, you’ll learn how to build an input/output expansion board using the I2C interface and power supply, allowing the connection of the large number of sensors needed for a typical home security setup.

In the later chapters of the book, we'll look at more sophisticated topics such as adding cameras, remotely accessing the system using your mobile phone, receiving intrusion alerts and images by e-mail, and more.

By the end of the book, you will be well-versed with the use of Raspberry Pi to power a home-based security system that sends message alerts whenever it is triggered and will be able to build a truly sophisticated and modular home security system. You will also gain a good understanding of Raspberry Pi's ecosystem and be able to write the functions required for a security system.

Table of Contents

Chapter 1: Setting Up Your Raspberry Pi
Which flavor of Pi?
Preparing the SD card
Setting up your Pi
Summary
Chapter 2: Connecting Things to Your Pi with GPIO
Prerequisites
Say hello to the GPIO
Getting acquainted with the GPIO
The most elaborate light switch in the world
Summary
Chapter 3: Extending Your Pi to Connect More Things
Prerequisites
The I2C bus
Give me power
Building an I2C expander
Using ready-made expansion boards
Summary
Chapter 4: Adding a Magnetic Contact Sensor
Prerequisites
The working of magnetic contact sensors
Setting up the I2C port expander
Connecting our magnetic contact sensor
Monitoring the sensor
Anti-tamper circuits
Getting into the zone
Summary
Chapter 5: Adding a Passive Infrared Motion Sensor
Prerequisites
Passive infrared sensors explained
Give me power (again)
Connecting our PIR motion sensor
12V alarm zone circuits
Wireless PIR motion sensors
Logging detection data
Summary
Chapter 6: Adding Cameras to Our Security System
Prerequisites
The Raspberry Pi camera module
Be a video star
You have new mail
Night vision
Using USB cameras
The multicamera setup
Summary
Chapter 7: Building a Web-Based Control Panel
Installing the web server
Being in control
The master configuration file
Creating the web page
Remote access to our control panel
Summary
Chapter 8: A Miscellany of Things
Arming and disarming the system
Driving inductive loads
Beyond intrusion
Remote administration for our Raspberry Pi
Summary
Chapter 9: Putting It All Together
Alarm system diagram
Designing the control scripts
Building the control script
Automatically starting the system
Preserving the SD card
Conclusion
Summary

What You Will Learn

  • Understand the concepts behind alarm systems and intrusion detection devices
  • Connect sensors and devices to the on-board digital GPIO ports safely
  • Monitor and control connected devices easily using Bash shell scripting
  • Build an I/O port expander using the I2C bus and connect sensors and anti-tamper circuits
  • Capture and store images using motion detectors and cameras
  • Access and manage your system remotely from your mobile phone
  • Receive intrusion alerts and images through your e-mail
  • Build a sophisticated multi-zone alarm system

Authors

Table of Contents

Chapter 1: Setting Up Your Raspberry Pi
Which flavor of Pi?
Preparing the SD card
Setting up your Pi
Summary
Chapter 2: Connecting Things to Your Pi with GPIO
Prerequisites
Say hello to the GPIO
Getting acquainted with the GPIO
The most elaborate light switch in the world
Summary
Chapter 3: Extending Your Pi to Connect More Things
Prerequisites
The I2C bus
Give me power
Building an I2C expander
Using ready-made expansion boards
Summary
Chapter 4: Adding a Magnetic Contact Sensor
Prerequisites
The working of magnetic contact sensors
Setting up the I2C port expander
Connecting our magnetic contact sensor
Monitoring the sensor
Anti-tamper circuits
Getting into the zone
Summary
Chapter 5: Adding a Passive Infrared Motion Sensor
Prerequisites
Passive infrared sensors explained
Give me power (again)
Connecting our PIR motion sensor
12V alarm zone circuits
Wireless PIR motion sensors
Logging detection data
Summary
Chapter 6: Adding Cameras to Our Security System
Prerequisites
The Raspberry Pi camera module
Be a video star
You have new mail
Night vision
Using USB cameras
The multicamera setup
Summary
Chapter 7: Building a Web-Based Control Panel
Installing the web server
Being in control
The master configuration file
Creating the web page
Remote access to our control panel
Summary
Chapter 8: A Miscellany of Things
Arming and disarming the system
Driving inductive loads
Beyond intrusion
Remote administration for our Raspberry Pi
Summary
Chapter 9: Putting It All Together
Alarm system diagram
Designing the control scripts
Building the control script
Automatically starting the system
Preserving the SD card
Conclusion
Summary

Book Details

ISBN 139781782175278
Paperback190 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

Raspberry Pi Cookbook for Python Programmers Book Cover
Raspberry Pi Cookbook for Python Programmers
€ 25.18
€ 17.64
Raspberry Pi Networking Cookbook Book Cover
Raspberry Pi Networking Cookbook
€ 20.38
€ 14.28
Python Machine Learning Book Cover
Python Machine Learning
€ 39.58
€ 27.72
Python GUI Programming Cookbook Book Cover
Python GUI Programming Cookbook
€ 39.58
€ 27.72
Raspberry Pi Home Automation with Arduino Book Cover
Raspberry Pi Home Automation with Arduino
€ 20.38
€ 4.08
Practical Machine Learning Book Cover
Practical Machine Learning
€ 40.78
€ 28.56