top of page

Human/Object detection using Pir Sensor and the Arduino

In this tutorial, I'm going to show you how to Interface the PIR sensor to the Arduino uno.

ITEM REQUIRED

1 x PIR Sensor

1 x Arduino board (I am using An Arduino Uno).

1 x USB cable

1 x Computer with Arduino software installed

1 x Breadboard


Circuit Theory:


PIR sensor is used for detecting infrared heat radiations. PIR stands for passive Infrared sensor, it is an electronics device that can detect infrared radiations from the objects in its field of view. If you didn’t know, all objects with a temperature above Absolute Zero (0 Kelvin / -273.15 °C) emit heat energy in the form of infrared radiation, including human bodies. Due to this property it can be used in detection of moving living objects.

The output (in terms of voltage) of PIR sensor is high when it senses motion; whereas it is low when there is no motion (stationary object or no object). Some applications of PIR sensors are outdoor lights, Lift Lobby, Security Systems, shopping malls etc.

The PIR sensor IC consists of 3 pins- Vcc, Ground and Output.

Pir Sensor
Pir Sensor

 

Step 1

Connect the circuit as per Circuit diagram



Pir Sensor interfaced to Arduino
Circuit Diagram


 

Step 2:

Open a new window in the Arduino terminal and type the following code.



Connect the Arduino to your pc and upload the code to the Arduino board. Open the serial monitor to see the Graph. The pir sensor will detect your presence in the room and alert the Arduino.This can be set up as an interrupt also so that your arduino can do another task in the mean time.



Buy your Pir sensor here: https://amzn.to/3gt8SdV


Visit our store for more fun products here


50 views

Commenti


bottom of page