How PIR Sensor Works and How To Interface It with Arduino
Want to build a DIY project where you need to sense movement within a certain range then HC-SR501 Passive Infrared (PIR) sensor is perfect. Learn how to use PIR sensor to detect motion of person or animal.
Components and supplies
1
HC-SR501
1
16x2 LCD display with I²C interface
1
Breadboard - 830 contacts
1
Breadboard Jumper Wire Pack (200mm&100mm)
1
Arduino Uno Rev3
1
Resistor 220 Ohm
Apps and platforms
1
ARDUINO IDE
Project description
Code
Interfacing HC-SR501 PIR Sensor to an Arduino
cpp
This code indicates the detection of motion.
Comments
Only logged in users can leave comments