Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • 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 EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

Log in to leave a comment:

Lost your password?

Don't have an account? Register here

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Wide Bandgap Semiconductors
Moving from silicon to GaN or SiC feels like a whole new ballgame, doesn’t it? It isn’t just about faster switching; it’s about managing the layout parasitics and thermal realities that come with that speed. This month’s Tech Toolbox features a curated eBook that tackles these design hurdles head-on.

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 feed: EDABOARD.com Discussions. EDABOARD.com Discussions.

  • Help! Need PCB Designer for RF remote controller!
  • Phase Shift Full Bridge: SR's in light load
  • How to select coaxial cable for NFC antenna tuning
  • causes for causality in s-parameters question
  • GaN PA DC Bias Sequencing

RSS feed: Electro-Tech-Online.com Discussions Electro-Tech-Online.com Discussions

  • Schematic help, odd symbol
  • How much does generator frequency stability matter for sensitive electrical equipment?
  • XC9235A33CMR-G Semi conductor
  • Earth Ground Question
  • Will this solenoid actuator work as intended?

Featured Tutorials

VHDL Series (1-24)

  • VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
    VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
  • VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
    VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
  • VHDL Tutorial – 19: Designing a 4-bit binary counter using VHDL
    VHDL Tutorial – 19: Designing a 4-bit binary counter using VHDL
  • VHDL Tutorial – 20: Designing 4-bit binary-to-gray & gray-to-binary code converters
    VHDL Tutorial – 20: Designing 4-bit binary-to-gray & gray-to-binary code converters
  • VHDL Tutorial – 21: Designing an 8-bit, full-adder circuit using VHDL
    VHDL Tutorial – 21: Designing an 8-bit, full-adder circuit using VHDL
  • VHDL Tutorial – 22: Designing a 1-bit & an 8-bit comparator by using VHDL
    VHDL Tutorial – 22: Designing a 1-bit & an 8-bit comparator by using VHDL
More Tutorials >

Recent Articles

  • Semtech introduces 224G linear optical solutions
  • STMicroelectronics adds embedded processing to automotive sensor
  • Stackpole Electronics introduces 6 W thin-film resistors
  • TDK-Lambda adds 12.5 kW three-phase power supplies
  • Signal Hound adds radar pulse generation to VSG systems

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • 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 © 2026 Arrowfly 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 Arrowfly
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertise
  • Subscribe