Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building a Home Security System with BeagleBone
Building a Home Security System with BeagleBone

Building a Home Security System with BeagleBone: Save money and pursue your computing passion with this guide to building a sophisticated home security system using BeagleBone. From a basic alarm system to fingerprint scanners, all you need to turn your home into a fortress.

By William Pretty
$15.99 per month
Book Dec 2013 120 pages 1st Edition
eBook
$19.99 $13.98
Print
$32.99
Subscription
$15.99 Monthly
eBook
$19.99 $13.98
Print
$32.99
Subscription
$15.99 Monthly

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details


Publication date : Dec 17, 2013
Length 120 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781783559602
Vendor :
BeagleBoard.org
Category :
Table of content icon View table of contents Preview book icon Preview Book

Building a Home Security System with BeagleBone

Chapter 1. Alarm Systems 101

In this chapter, we will cover the major components that almost all alarm systems have in common. By the end of the chapter you will realize that the so-called high tech alarm systems and access control systems are not really as complicated as some would like you to believe.

That said, let's get started.

Every alarm system in the world does two and only two basic things.

  • It monitors the world around it. If the alarm is your neighbor's dog, it keeps an eye on trespassers. If it is an alarm system, then the central control panel monitors a bank of contacts (switches) and waits for something to change (just like the dog). These contacts are the output parts of various kinds of sensors. This is how the sensor tells the panel that something has changed. There are many kinds of sensors, about which I will tell you shortly, but they all signal the panel in much the same way.

  • When the panel detects a change, it takes an appropriate action based on what the change was. It could be an alarm condition, or it could be a proper access control request. To use the dog scenario again, it could be you coming home from work, in which case the dog wags its tail. It could be the mailman, a bill collector, a burglar, or someone the dog doesn't know. In this case we have an alarm condition and the dog does its thing!

Note

Cool facts

It doesn't matter if it is the Bank of England or your cottage in Kent, the only major difference is how sophisticated (expensive) the sensors are and how fancy (expensive) the monitoring software is!

Also, I'm sure many of you have seen Tom Cruise drop from the ceiling to avoid the laser grid in Mission Impossible. You could have caught him with a $20 PIR motion sensor and saved yourself the price of the fancy lasers!

In my experience, you don't have to be an electrical engineer to install an alarm system, just a good carpenter, painter, and plasterer! By the way, I'm not, so I'll leave it up to you to hide the wires.

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 wart" you are there! Fascinated yet? Read on….

And now, more on sensors and how they work.

Door and window switches


The first sensor we will talk about is the door/window contact switch. This is by far the most common type of sensor used in the alarm industry. There are several variations of this sensor, but they all function in the same way. For example, you can buy a garage door sensor that has a large magnet and is physically large, so that when the wind sways your garage door, the rattling won't set off the alarm.

Typical door or window contacts

The preceding diagram shows a standard door or window sensor. Usually the contact position is when the reed switch is energized (the window is closed). If you aren't sure, check with an ohm meter.

The magnet normally holds the wiper of the reed switch against the normally closed contact. When the window or door is opened, the magnet can no longer hold the wiper against the normally closed contact and it opens.

You can think of a sensor as a magnetically operated single pole double throw (SPDT) switch. In fact, for testing purposes, you can use a toggle switch to simulate door and window contacts.

Remember what I said about carpentry?

Installed window contacts

The preceding photograph is of an actual installation. The magnet (bottom arrow) is installed on the window, while the switch is on the window frame. The top arrow shows a poor installation job! The installer should have drilled a hole in the window frame closer to the switch, so that not much of the wire is exposed. The less exposed wire there is, the harder it is for the bad guys to bypass the switch. The same rule applies to all types of sensor installations.

The PIR – passive infrared sensor

The next most common sensor is the passive infrared motion sensor or PIR.

It is called a passive infrared sensor because it does not transmit anything. If, for example, it used an IR laser, it would be an active sensor. PIRs come in many shapes, sizes, and price ranges. Many of the more expensive models can be configured so that the family pet does not activate the sensor.

PIR motion sensing

A passive infrared sensor measures the ambient heat in the room and then waits for a warmer body to pass across its viewing area. The resulting "blip" in the ambience is what it detects.

Fresnel lens

A Fresnel lens and a parabolic mirror are often used to extend the range of the sensor. Think of it as a flashlight in reverse. Instead of concentrating the light from the bulb into a beam, the ambient IR focuses on the sensor. In the preceding diagram, the mirror would be behind the Fresnel lens. The Fresnel lens acts like a camera lens to give the sensor a wider field of view. This is an extremely simplified explanation. Modern PIRs use digital signal processing to help eliminate false triggering. All you need to worry about is the field of view of the PIR, because that is what you will use when you install your PIRs. Most PIRs have about a 90 or 120 degree field of view. It is also possible to buy a PIR with a 360 degree field of view. This device looks like a dome, and mounts in the center of the room on the ceiling.

