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.

May 8, 2024

3266 views

2 respects

Apache-2.0

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

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

jrachana

0 Followers

0 Projects

+1

Work attribution

2

0