Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

Arduino Based Security System using GSM & PIR Sensor

May 3, 2014 By Salman Khan

 

 

In present time Home/Office and many other place security is most important. In our absence these places are not secure. For make these palaces secure many peoples keep guards and many people prefer electronic security systems. In present time many types of security systems are available in market. These security systems are very accurate and easy to control and cheaply available and the most important thing is that they can be operated on low Voltage (Up to 12 Voltage). 

Here we have tried making a simple  arduino based security system using a GSM module and a PIR sensor. It gives a call to a pre specified phone number when any kind of intrusion is found. In the below pictures you could see the implementation of this security system.It is assumed that the reader has gone through the project how to get started with the arduino and done all the things discussed in it.

Prototype of Arduino and PIR Sensor based Home Security System

Fig. 1: Prototype of Arduino and PIR Sensor based Home Security System

Image showing Arduino based Home Security System in action

Fig. 2: Image showing Arduino based Home Security System in action

In most of security systems GSM is widely used. Here in this project GSM is used for making a voice call for alert. The main aim of this project is secure your house/office from thief.

In this circuit GSM and PIR sensor sensor are used. When any human (thief) comes in the range of PIR sensor, Arduino make a call to a fixed number. It means anybody in your house/office, then you can take a possible action against thief at same time.

Image showing Arduino based Home Security System under test

Fig. 3: Image showing Arduino based Home Security System under test

Image of captured visitor on mobile phone sent by Home Security System

Fig. 4: Image of captured visitor on mobile phone sent by Home Security System

Block Diagram & Working

This system is very simple. And the working of this system is very simple as well. In this system PIR sensor used for sensing and then arduino used for controlling and then A GSM module which is used for calling purpose. When anybody comes in range of PIR sensor, then sensor sends a logic signal to Arduino then Arduino take control and perform a given task. Hare a calling task is given to Arduino. Then arduino sends signals to GSM module for make a voice call.

Block Diagram of Arduino and PIR Sensor based Home Security System

Fig. 5: Block Diagram of Arduino and PIR Sensor based Home Security System

As we know that GSM module works on AT commands so Arduino sends AT commands to GSM module to make a call. To make call AT command is given below:

ATD<Mobile Number>;

If human body is moving in range of PIR sensor, its sends signal to Arduino continuously and Arduino make call again and again until Moving body comes in rest and until goes out of range. 

Circuit description

Circuit of this security system is very simple. Digital Pin number 9 of Arduino Pro Mini is directly connected to output pin of PIR sensor. And Rx and Tx pins of Arduino are directly connected to the Tx and Rx pins of GSM module respectively. It means a cross connection take place between Arduino and GSM module. Due to in-build Rs232 serial communication section on the GSM module, there is no need of RS232 serial communication section. PIR sensor is also available in market easily. And you can build it at your home also.

The programming part of this system is also very easy. In programming only we have to read the PIR sensor output and then we have to send only single AT command to GSM module to make a voice call. Programmer can also use message alert in this system instead voice call or with voice call by adding message AT commands. To send AT commands to GSM module Serial.println(); function used.

Serial.println (“ATD+919610126059;”);

Serial.println ();

Components Used

1.     GSM Module

2.    PIR Sensor

3.    Arduino

 

Project Source Code

###



#define PIR_input 9  
#define LED_alert 13
void setup()
{
  Serial.begin(9600);
  pinMode(PIR_input, INPUT);
  pinMode(LED_alert, OUTPUT);
}
void loop()
{
  int temp;
  while(1)
  {
   temp=digitalRead(PIR_input);
   if(temp)
   {
    digitalWrite(LED_output,HIGH);
    Serial.println("ATD9610126059;");
    delay(20000);
   }
   else
   {
    digitalWrite(LED_output,LOW);
    delay(100);
   }
  }
}


###

 


Circuit Diagrams

Circuit-Diagram-Arduino-Pir-Sensor-Based-Home-Security-System

Project Video

Related Articles Read More >

Wireless distance measurement using ultrasonic sensor
Computerized wireless Pick and Place Robot
Designing an Arduino-based ECG monitor using an AD8232 ECG sensor
Controlling Appliances Wirelessly using RF Technology

Featured Tutorials

  • Screenshot of Raspbian OS on Raspberry Pi RPi Python Programming 03: Raspberry Pi as Linux System
  • Raspberry Pi Models RPI Python Programming 02: Raspberry Pi Models
  • Raspberry Pi 4 RPi Python Programming 01: Introduction to Raspberry Pi 4
  • RPi Python Programming 05: Introduction to Python
  • RPi Python programming 04 RPi Python programming 04: Setting up Raspberry Pi Linux computer
  • Python Basics RPi Python Programming 06: Python basics

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

Recent Articles

  • Arduino’s L293D motor driver shield guide
  • NXP launches its first Wi-Fi 6E Tri-Band system-on-chip
  • Nexperia launches industry’s first 80 V RETs for high-voltage bus circuits
  • TDK releases low-profile medical sensors
  • Getting started with Raspberry Pi
...

RSS EDABOARD.com Discussions

  • Power controll on 230V with zero switching and PWM?
  • hysteresis variation mc sim
  • Creepage distance from primary to secondary of offline SMPS
  • HSPICE Simulation refuses to match the Spectre Simulation
  • Same geometry but slightly different results

RSS Electro-Tech-Online.com Discussions

  • How do I find the value of an exploded ceramic capacitor?
  • Any advice on identifying the HV wires on an old flyback.
  • How are you managing with the Covid-19 pandemic?
  • zener diode problem
  • Where has the fun gone?
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering