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
Arrow up icon
GO TO TOP
Building a Home Security System with BeagleBone

You're reading from   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.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781783559602
Length 120 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
William Pretty William Pretty
Author Profile Icon William Pretty
William Pretty
Arrow right icon
View More author details
Toc

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...

You have been reading a chapter from
Building a Home Security System with BeagleBone
Published in: Dec 2013
Publisher: Packt
ISBN-13: 9781783559602
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image