Categories
TUTORIALS

Detecting presence of people with distance control and time lag

Mission

This tutorial will provide instructions on how to detect human presence with the capacity of using two kinds of sensors. It requires an Arduino Uno, an infrared motion sensor, and an ultrasonic sensor. The detection can help trigger actions of other sensors or intervention products. For example, for the purpose of our project, we want to detect if people are staying in our targeted area in public space, so our temperature and mister products can start running and moderating extreme temperatures for them.

While the infrared motion sensor can detect motion with sensitivity calibrations and the ultrasonic sensor can measure distance, both have advantages and shortcomings. Therefore, we propose a strategy that combines the two to validate the existence of people inside our target range.

Parts list

1 Ultrasonic Distance Sensor – HC-SR04

1 Infrared IR Body Motion Module – Stemedu HC-SR501 PIR Sensor

1 Arduino Uno

1 Breadboard

1 LED light

7 male to female jumper wires

2 male to male jumper wires

Circuit diagram

Code

Resource list

https://www.makerguides.com/hc-sr501-arduino-tutorial/

Leave a Reply

Your email address will not be published. Required fields are marked *