Search icon CANCEL
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
Raspberry Pi Embedded Projects Hotshot

You're reading from   Raspberry Pi Embedded Projects Hotshot Enter the world of mechatronic systems with the Raspberry Pi to design and build 12 amazing projects

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781849696227
Length 250 pages
Edition 1st Edition
Concepts
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Preface 1. Hello World FREE CHAPTER 2. A Raspberry WebIDE Example 3. The Arduino Raspberry Pi Interface 4. Christmas Light Sequencer 5. Internet of Things Example – An E-mail Alert Water Fountain 6. Raspberry Pi as a Personal Assistant 7. Raspberry Pi-based Line Following Robot 8. Connect Four Desktop Game using Raspberry Pi 9. The Raspberry Pi-enabled Pet/Wildlife Monitor 10. Raspberry Pi Personal Health Monitor 11. Home Automation using Raspberry Pi 12. Using a Raspberry Pi for Science and Education 13. Tips and Tricks Index

Setting up sensors for the key alert system


In this task, we will try to build a module that tries to alert the user if the things that we use daily (such as the keys to our apartment door or the car key) are not found in the right place. It helps us save a lot of time frantically searching for misplaced items. We will use a reed switch and a magnet for this module.

The uniqueness about this task is that we try to improve our lives with simple items that are easy to purchase and simple to build. A magnet and a reed switch are available from all hobby stores. You can also use a reed switch in door security systems. The following is a diagram of a reed switch interfaced to a Raspberry Pi:

Reed switch setup with the Raspberry Pi GPIO

Prepare for lift off

We will interface the reed switch as shown in the preceding diagram. Let's test it on a breadboard before setting it up in an enclosure:

Reed switch interfaced to Raspberry Pi

Engage thrusters

  1. We will be tracking whether the key is in the right place...

lock icon The rest of the chapter is locked
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 €18.99/month. Cancel anytime