You are on page 1of 2

BURGLAR BY PIR SENSOR

Bing Wang

Faculty of Engineering, University of Ottawa


ABSTRACT

The project is to build a security system against burglars


by employing a passive infrared motion sensor (PIR) on
the Arduino Uno platform. Additionally, the system
incorporates a 20x4 LCD module and a 4x4 keypad to
facilitate user interaction. PIR sensor demonstrates good
sensitivity, coupled with an effective detection range,
proves to be well-suited for this security application.
Figure 1. Block diagram

1. INTRODUCTION 3. CIRCUIT AND PROCESS DESCRIPTION


A security system holds significant importance in Tinkercad is used to create the circuit, shown in figure 2.
safeguarding both public and private properties. While
numerous solutions exist, they often come at a high price.
This project aims to develop an affordable yet highly
effective security system that triggers an alarm in the
presence of potential burglars. The system utilizes a
passive infrared motion sensor (PIR) to detect the changes
of infrared spectra emitted by thermal sources, such as
human bodies or animals.

2. DESIGN AND MAIN COMPONENTS

The main components for the security systems are:


 Arduino UNO microcontroller
Figure 2. Design circuit [1]
 Display LCD I2C 20x4
 HC-SR501 PIR sensor
Given the absence of libraries in Tinkercad, a prototype is
 Keypad 4x4
built and debugged using the Arduino IDE, shown in
 Active buzzer figure 3.
The Keypad, incorporated through I/O pins, allows users
to interact with the system, including input PIN code and
activate/deactivate the anti-theft mode. The LCD display
is connected to the microcontroller through I2C bus,
facilitating interaction. PIR sensor is the key to monitor
constantly if there are any potential burglars approaching.
The block diagram is shown in figure 1.

Figure 3. Prototype
3.1 HC-SR501 Passive Infrared (PIR) Motion Sensor adjusting the contrast resistance on the I2C LCD
Adapter.
The SR501 will detect infrared changes and if interpreted  The keypad library was not compatible with the
as motion, will set its output low. The device requires code. Replaced it with another library [3].
nearly a minute to initialize and there is a delay function
in the code to accommodate the period. Every function of the security system has been thoroughly
tested and performs effectively in accordance with the
It offers a field of view spanning 110 degrees within a design specifications, as outlined in Table 1.
configurable distance range ranging from 3 to 7 meters. It
is shown in figure 4. Functions Input Out put
PIN verify Keypad: 1111 LCD: Password error!
PIN verify Keypad: 9856 LCD: PASSWORD EXACTLY!
Antitheft ON
Deactivate Keypad: D LCD: Deactivation
Detection Human body LCD: Theft around, Alarm
approaches the Buzzer: Alarm
sensor
Table. 1 Functions test and results

The PIR sensor exhibits excellent sensitivity in detecting


changes in the infrared spectrum, making it well-suited for
applications in security systems.

5. CONCLUSIONS
Figure 4. View area of SR501 PIR sensor [2]
This project successfully validates the anti-burglar
3.2 Control diagram
concept, offering the potential to enhance security systems
with economical solutions. Future work should focus on
Users are required to input the PIN code through the
developing additional functionalities to cater to diverse
keypad. Once the entered PIN code is verified, as pre- user requirements, including features like PIN code
defined in the system's code, the anti-theft mode will be customization, recording trigger times, mobile message
activated. The anti-theft mode can be deactivated by
alerts, and more.
pressing the letter “D” on the keypad.

The PIR sensor promptly sends a message to the


6. REFERENCES
microcontroller upon detecting any approaching burglars.
Subsequently, the microcontroller triggers a 30-second [1] Arduino Burglar, by paolo_cravero
alarm on the buzzer. It is shown in figure 5. https://projecthub.arduino.cc/paolo_cravero/arduino-burglar-
0769f7

[2] HC-SR501 Passive Infrared (PIR) Motion Sensor datasheet


https://www.epitran.it/ebayDrive/datasheet/

[3] Keypad library, by Chris--A


https://github.com/Chris--A/Keypad

Figure 5. Control diagram

4. EXPERIMENTAL RESULTS AND DISCUSSION

Several problems we met in building the prototype:


 The text in LCD display can’t be seen due to too
brightness of the backlight. It was solved by

You might also like