No matter how fancy the innards, in the end the result is a pair of contacts for your panel to read.

Glass break sensors

The next type of sensor that should be of interest to the reader is the glass break detector. This detector replaces the foil tape that you may have seen on the front windows of many stores. This tape was a pain to apply properly and depending on the climate, could dry out and crack.

Modern glass break detectors use a microphone, an amplifier, and digital signal processing to detect breaking glass.

Typical glass break sensors

The sound of breaking glass is picked up by the microphone, amplified, and then filtered and detected by the software of the sensor.

Once again, the result is a set of contacts that open and close to indicate an alarm to your panel.

Glass break sensor block diagram

The temperature rise sensor

The final sensor of interest is the temperature rise sensor. This sensor is replacing the ionization type smoke detector in many modern buildings. Unlike a cheap ionization type of smoke detector, burning toast won't set it off! Much like the PIR and the glass break detector, it uses digital signal processing to sense a rapid rise in the ambient temperature, which would indicate a fire.

Also like the other detectors, it signals the panel by opening and closing a set of contacts.

Heat rise sensor

Summary


In this chapter we covered the four most common sensors found in the average home or small business areas, and briefly discussed how they work. These sensors, with the exception of door contacts, come in all different shapes, sizes, and models.

For example, there are a number of different models of PIRs. Some are "pet tolerant", meaning that a dog or cat won't set them off in the middle of the night.

Tip

Cool fact

Well, maybe not exactly a fact, but I've been told that in tropical climates, small lizards crawling across a PIR have set it off. I suppose that a gecko up close to the sensor looks like Godzilla!

In the next chapter we will be learning the theory behind our first alarm system. We will also be writing some simple code to simulate a one-zone alarm system, using the built-in IDE of BeagleBone.

Left arrow icon Right arrow icon

Key benefits

  • Build your own state-of-the-art security system
  • Monitor your system from anywhere you can receive e-mail
  • Add control of other systems such as sprinklers and gates
  • Save thousands on monitoring and rental fees

Description

One of the best kept secrets of the security industry is just how simple the monitoring hardware actually is - BeagleBone has all the computing power you need to build yourself an extremely sophisticated access control, alarm panel, and home automation and network intrusion-detection system. Security companies make a fortune each year by charging exorbitant fees to their customers. You will learn how easy it is to make an alarm system with Beaglebone. A company-maintained-and-monitored alarm system has its place - your dear old mum is probably not going to be creating her own system any time soon. But if you are reading this book, you are probably a builder or a hobbyist with all the skills required to do it yourself. With Building a Home Security System with BeagleBone, you will learn everything you need to know to develop your own state-of-the-art security system, all for less than a year's worth of monitoring charges from your local alarm company! You will start by building and testing your hardware and open source software on an experimenter's prototype board before progressing to more complex systems. You will then learn how to test your new creations in a modular fashion and begin to utilize BeagleBone. Once your system is built and tested, you will install some of the professional-grade sensors used in modern alarm systems and learn how to use them. You will also discover how to extend your alarm system in a variety of different ways. The only limit will be your imagination.

What you will learn

Understand the components of an alarm system Build a basic zone 1 alarm system Modify your alarm system to perform complex tasks Build the actual hardware onto BeagleBone Integrate home automation into your security system Protect your network from intruders Keep an eye on your system from anywhere in the world Install and use a range of sensor equipment

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details


Publication date : Dec 17, 2013
Length 120 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781783559602
Vendor :
BeagleBoard.org
Category :

Table of Contents

16 Chapters
Building a Home Security System with BeagleBone Chevron down icon Chevron up icon
Credits Chevron down icon Chevron up icon
About the Author Chevron down icon Chevron up icon
About the Reviewers Chevron down icon Chevron up icon
www.PacktPub.com Chevron down icon Chevron up icon
Preface Chevron down icon Chevron up icon
Alarm Systems 101 Chevron down icon Chevron up icon
Our Very First Alarm System Chevron down icon Chevron up icon
Bigger and Better Chevron down icon Chevron up icon
Building the Hardware Chevron down icon Chevron up icon
Testing the Hardware Chevron down icon Chevron up icon
Automating Stuff Chevron down icon Chevron up icon
Protecting Your Network Chevron down icon Chevron up icon
Keeping an Eye on Things Chevron down icon Chevron up icon
Going Further Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Filter icon Filter
Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%

Filter reviews by


No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.