Building a High-Tech Alarm System with Raspberry Pi (Second Edition)
()
About this ebook
Details This book discusses the basic components of any alarm system. All alarm systems have two basic functions. First, they monitor their environment looking for a change such as a door or window opening or someone moving about in the room. Second, they alert the legal owner or user to this change. The system described in this book uses a scan
Related to Building a High-Tech Alarm System with Raspberry Pi (Second Edition)
Related ebooks
Fire Alarms Kill People (Unless Used As Directed) Rating: 0 out of 5 stars0 ratingsBuild Your Own Autonomous NERF Blaster: Programming Mayhem with Processing and Arduino Rating: 0 out of 5 stars0 ratingsHome Security: Volume 2 Rating: 0 out of 5 stars0 ratingsArduino Projects with Tinkercad | Part 2 Rating: 0 out of 5 stars0 ratingsThe Complete Guide to DIY Smart Home Systems Rating: 0 out of 5 stars0 ratingsHow Sensors Work Rating: 0 out of 5 stars0 ratingsHome Automation with Intel Galileo Rating: 2 out of 5 stars2/5The Basics of Electronics Rating: 0 out of 5 stars0 ratingsFamily Handyman Trade Secrets: Fix Your Home Like a Pro! Rating: 4 out of 5 stars4/5A Rapid Reading Book for Fresh Electrical Engineering Graduates: For Job Aspirants Rating: 0 out of 5 stars0 ratingsArduino Essentials Rating: 5 out of 5 stars5/5Raspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi | 101 Rating: 0 out of 5 stars0 ratingsElectric Gas Lighting How to Install Electric Gas Ignition Apparatus Rating: 3 out of 5 stars3/5Security Engineering: A Guide to Building Dependable Distributed Systems Rating: 4 out of 5 stars4/5Arduino for Kids Rating: 0 out of 5 stars0 ratingsElectronics For Kids For Dummies Rating: 5 out of 5 stars5/5Making Your Home Work For You: A DIY Smart Home Guide, #1 Rating: 0 out of 5 stars0 ratingsManagement of Disused Ionization Chamber Smoke Detectors: Approaches and Practical Experiences Rating: 0 out of 5 stars0 ratingsRaspberry Pi Projects Rating: 0 out of 5 stars0 ratingsThe Internet of Things: Do-It-Yourself at Home Projects for Arduino, Raspberry Pi and BeagleBone Black Rating: 0 out of 5 stars0 ratingsArduino Projects For Dummies Rating: 3 out of 5 stars3/5Guidelines for Determining the Probability of Ignition of a Released Flammable Mass Rating: 0 out of 5 stars0 ratingsHacking Electronics: An Illustrated DIY Guide for Makers and Hobbyists Rating: 4 out of 5 stars4/551 High-Tech Practical Jokes for the Evil Genius Rating: 0 out of 5 stars0 ratingsNuclear Experiments Using A Geiger Counter Rating: 0 out of 5 stars0 ratings5 Easy Steps To A Smart Home Rating: 0 out of 5 stars0 ratingsArduino and Scilab based Projects Rating: 0 out of 5 stars0 ratings
Reference For You
The Dictionary of Obscure Sorrows Rating: 4 out of 5 stars4/5Spy the Lie: Former CIA Officers Teach You How to Detect Deception Rating: 4 out of 5 stars4/5Mythology 101: From Gods and Goddesses to Monsters and Mortals, Your Guide to Ancient Mythology Rating: 4 out of 5 stars4/5The Elements of Style, Fourth Edition Rating: 5 out of 5 stars5/5The Negative Trait Thesaurus: A Writer's Guide to Character Flaws Rating: 4 out of 5 stars4/51200 Creative Writing Prompts (Adventures in Writing): Adventures in Writing, #3 Rating: 4 out of 5 stars4/5The Emotion Thesaurus (Second Edition): A Writer's Guide to Character Expression Rating: 4 out of 5 stars4/51001 First Lines Rating: 3 out of 5 stars3/5The Everything Sign Language Book: American Sign Language Made Easy... All new photos! Rating: 4 out of 5 stars4/5Legal Words You Should Know: Over 1,000 Essential Terms to Understand Contracts, Wills, and the Legal System Rating: 4 out of 5 stars4/5Liespotting: Proven Techniques to Detect Deception Rating: 4 out of 5 stars4/51100 Words You Need to Know + Online Practice: Build Your Vocabulary in just 15 minutes a day! Rating: 5 out of 5 stars5/5ChatGPT for Authors: A Step-By Step Guide to Writing Your Non-Fiction Book Rating: 4 out of 5 stars4/5Anatomy 101: From Muscles and Bones to Organs and Systems, Your Guide to How the Human Body Works Rating: 4 out of 5 stars4/5Astrology 101: From Sun Signs to Moon Signs, Your Guide to Astrology Rating: 4 out of 5 stars4/5Grammar 101: From Split Infinitives to Dangling Participles, an Essential Guide to Understanding Grammar Rating: 4 out of 5 stars4/5A Dictionary of Symbols Rating: 4 out of 5 stars4/5Buddhism 101: From Karma to the Four Noble Truths, Your Guide to Understanding the Principles of Buddhism Rating: 4 out of 5 stars4/5Art 101: From Vincent van Gogh to Andy Warhol, Key People, Ideas, and Moments in the History of Art Rating: 4 out of 5 stars4/5Practical Alchemy: A Guide to the Great Work Rating: 5 out of 5 stars5/5The Everything Executor and Trustee Book: A Step-by-Step Guide to Estate and Trust Administration Rating: 4 out of 5 stars4/5
Related categories
Reviews for Building a High-Tech Alarm System with Raspberry Pi (Second Edition)
0 ratings0 reviews
Book preview
Building a High-Tech Alarm System with Raspberry Pi (Second Edition) - William Pretty
Building a High-Tech Alarm System with Raspberry Pi
William Pretty
Copyright © 2024 by William Pretty
____________________________________________________________________
All rights reserved. This book or any of its portion may not be reproduced or transmitted in any means, electronic or mechanical, including recording, photocopying, or by any information storage and retrieval system, without the prior written permission of the copyright holder except in the case of brief quotations embodied in critical reviews and other noncommercial uses permitted by copyright law.
____________________________________________________________________
Created in the United States of America
Library of Congress Control Number: 2024923320
ISBN: Softcover 979-8-89518-441-7
e-Book 979-8-89518-442-4
Published by: WP Lighthouse
Publication Date: 10/25/2024
____________________________________________________________________
To buy a copy of this book, please contact:
WP Lighthouse
Phone: +1-888-668-2459
support@wplighthouse.com
wplighthouse.com
Contents
Chapter 1: Introduction to Alarm Systems 1
Motion Detectors: 3
Glass Break Sensor: 4
Fire Alarm Sensors: 5
Access Control: 11
Chapter 2: Hardware 14
Voice Output: 29
Chapter 4: Software 35
Chapter 5: Printed Circuit Board 57
Printed Circuit Board 62
Chapter 6: Alarm System Wiring 72
Testing the Harnesses 75
Wiring the Sensors 78
Chapter 7: Planning your Alarm System 87
Step 1 – The Walk-about 88
Typical Four Bedroom House 89
Commercial Office Space 96
Laboratory 98
Chapter 8: Future Enhancements 101
CAD Software: 110
Smoke Alarms, Solenoid Locks, Suppliers: 111
Chapter 9: Adding more Inputs and Outputs 112
Trouble Shooting the System: 115
Chapter 1:
Introduction to Alarm Systems:
In this chapter we will discuss the basic components of any alarm system. All alarm systems have two basic functions. First, they monitor their environment looking for a change such as a door or window opening or someone moving about in the room. The second function of the system is to alert the human to this change. Our alarm system uses a scanning type software to detect intruders. We will use the ‘standard’ guard dog as an analogy. In a scanned type of system, the guard dog paces back and forth at the fence looking out for either an intruder or someone that it recognizes. In our design, if you have an alarm key, you can disarm the system and enter. In an interrupt driven system, the dog is asleep until it hears an intruder (or you). It then wakes up and deals with the situation. I have chosen the scanning method because in my opinion the software is easier to write and explain. It can scan all eight zones in about one second.
You don’t have to be an electrical engineer to install an alarm system, just a good carpenter, painter, and plasterer! I’m not by the way so I’ll leave hiding wires up to you.
Also, because our alarm system runs on 12 volts, you don’t have to be a licensed electrician to install it. If you can plug in a wall adapter, you can build and test this alarm system.
Alarm System Sensors:
Door / Window Contact:
The simplest and one of the most common sensors is the door / window contact. This sensor consists of a magnet which is installed on the moving part of the door or window. This magnet holds a switch closed. The switch portion of the sensor is attached to the door or window frame. Figure 2 shows what is inside a typical sensor of this type.
Chart Description automatically generated with medium confidenceFigure 1-1. Door / Window Contact Schematic
Text, whiteboard Description automatically generatedFigure 1-2. Door / Window Contact
Motion Detectors:
The next most common sensor is the PIR or Passive Infra-Red detector. This sensor measures the ambient temperature of the room and waits for a change in the ambient. Often called a ‘blip’.
Diagram Description automatically generatedFigure 1-3. How PIR Sensor works
Simple PIR sensors tend to be fooled by large pets (like your guard dog). For that reason, they have a pet
setting which ignores any object less than 30 pounds, which is moving close to the floor. More modern (expensive) sensors also have a mmWave sensor built in which tends to reduce false alarms and makes the sensor harder to fool. The dual sensor is about three times the price of a simple PIR detector and communicates with the panel with the same contact switch arrangement.
Figure 1-4. PIR Motion Sensor
Glass Break Sensor:
Another type of sensor is the glass break sensor. This type of sensor is commonly used by shop owners to help detect vandalism. This sensor uses a microphone to ‘listen’ for the sound of breaking glass.
Diagram, schematic Description automatically generatedFigure 1-5. How Glass Break Sensor works
The system consists of a sensitive microphone, an amplifier, and a filter (usually digital signal processing). The output of this filter is connected to a detector circuit which activates the alarm system contacts when the sound of breaking glass is ‘heard’ by the microphone.
Shape, background pattern Description automatically generated with medium confidenceFigure 1-6. Typical Glass Break Sensor
Fire Alarm Sensors:
Heat Detectors:
There are two basic types of heat detectors, mechanical and electronic. The electronic type of detector uses a thermistor as the sense element. A thermistor is type of resistor that changes its value based on the ambient temperature. In practice two thermistors
