Chapter    20

Challenge 5: Examining the Software

Well, you’ve crossed the halfway point in the book and now you’re ready to tackle the sketch for the Challenge 5 gizmo. At this point you should have the Challenge 5 gizmo all wired up and ready to be placed in a secure location so it can detect intruders.

We have a specific device here with one specific duty—to detect motion by using the PIR sensor to detect changes in infrared radiation. What is infrared radiation? Well, to put it simply, it’s heat. And all forms of matter give off heat. As matter (such as a person) moves in front of the sensor, the precise amount of heat reaching the sensor will vary.

We’re going to give you the actual sketch to upload to your Arduino, but let’s take just ...

Get Arduino Adventures: Escape from Gemini Station now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.