Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Arduino Based Security System using GSM & PIR Sensor

By Salman Khan May 3, 2014

 

 

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


Filed Under: Electronic Projects
Tagged With: Arduino, gsm, pir sensor, security system
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Innovus Scan Reorder deletes Scan In Pad
  • How to get 3D model of ACPL-847-300E
  • is there vay for credit card size phone charger?
  • How to find the resonance frequency and impedance of a planar spiral coil in HFSS?
  • Why so few Phase shift full bridge controllers?

RSS Electro-Tech-Online.com Discussions

  • Can I make two inputs from one??
  • The Analog Gods Hate Me
  • How to make string LEDs?
  • Fixing board, Easy question HEX SCHMITT
  • It's Amazing What A Buck And A Quarter....

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How to monitor temperature and humidity on a TFT display with graphics
  • Tria modules integrate edge AI processing with multi-core processors
  • pSemi introduces RF switch with 52 dBm PMAX,PEAK and 90-dBm IIP3 linearity
  • XP Power launches 1.3 kW power supply with 58.9 W/cm³ density
  • How to enable Wi-Fi provisioning in ESP32-based IoT products

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 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

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe