Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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.

eBook
$9.99 $19.99
Paperback
$32.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Building a Home Security System with BeagleBone

Chapter 2. Our Very First Alarm System

In this chapter we are going to design a single zone alarm system and learn how the basic components work. We will learn about comparators and how they are used in this case. We will also build and test a simple breadboard circuit that will simulate a single zone alarm. For example, the bell that rings when you enter a store.

Zones


A zone is an area that is being protected, and/or a collection of sensors that are protecting the zone. Zones can contain Passive Infrared Sensors (PIR sensors), glass break detectors, window contacts, or a combination of different sensors.

For example, "ground floor windows" could be a zone. Ground floor PIR sensors could be another zone. There are also "special" zones such as fire alarm zones. In commercial installations, the fire alarm zones and CO (carbon monoxide) detectors must have their own zone.

In the following chapters, you will see how we will use these zones to create a layered defense.

The hardware


The alarm system, in this case the BeagleBone, must be able to monitor the world around it. It does this by using ICs called comparators. You can think of a comparator as an op-amp with extremely high gain. Like an op-amp, when the voltage on the positive (+) input is higher than the voltage on the negative (-) input, the output goes high. When the opposite is true, the output goes low.

The LM339 comparator

We will be using an LM339 comparator. I chose the LM339 comparator because it has been around forever, and still comes in through-hole DIP packages. It is cheap and easy to source. Best of all, it is hard to blow up! The device has an open collector output. What this means is, a resistor is required to pull the output high. By connecting the output pull-up resistor to 3.3V, we now have a level converter that can be safely connected to the BeagleBone.

In the following diagram of the single zone comparator circuit, a 4.7K ohm resistor—R5 is used as a pull-up. The LM339 comparator...

The software


The programming language that I chose was JavaScript. This is because it is already well supported on the BeagleBone as it comes to you from the supplier. You can access the Cloud9 integrated development environment (IDE) from the Start.html link on the microSD card image.

There are plenty of very good tutorials and videos on how to use the Cloud9 IDE, so I have not included one here.

What the software does is, it watches an input pin waiting for it to go low. If the pin goes low, the software makes an output pin go high. This simulates an alarm panel monitoring a set of contacts, waiting for an alarm to occur.

In order to turn the alarm off, the software monitors another pin. If this pin goes low, it turns the alarm off. This is to simulate an alarm key switch being turned to the disarm position, but any type of contact closure will do.

Tip

Downloading the example code and image files

You can download the example code and image files for all Packt books you have purchased from...

Summary


In this chapter, we got our first introduction to the hardware and software that will be the heart of our alarm system.

We also learned how to stimulate the hardware using simple switches and an LED. We understood how comparators work and how to use them through this project. We briefly touched on EOL resistors and their significant use in this design.

In the next chapter, we will build the solid hardware that will be eventually connected to the 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.

Who is this book for?

This book is for anyone who is interested in alarm systems and how they work; for hobbyists and basement tinkerers who love to build things. If you want to build the hardware described in this book, you will need some basic soldering skills, but all the parts are of the thru-hole variety and are very easy to put together. When it comes to software, you can just run it as-is, but if you want to modify the code, you will need knowledge of Java and IDEs.

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
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

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

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 114.97
Raspberry Pi for Secret Agents
$32.99
Building a Home Security System with BeagleBone
$32.99
BeagleBone Robotic Projects
$48.99
Total $ 114.97 Stars icon
Banner background image

Table of Contents

9 Chapters
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

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1
(7 Ratings)
5 star 42.9%
4 star 28.6%
3 star 28.6%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Sarah Barney Jul 06, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Look at the cover. If you can solder components onto a silkscreened base to build a board like this, this book is for you.It covers just about everything else: sensors, actuators, code, and light carpentry.
Amazon Verified review Amazon
Charlie Brown Jan 30, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Got my security system up and running in a short while.
Amazon Verified review Amazon
Doug Duncan Feb 28, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I was given a reviewer's copy of 'Building a Home Security System with BeagleBone'. The fact that I was given a copy of this book has in no way influenced my review.Building a Home Security System with BeagleBone by Bill Pretty was a fun book to read.Bill starts out by giving a quick overview of alarm system sensors: passive infrared, glass break and temperature and then walks you through building a simple alarm.Chapters 3 and 4 walk you through planning how to layout your system, build the hardware and writing some software to control it.Chapters 5 and 6 take you through testing and automating the system.In chapters 7 and 8, Bill gives a solution that will allow you to use the built system to also go through an protect your home's computer network.The book concludes with a chapter that gives ideas on devices that could be added on such as a fingerprint scanner or RFID reads.Even though I might never actually build my own home security system, it was interesting to see how the BeagleBone can be used to run this type of system.
Amazon Verified review Amazon
CNC guy Feb 03, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
First ImpressionsDisclaimer: I recognized the author as a frequent participant on the BeagleBoard mailing list. Packt Publishing provided me with a copy of this book in order to do this review.This is a very short book. The nine chapters comprise a mere 88 pages. It seemed odd that such a short book had five technical reviewers.What this book is aboutThe first two chapters in the book cover the basics of alarm systems and a very simple single zone alarm system. The third chapter discusses planning for an alarm system installation.Chapters 4 and 5 are about building and testing hardware. Several printed circuit boards (PCB) are presented in these chapters.Chapter 6 covers automation. Chapters 7 and 8 provide ideas on using the BeagleBone to monitor your home networks as the alarm system functionality doesn't even come close to tapping out the capacity of the BeagleBone. The final chapter mentions some additions that could be made to your alaram system such as RFID readers, fingerprint scanners, etc.Who is this book for?If you are and experienced electronics hobbyist with some knowledge of Javascript contemplating building a security system this could be a good book for you. A lot of electronics is assumed in this book. None of the circuit components are explained with the exception of comparators which are briefly discussed and related to op-amps which are not covered at all. Transistors, etc. just appear in circuits.The book also seems to assume the reader is familiar with PCB manufacturing. The appropriate files are provided to etch your own PCBs, but unless I missed it there are no pre-made boards available. Wiring harnesses are shown and other than a tip to use needlenose pliers instead of an expensive crimping tool no direction is given on how to build these.If you understood what I said in the two paragraphs above, you will probably be fine with this book. Having never build a security system myself, I definitely learned a few things reading this book.Who the book is NOT forIf you have never built any electronics before or are just getting started in electronics this is probably not the book for you. I suspect you will be frustrated by a lack of fundamental electronics knowledge. I would be much less concerned if Javascript is new to you, but you have some background in electronics.If you are also interested in home automation, you might be OK if you read the BeagleBone Home Automation book by Juha Lumme (also reviewed here on my blog[...]) first to get some background before reading this book. Alternatively, some of the Make electronics books or similar might be helpful.Book Link at Packt[...]
Amazon Verified review Amazon
Ken Berck Oct 14, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Good book, a great way to get started into the home automation addition!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela