Home security system using PIR sensor and GSM module
Home security system using PIR sensor and GSM module: Hi Everyone I am all of you are fine and doing well. Today’s project is about Gsm based home security system using PIR sensor, SIM900A gsm module and pic microcontroller. In this sms based home alarm system, we are using PIR sensor as motion detector module and GSM module will be used to send sms to home owner number whenever motion sensor detect any motion in home. Owner can switch on this home security module when he is going out for work and switch it off when he/she is inside home. But it is totally dependent on user how he/she wants to use it. I have included two new features in this project. User can either select call option or message option on his number when he/she detect any motion in home. I will describe it in more detail in later part of this article. So it was the introduction of home security system or motion detection using PIR sensor. I have used pic microcontroller in this project. If you are new to pic microcontroller programming, I recommend you to check this pic tutorials article, It will help you to get start with pic microcontroller programming for home security system.
Components of wireless home security system
Followings are the main components used in home security system. I will explain each component one by one briefly. So now first start with pic microcontroller.
- PIC18F452 microcontroller : In this project PIC18F452 pic microcontroller is used. It received data from PIR sensor with the help of built it analog to digital converter. PIR sensor output voltage changes whenever it detect any motion. Pic microcontroller measures this voltage. If this measured voltage is greater than a specified limit, PIC microcontroller sends commands to GSM module. GSM module send sms or make call according to selection of user.
- PIR sensor: PIR sensor is used to sensor motion in home. PIR sensor has three pin Vcc, GND and out pin. Vcc pin is connects with 5 volt power supply and ground pin connects with Ground pin of power supply. Out pin is connected with analog to digital converter module of pic microcontroller. Output voltage changes at the output pin of PIR sensor whenever it detects any motion. PIC microcontroller measures this voltage and if voltage is greater than specific value, microcontroller sends AT commands to GSM module SIM900A to send sms to user or make call to user.
- SIM900A GSM module: GSM module used in this project to either send sms to user or to make call to user on his/her cell number. GSM module communicate with pic microcontroller through AT commands. you should make sure to connect GSM module with pic microcontroller which has same operating voltages as operating voltages of pic18f452. If your GSM module works on 5 volt, you can connect it directly with PIC18F452. Because PIC18F452 also works on same operating voltages. But if your GSM module works on 3.3 volt, you need to use a interfacing circuit between them. GSM module communicate with pic microcontroller through serial communication UART.