Door Opening GSM alarm Wireless home security system using Arduino

(Last Updated On: October 19, 2019)

wireless home security

Description:

Wireless Home Security System using Arduino- In this tutorial, you will learn how to make Door Opening GSM alarm Wireless home security system using Arduino Uno, a Buzzer, GSM SIM900A module, and a Reed switch. In this project a Reed switch is installed with the door, each time the door is opened or closed a notification message is sent to the Owner and also the buzzer is turned ON. For the Step by Step explanation and Practical demonstration watch video Tutorial given at the end of this Article.


As this project is based on the Reed Switch and GSM SIM900A, so in this tutorial, we will cover all the basics like for example.

  1. What is a magnetic Reed switch
  2. Uses of the magnetic reed switch
  3. Types of the magnetic reed switch
  4. GSM SIM900A Module Pinout
  5. Complete Circuit diagram explanation.
  6. Programming and finally

Without any further delay, let’s get started!!!

The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2tVz1vu
Mega 2560: https://amzn.to/2ze1kdu
GSM sim900A: https://amzn.to/2Nv70TI
2n2222 NPN transistor: https://amzn.to/2KSAKrK
10k Resistor https://amzn.to/2KTd6OW
Magnetic reed switch: best offer https://amzn.to/2xoMzAA
5v buzzers: best offer https://amzn.to/2OudCBC
LM7805 Voltage Regulator: https://amzn.to/2IZEl5x
Potentiometer: https://amzn.to/2JSLbfg
330 ohm resistors pack: https://amzn.to/2NtlAeh
5v 2A adaptor: https://amzn.to/2GsNfcw
2n2222 npn transistors: https://amzn.to/2EmXsIb
10k Resistor: https://amzn.to/2KTd6OW
lm7805 Voltage Regulator: https://amzn.to/2IZEl5x
330-ohm resistors pack: https://amzn.to/2NtlAeh
female DC power jack socket: https://amzn.to/2KEo1gt
470 uf capacitors: https://amzn.to/2xDCOzf
5×7 cm vero board: https://amzn.to/2OHGbvn
female headers: https://amzn.to/2zqmtiJ
connection wires: https://amzn.to/2DpBuW7
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / strip board: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2zfoNuJ
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
wire cutter: https://amzn.to/2ucIq14
PCB small portable drill machine: https://amzn.to/2Nu62XF

DISCLAIMER:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!



All about the Magnetic Reed Switch:

A Reed switch is an electromagnetic switch which is used to control the flow of electricity in a circuit. It is an electrical switch and can be operated by applying a magnetic field. It was invented in Bell Telephone Laboratories in 1936.  In a typical reed switch, the two contacts are made from a ferromagnetic material. When you bring a permanent magnet near to the Magnetic Reed switch the contacts are closed and the electrical current starts following.

wireless home security

When you take the Permanent Magnet away from the Magnetic Reed Switch the contacts get open and there is no flow of the Electrical current.


wireless home security

This Opening and Closing of the contacts can be used to detect whether somebody has opened the door. In normal condition when the door remains closed the Reed Switch remains ON and signals the controller. The Opening and Closing states of the Reed Switch are defined in the Programming.

 Reed switches are most commonly used in

  • Security systems, like for example sensing whether the doors and windows are open or closed. Which we will be practically implementing in this project.
  • It is used in laptops when you lower your laptop screen, the laptop enters into the sleep mode, and this is just because of the reed switch and magnet in action.
  • It is used for safety in some devices such as food processors, the device won’t turn on unless a lid is shut or another safety precaution has been taken.
  • It is used in automotive, some of the most common uses include, sensing the door positions, speed, braking, fuel levels, etc.
  • Used in refrigerators, when you open the door the light turns on and when you close the door the light turns off.


The Magnetic Reed switch can be used in thousands of projects.

We have two types of magnetic reed switches

  1. Normally open type, in this type of reed switch the contacts remain open when there is no magnetic field. The contacts are closed only when you bring a magnet near this switch.
  2. wireless home security

 

  1. Normally close type, in this type of magnetic reed switch we have three contacts, common, normally close and normally open, just like a relay.

wireless home security

In the Wireless Home Security system project, I am going to use the Normally Open type Reed Switch. The following is a picture of the Magnetic Reed switch that I have used in this Project.


wireless home security

SIM900A GSM Module:

wireless home security

This is the GSM sim900A module, in the market, we have different types of GSM modules, the one I will be using today is sim900A if you want you can also use any other GSM module, like for example sim900D. I have also tested the same programming using sim900D but with a different baud rate, the rest of the program remains the same.



If you are from Pakistan, Bangladesh or India make sure you double-check the GSM module and purchase the unlocked version of the sim900A module. This GSM sim900A module as you can see on the screen has no onboard voltage regulator, so be careful while applying the voltage. Ideal voltage for this GSM module is 4.7v but you can also connect it with a 5v adaptor. If you don’t have a 5v adaptor then you can make your power supply using lm317t adjustable variable voltage regulator, I have a very detailed tutorial on lm317t explaining everything.

As you can see clearly in the picture above this module has so many pins which are clearly labeled, but we will be using only 5 of these pins, the power supply pins, GND, RXD 5v, and TXD 5v. The GND will be connected with the Arduino’s GND, TXD will be connected with the Arduino’s pin number 7 and RXD will be connected with the Arduino’s pin number 8.


Circuit Diagram of the Wireless Home Security System:

wireless home security

This is the final circuit diagram designed in Cadsoft Eagle, if you want to learn how to make a schematic and PCB in cadsoft eagle then watch my tutorial.

 

As you can see a 12v power supply is connected with LM7805 voltage regulator. A 10uf capacitor is connected with pin2 and pin3 of the regulator. A 330-ohm resistor is connected in series with a 2.5 volt LED. A 5v wire is connected with the buzzer’s +Ve pin and the buzzer’s ground pin is connected with the collector of 2n2222 transistor and the emitter of the transistor is connected with the ground. A 10K resistor is connected with the base of the transistor. A magnetic reed sensor is connected with pin2 of the Arduino while its other contact is connected with the ground.


As the GSM sim900A module communicates with the Arduino through Serial communication, and we know that in Arduino we have only one serial port, which is available on pin number 0 and pin number 1. As I always say use the Arduino’s default serial port only for the debugging purposes, never connect it with any module. Now the question is if we use the Arduino’s default serial port for the debugging purposes then how we will connect the GSM module, well my friends no worries at all, we can define multiple serial ports using the software serial library. As you can see the TXD pin is connected with pin number 7 of the Arduino, RXD is connected with pin number 8 of the Arduino, and the ground is connected with the Arduino’s ground. The recommended voltage of the GSM sim900A is 4.7 to 5volts. But there are some versions of the GSM SIM900A modules which have onboard voltage regulators, such modules can be powered up using the 12 volts. So, double-check before you power up the GSM SIM900A module.

wireless home security

All the components are connected as per the circuit diagram. The Bread Board connects are explained in the Video tutorial given at the end of this article. Now it’s ready for the testing.


Wireless Home Security System Arduino Programming:

For the step by step program explanation watch video Tutorial given below.

For the practical Demonstration watch the following Video. Don’t forget to Subscribe my channel. Support my YouTube channel by liking and sharing this video. If you have any questions regarding this project or any other project let me know in a comment.

Watch Video Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close