Book Image

Arduino By Example

By : Adith Jagadish Boloor, Adith Jagdish Boloor
Book Image

Arduino By Example

By: Adith Jagadish Boloor, Adith Jagdish Boloor

Overview of this book

Table of Contents (18 chapters)
Arduino by Example
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Burglar Alarm – Part 1

In the previous chapter, there were a lot of coding skills to take on board. Understandably, it was difficult, but you made it through. In this chapter, we will use a lot of hardware and software. Haven't you always wanted to make your own burglar alarm? Catch the crook who stole your favorite cookies from the cookie jar? This chapter will teach you how to do just that.

Firstly, we will create a plan of how we are going to go about catching the culprit. Of course, it is not enough to simply sound an alarm when a thief is caught in the act; you also want to have evidence. You see where this is going, right? Yes, we will be using a wireless camera to get a mugshot of the culprit.

This chapter does use a fair share of code but, in addition to that, it requires quite a few components. Learning to use them in unison is the ultimate goal of this chapter. It is divided into the following sections:

  • The PIR sensor

  • Testing the camera

  • Communicating with a smart phone

  • The...