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

5897 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

bruno_opaiva

6 months ago

Nice project! Pretty cool that you used a LCD display to show the results, something like a debugger.

jrachana

5 months ago

Thanks

arduino_uno534

8 months ago

greatt

jrachana

5 months ago

Thank you

leosalas706

8 months ago

EXELENT PROJECT

jrachana

5 months ago

Thank you

leosalas706

8 months ago

EXELENT PROJECT

jrachana

5 months ago

Thank you

jrachana

2 Followers

2 Projects

+1

Work attribution

2

8