Motion detection: PIR sensor
Let's detect some motion!
What are we going to do?
In this activity you'll learn how the PIR sensors work. A passive infrared sensor (PIR sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. They are most often used in PIR-based motion detectors. We'll use it to turn a led on or off.
Let's get started
Follow these instructions carefully. You can click on some of the images to zoom in.
Always connect the components BEFORE powering the UNO board or YOU MAY DAMAGE YOUR BOARD OR COMPONENTS.
Now, what else?
Now is your turn:
- Think about how would you modify the code so the sensor acts differently depending on the motion detection.
- Do you think you're capable of adding a buzzer from the previous activity and make it sound when motion is detected?
Pingback: Encoder and servo – makit
Pingback: Seven segment display – makit
Pingback: Inputs and outputs: button – makit