Search
Close this search box.

Home

PIR Sensor based Security Alarm System

In this simple DIY Project, I will show you how to design and implement a PIR Sensor based Security Alarm System. I have designed this circuit using Arduino as the main controller and of course the PIR Sensor itself. Additionally, I have used UM3561 IC, which is a Siren Generator IC, to produce the necessary Alarm sound through a Speaker.

PIR Sensor based Security Alarm System using Arduino Image 1

Introduction

Generally, in security systems that are used in homes, shops, offices, etc., infrared or laser transmitters and receivers are used for accuracy and reliability. But these methods require a lot of monetary investment and infrastructure support.

A simple cost effective solution for Security Systems is implemented in this project where I will explain about a PIR based Security Alarm System, in which a PIR sensor is used instead of transmitter or receiver. This saves power consumption as well as it is a low cost implementation. PIR sensor is the short form of Passive Infrared Sensor.

PIR Sensor based Security Alarm Circuit Principle

The main idea of the circuit is to provide security. This is based on PIR sensor with an IC that produces siren. The PIR sensor detects the IR radiations emitted from the humans and it produces a digital output. This digital output is applied to the Arduino UNO.

Based on the digital signal from the PIR Sensor, Arduino UNO then triggers the UM 3561 siren IC. Thus it produces the sound when any human is detected.

The UM3561 is a ROM IC. It generates multi siren tones like ambulance siren, fire engine siren, police siren, machine gun sound.

PIR Sensor based Security Alarm Circuit Diagram

PIR Sensor based Security Alarm System using Arduino Circuit Diagram

NOTE: The circuit diagram shows the Oscillator Resistor (between Pin 7 and 8 of UM 3561) as 220Ω but it is 220KΩ. 

Circuit Components

  • PIR sensor
  • Arduino UNO
  • UM3561 Siren IC
  • NPN Transistor – 2N2222
  • Resistors 10KΩ and 220KΩ
  • Speaker 8Ω
  • Breadboard
  • Connecting Wires

PIR Sensor based Security Alarm Circuit Design

The designed system consists of Arduino UNO, PIR sensor, UM3561 IC, Speaker, transistor and a couple of resistors. The UM3516 IC is a Siren generator IC. It has 8 pins. First and sixth pins are the Sound effect selection Pins. Based on how they are connected, you can choose between 4 different types of sounds.

In this project, I have left open both the Pin 1 and Pin 6 to produce a Police Siren. Pin 5 is connected to +5V through an NPN Transistor (which is activated by Arduino UNO’s Pin 4).

One end of the 220KΩ resistor is connected to the seventh pin of the UM 3561 IC and the other end is connected to the eighth pin of the IC. Output is taken from the third pin of the IC and it is connected to a speaker through a resistor and transistor.

The base of the transistor is connected to the output of the IC through a resistor of 10KΩ. Emitter pin is connected to the ground while one end of the speaker is connected to the collector, while the other end is connected to +5V.

Coming to the PIR Sensor, its output is connected to Pin 3 of Arduino.

Code

PIR Sensor based Security Alarm System using Arduino Image 2

Working of PIR Sensor based Security Alarm System

  1. Make the connections as per the circuit diagram and switch on the circuit.
  2. The PIR sensor is powered and it detects the IR rays emitted from any human.
  3. This PIR sensor has a range of 5 meters. You can adjust the pot provided for the sensor to vary this distance.
  4. When any human is detected, the PIR sensor outputs a logic HIGH value i.e. voltage of 3.5V to 5V to ARduino UNO’s Pin 3.
  5. As soon as the Arduino detects logic HIGH on Pin 3, it makes the Pin 4 HIGH for a duration of 10S. During this time, the Siren IC UM3561 is activated as its Pin 5 provided with +5V.
  6. The siren generator has an oscillator internally, to produce the sound.
  7. The oscillator circuit is tuned to a certain frequency and using a 220KΩ resistor externally.
  8. Then it is passed to the control circuit, which depends on tone selection pins.
  9. These tone selection pins decide one tone from different tones produced by the IC.
  10. Thus oscillations along with selected tone are sent to the address counter. The address counter then sends the data to the ROM.
  11. ROM then sends the tone on the output pin 3.
  12. The output is given to the NPN transistor to amplify the siren.
  13. The base of the transistor gets voltage from output pin of the siren generator.
  14. Transistor starts conducting when it gets the cutoff voltage at the base and the speaker is negative pin and is connected to the ground.
  15. Thus sound produced can be heard from the speaker when human is detected.
  16. In the present circuit, it produces Police Siren sound.

PIR Sensor Based Security Alarm System Applications

Limitations of this Circuit

  • PIR sensor pot should be adjusted in such a way to detect the humans only.
  • This can detect the human only within its range of 5 meters.

20 Responses

    1. The same effect can be achieved by using an ultrasonic distance sensor with Arduino connected to it and a buzzer or a speaker ???? right????

  1. How many seconds does it stay on when triggered? Can one select using like a variable resister to set the duration? Then it can be used to turn on and off lights in a room just by walking in and out.

    1. I need that project report to help me Proceed with my Undergraduate degree research Thank u hope my request will meet Your positivity…

  2. Hi,
    Thanks for this simple project. When I connect the circuit except for Gnd connection, it always makes the sound.

    IC pin 2, PIR pin 3 should it be connected to -ve 9v supply?

      1. Hy Anusha, Can I connect this with my Arduino Board? Coz m using it for Home security purpose. So the user should be able to switch off the circuit. So can u pls suggest me sumthng regarding tht?

  3. I deed power electrical how can someone lean this project ? What are procedures if you to this project ?

Leave a Reply

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