You are on page 1of 11

Enhancing Security: Leveraging

PIR Motion Sensor with Arduino


Uno R3
Introduction

This presentation will explore


the integration of PIR motion
sensor with Arduino Uno R3 to
enhance security. We will
discuss the working principle
and practical applications of this
setup in various environments.
A Passive Infrared (PIR) motion sensor
Understanding PIR Motion Sensor detects changes in infrared radiation,
triggered by the movement of objects
emitting heat. The sensor consists of a
pyroelectric sensor which generates a
voltage when exposed to heat
changes.
Arduino Uno R3 Integration

The Arduino Uno R3 serves as


the central processing unit to
receive signals from the PIR
motion sensor. Its flexibility and
compatibility with various
sensors make it an ideal choice
for this integration.
The system requires a program to
interpret the signals from the PIR motion Programming the System
sensor and trigger appropriate security
actions. We will delve into the coding
required for this integration.
Components

The following components are


required for this project:
• Arduino Uno R3 board
• PIR Motion Sensor
• Jumper wires
• LED
• Resistor (220 ohms)
Hardware Setup

Connect the VCC pin of the PIR sensor to the 5V pin of the Arduino Uno R3.
Connect the GND pin of the PIR sensor to the GND pin of the Arduino Uno R3.
Connect the DATA pin of the PIR sensor to a digital pin of the Arduino Uno R3 (e.g., pin 2).
Connect the LED to digital pin 13 of the Arduino Uno R3.
Connect a resistor between the LED's long leg (anode) and digital pin 13 to limit the current.
Software Setup

#include <Arduino.h>

int motionSensorPin = 2;

int ledPin = 13;

void setup() {

pinMode(motionSensorPin, INPUT);

pinMode(ledPin, OUTPUT);

Serial.begin(9600);
Open the Arduino IDE. }
Write the following code: C++ void loop() {

int motionSensorValue = digitalRead(motionSensorPin);

if (motionSensorValue == HIGH) {

digitalWrite(ledPin, HIGH);

Serial.println("Motion detected!");

} else {

digitalWrite(ledPin, LOW);

Serial.println("No motion detected.");

delay(1000);

}
Application Scenarios

The PIR motion sensor and


Arduino Uno R3 integration has
diverse applications in home
security, industrial monitoring,
and smart environments. We will
explore real-world scenarios
where this setup can be
deployed.
Conclusion

The integration of PIR motion


sensor with Arduino Uno R3
presents a robust solution for
enhancing security. This setup
offers reliability, flexibility,
and cost-effectiveness for
various security applications.
Thanks!
Do you have any
questions?
INCLUDE YOUR NAMES
HERE:
Cordova, Mohammad I.

You might also like