Motion Sensored Security System

by shazf in Circuits > Arduino

12317 Views, 287 Favorites, 0 Comments

Motion Sensored Security System

DSC_0153.jpg
DSC_0152.jpg
Motion Sensored Security System

This is a security system using an Arduino uno and a PIR motion sensor which triggers an alarm when motion is sensed and is best in securing you house from burglars.This project is useful as, when burglars hear the alarm ring loudly they often run off!

In my project i have used a relay circuit configured to the Arduino so that 12v could be given to the buzzer for a loud buzz!!!

The Parts You Will Need

ArduinoUno_R3_Front_450px.jpg
DSC_0133.jpg
280px-Relayshield_01.jpg
DSC_0134.jpg
619sfBxQj1L._SY355_.jpg
Free-shipping-65pcs-lot-Solderless-Flexible-Breadboard-Jumper-Cable-Wires-male-to-male.jpg
az_alligator_alligator_cable_.jpg

Parts List

  1. An Arduino UNO
  2. A PIR motion Sensor
  3. Jumper pins (male to male and Male to female)
  4. A 3-242V loud buzzer (HYT-3015B)
  5. An Arduino Relay Shield or my Relay Circuit
  6. A 12v battery or Power supply
  7. Some alligator wires (if you prefer not to solder)

Making the Relay Cicuit

10K_resistor.jpg
large_329_1N4007-1.jpg
transistor-bc548-npn-plastico.jpg
SRD-12VDC-SL-C.jpg

Parts you will need

  • A relay (SRD-12VDC-SL-C)
  • 10K Resistor
  • IN4007 Rectifier Diode
  • BC548 Transistor

Circuit

I have given the schematic below for the Relay to work with the Arduino in the word document below and after the circuit is complete you can test it using the Relay test code I made and it is too provided below.

Connecting the PIR Motion Sensor to Arduino

DSC_0138.jpg
DSC_0136.jpg
DSC_0137.jpg

Grab some jumper wires and connect the female side to the PIR motion sensor’s VCC, OUT and GND pins. Then connect the male side of VCC to 5v in Arduino, OUT to Digital pin 2 and GND to any GND pin in Arduino.

Connecting the Relay Circuit to the Arduino

Relay connection Diagram.PNG
DSC_0139.jpg
DSC_0141.jpg
DSC_0142.jpg
DSC_0140.jpg

Connect the wires from the Relay circuit to the Arduino as shown in the picture leaving the Buzzer’s wires only. After that it should be something like this.In my case the buzzer's wires are the green and brown one.

Connecting the Buzzer and Powering Up the Project

DSC_0143.jpg
DSC_0146.jpg
DSC_0144.jpg

Connect any one buzzer wires from the Relay circuit to the buzzer's positive wire and the other remaining wire to a 12v positive power source.Then you connect the buzzer's negative wire to the 12v power source's negative wire.

Finalizing the Project

DSC_0147.jpg
DSC_0149.jpg
DSC_0148.jpg

After all connections are complete upload the code i have given below to the Arduino and power up the Arduino using a 9v or 12v power supply.

Further improvements
There are many improvements for this project such as adding a 12v LED to the relay while the buzzer is connected and also adding a camera would mean that the Arduino could capture images in light of the burglar or by using a Arduino GSM shield the Arduino Could send the pictures immediately to the house owner.