This project will teach us how to use the PIR Motion Sensor, its configuration, wiring and how would it work using Arduino Technology. PIR Motion Sensor is a sensing device that detects moving objects, particularly people. This device is often integrated as a component system which automatically detect motion in a certain area.
Motion Sensing with Arduino UNO R3
Things you’ll need:
- PIR Motion Sensor
- Arduino UNO R3
- Uno R3 Sensor shield V5.0
- Power Cable
- 220 ohm Resistor
- Connecting Wire
Mounting your Uno R3 Sensor shield V5.0 to your Arduino UNO R3. Click here.
Connections of PIR Motion Sensor are as follow:
Building the Code
For you to make this project work, you’ll need first to download the Arduino Software and install it in your computer. To do so, visit the Arduino Website and download the application.
Connect your Arduino Board to your computer using the Power Cable.Open up your Arduino software and write the following code:
Select the Board and Port you are using, in the Menu Bar select “Tools”. Select the corresponding board you are using and the designated port. Check this out on how to select board, Easy Learning Kit for Arduino Tutorial.
Upload your code.
Now test your project by moving in front of the Motion Sensor and you’ll notice that the LED would turn on. Turns off if nothing is detected.
Check out our other Sensor Tutorials below:
- Learning Sensor Kit for Arduino Tutorial Ultrasonic
- Learning Sensor Kit for Arduino Tutorial Color Recognition