Do-it-yourself gsm alarm from a phone diagram. Do-it-yourself GSM alarm system. Autonomous GSM-alarm system. The principle of operation of the security system

At present, almost every resident has his own country dacha. As a rule, most of the time the dacha is empty, people live in cities, and people come to dachas only on weekends or during holidays. In the country house, not only old, unnecessary things are often stored, but there are also many useful things that will be useful in everyday life, as well as many valuable things and equipment in the house. But what happens in the country when it is empty?

While the cottage is empty, without owners, it can be of great interest to thieves. Indeed, in our time it is not so difficult to open the lock and take a couple of expensive things out of the house. How to avoid this, because not everyone will find time to come to the country and check the house every day?

While the owners of the dacha are working in the city, your house can be reliably protected by a GSM alarm system. Installing such an alarm in the country is the most correct and reasonable solution. And in order not to waste time searching and a lot of money to buy such an alarm, you can make and install it yourself.

To create a GSM alarm you will need:
- An old unnecessary mobile phone with buttons (you probably have these lying around in an old chest of drawers or on the topmost shelf);
- Magnet (sold in any store);
- Sealed contact - hermecon (normal or with three contacts);
- Switch and wires;
- soldering iron.

And besides this, you still need to have some minimal knowledge in electronics and stock up on a little time and patience.

So, the first and easiest thing to do is to set up a speed dial call to your current phone number. The first step is ready.
Further, the task is a little more complicated, but if you follow the instructions, then everything will definitely work out. At this stage of work, you need to disassemble the mobile phone and carefully expose the board under the keyboard.


And then connect the device. There are two connection schemes. Before choosing a scheme, you need to decide: on a mobile phone, the call and failure button is one key or different.

Scheme one. If the call and failure buttons are one key, then one wire must be soldered to this key, and the second to the number button, to which the quick call is assigned. This is done with a soldering iron. Hermecon is used in this case with a standard locking system.
Scheme two. If the call and failure buttons are two different keys, then you will have to solder an additional wire to the second button (one of the wires will be common). In this case, a hermecon with three contacts will be used.


Having created the circuit according to the scheme, we proceed to the third stage. It is necessary to install a magnet on the front door and adjust the hermecon so that the chain is kept broken when touched.

The principle of operation of such an alarm is that when the door opens, the circuit closes and the phone rings a quick call to your phone number.

Where to install such an alarm is a personal matter for everyone. Most importantly, it should be protected from prying eyes and from moisture.

If you have a dacha, a car garage or a country house, then sooner or later you will think about the means of protecting your property. The most popular means of protection in our time is the GSM alarm system. Now there are many types of GSM alarms from various companies. The only deterrent from buying a GSM alarm is its price. For example, the simplest GSM alarm Magnum МН-825-03 GSM costs about $150. Based on this, if you need to secure your garage, cottage and home, then you will have to spend a lot. So that our readers can save a lot, we have prepared a material in which we will describe the creation of a home-made GSM alarm system with our own hands. This signaling will be based on a regular mobile phone which has been idle for a long time.

We assemble a simple alarm system based on a mobile phone for a summer residence or a country house

The first do-it-yourself alarm based on a mobile phone will be very simple. To assemble it, we need such Components:

  • old mobile phone;
  • reed switch;
  • standard battery charger;
  • long wire;
  • soldering iron;
  • solder;
  • magnet;
  • additional sim card.

Any old push-button telephone will do for this alarm. You can even use older models like the Nokia 3310. Principle such signaling is based on the speed dial from the button to which the sensor is connected. I.e when the sensor is triggered, the phone dials the number, configured in speed dial. Therefore, the first step is to set up our phone for speed dialing, which will receive a call when the sensor is triggered. In our case, the speed dial button will be the ninth button. Also, turn off the ringer and vibrator on your phone. Another thing to consider is whether to use a charger for our phone or leave it to work on a fully charged battery.

Leaving the phone on a charged battery is only worth it if it can hold a charge for about a month.

Below is a diagram of the assembly of such an alarm for a summer residence or a house.

The figure shows how the Nokia 6150 phone is connected to reed switch. To connect the reed switch to the Nokia 6150, you need to disassemble the phone and carefully solder the wires to the pins of the nine button on the printed circuit board (Speed ​​dial button). After that, the magnet and the reed switch are attached to the door. The scheme works like this: when the door is opened from the reed switch, a signal is sent to the button, as a result of which the phone dials the specified number in the speed dial. The reed switch itself is a magnetic sensor, somewhat reminiscent of a diode.

In the same way, as shown in the diagram, you can connect a self-assembled GSM alarm system in a country house, cottage or garage.

Do-it-yourself GSM alarm system with an infrared motion sensor for a country house or cottage

The principle of operation of this GSM alarm system is based on infrared motion sensor, and not on the reed switch. And infrared motion sensor is triggered when an object is in its field of view and sends a signal to a mobile phone. After the phone receives a signal, it dials the number previously configured in the speed dial. The scheme of an autonomous alarm on an infrared motion sensor is shown below.

The diagram shows, as in the first example, the motion sensor is connected to the ninth button.

It should be noted that the motion sensor itself requires a separate 12 V power supply.

As the motion sensor itself, you can use the Astra 515 device.

This motion sensor has a range of 10 meters. For example, if any object gets into this radius of action, the alarm will work and make a call.

Another feature of this motion sensor is the IP41 protection level, which allows it to operate at temperatures from 0 to +50°C.

It is convenient to use such an autonomous GSM alarm system, assembled with your own hands, in the country house and in a country house to protect their territories.

We assemble a GSM alarm system with our own hands without an old mobile phone

There is a situation when there is no old mobile phone at hand, but you want to save money on GSM alarms. In this case, it will help us Arduino board with built-in microcontroller. A distinctive feature of this board is its low price and functionality. In our example, we will use the board Arduino Uno, which costs about $ 4 (depending on modifications). We will use the GSM Home Alarm V1.0 article by Hugo Gomez as the basis for this example. You can find this article on the official website www.arduino.cc of the Arduino project. To assemble our alarm system with our own hands, we need such Components:

  • the board itself with the Arduino Uno microcontroller;
  • GPRS Shield V2.0 - GSM module;
  • power supply for [email protected];
  • ultrasonic distance measurement sensor HC-SR04;
  • connecting wires;
  • bread board;
  • SIM card.

The cost of all components of such an autonomous alarm will be $35, which is still much cheaper than ready-made solutions. Principle the action of this alarm is based on the ultrasonic sensorHC-SR04, which captures the difference in distance and sends a signal to a mobile phone. For example, if a person gets into the measurement area of ​​the sensor, then the sensor will fix the distance less than the set one and the Arduino Uno will send a signal to the mobile phone. The measurement length of this sensor is 4 meters and the viewing angle is 30 degrees. Thanks to these characteristics, the sensor can be used at home, in the garage and in the country.

To assemble this alarm, the first step is to install a SIM card in the GSM module.

You should also disable the PIN code on the SIM card in advance. Now we will connect the wires according to the diagram shown below, all the components.

The assembled GSM signaling will look like this.

In order for our GSM module GPRS Shield V2.0 earned in conjunction with the Arduino Uno, we need to download the library SIM900. You can download this library from this address http://www.gsmlib.org/download/GSM_GPRS_GPS_IDE100_v307_1.zip. After downloading, install this library. In the next step, we will need to open and edit the GSM.cpp file, which is located in a file in the SIM900 library folder. The fact is that the GSM module GPRS Shield V2.0 in conjunction with the Arduino Uno uses pins 7 and 8. So let's open the GSM.cpp file and change the values ​​of lines 27 and 28 to:

#define _GSM_TXPIN_ 7 #define _GSM_RXPIN_ 8

#define _GSM_TXPIN_ 7

#define _GSM_RXPIN_ 8

Now we need to open the GSM.h file, which is also located in the library folder. In this file, we need to comment out lines 20 and 45, and in line 44, fix 8 by 9.

We figured out the module, now you can go directly to the code of our alarm. The code itself can be downloaded from this link https://create.arduino.cc/code_files/47730/download. In the 11th line of the code, you need to replace "XXXXXXX" with the phone number to which the signal will be sent. By uploading the code to the Arduino Uno, you can test the standalone GSM alarm. To do this, connect power to it and open the port monitor. The GSM module itself can register on the network for a long time, where you will see the message “Waiting for Network Registration”. If the network registration is successful, then the signaling can be tested. To do this, move your hand over the area of ​​the HC-SR04 sensor, after which you will see a message in the port monitor about the data taken from the sensor. In addition to messages in the port monitor, the phone specified in the code should receive a call.

The example shows that a person who has already worked with Arduino Uno can easily assemble a similar GSM alarm with his own hands. In addition, such a warning system can be modified. For example, install several HC-SR04 ultrasonic sensors on it. You can also add an infrared sensor to this alarm, the price of which in Chinese online stores starts at 50 cents. Also, temperature sensors can be added to this warning system, which will notify the owner of the house, garage or cottage in case of fire.

Summing up

In this material, we have collected all the simple ways to assemble a GSM alarm system with our own hands. In addition to how to build a GSM alarm system with your own hands from an old phone, we described how to build an inexpensive system using an Arduino Uno board and a GSM module that acts as a replacement for a mobile phone. Also in the open spaces of the network you can find examples in which a push-button mobile phone acts instead of a GSM module. Such an alarm is similar to the examples described above, but thanks to the Arduino Uno, it has much higher functionality. We hope that our material will help you assemble a GSM alarm system with your own hands, while allowing you to save a lot and protect your garage, house or cottage.

Related videos

The result of the security system depends on the efficiency of the equipment used. Of course, even the most modern and expensive devices cannot give a 100% guarantee, but even a primitive system is capable of frightening off a robber, preventing him from taking out the most valuable things.

You can buy it, such samples are quite cheap. But many craftsmen prefer to assemble on their own. What is the result of this and how effective are such devices?

To find out the answer to this question, we will try to find out what a do-it-yourself GSM alarm system is.

The principle of operation of the security system

By setting an alarm, a person expects that she will be able to warn him in time about intruders entering the premises and turn on light or sound devices that can draw the attention of others to the protected object. Any system will cope with such a task, but only if certain conditions are created for its operation. For example, for wired models, a prerequisite is the presence of a fixed telephone in the room.

Watch the video, the principle of the system:

And only one GSM alarm is able to work even with a power outage. Its principle of operation is to use mobile communications to transmit an alarm message to the owner. Structurally, it is a device inside which there is a SIM card, and a microphone can also be built in to listen to the object. Such a system is controlled by radio key fobs or via SMS messages.

Do-it-yourself GSM alarm system

It is not always possible to buy an expensive industrial model of a security system. In this case, many prefer to assemble the alarm on their own. Of course, there are many nuances in this issue, and the efficiency of the assembled equipment depends on how correctly it is resolved.

Fortunately, there are many GSM signaling models and schemes with a detailed description on the network. Moreover, the equipment assembled on their basis is practically not inferior in its efficiency to industrial designs. We will consider one of such simple do-it-yourself GSM alarm systems in this article.

We watch a video review, an alarm system for 10-50 rubles;

So, installing an alarm in an apartment, garage or country house is the right decision. You do not need to buy equipment, you can assemble it yourself. To do this, you will need a little knowledge in electronics, a set of parts and a soldering iron, as well as a gsm alarm installation manual instructions.

As components for such a system you need:

  1. A push-button mobile phone that you no longer use
  2. Magnet
  3. reed switch
  4. Wires and conventional switch

As you can see, the set of parts is quite small and does not require significant investments. Usually all this is already in every home, where the owner likes to collect various devices. So the alarm will turn out to be practically free.

Watch the video, the actual working scheme:

Now for the build process. It consists of a few simple steps.

First you need to set up a call to the subscriber, namely the current phone number of the owner, with one button.

You will then have to remove the front panel to gain access to the board and connect the pins. It depends on the version of the instrument. If in it the end and end functions belong to one button, then one wire must be soldered to it, and the other to the number key responsible for the call. Such a GSM alarm system is shown in the diagram below. In the case of using separate buttons for each function, separate wires are soldered to each of them and a reed switch with three contacts is used.

Visually, this process can be depicted in the form of two slightly different schemes:

If you carefully study the presented materials, you can see that this approach allows you to turn off the phone at the same time as the alarm. This saves battery life and does not require frequent recharging.

And then the simplest thing remains, after the chain is mounted, a magnet is installed on the door and the reed switch is adjusted. The operation of such a do-it-yourself GSM alarm is not much different from industrial models. When the door is opened, the reed switch contacts are closed and a call is made from the phone to the programmed number.

Arming and disarming are carried out using an additional switch. You can choose the location of its location and other devices yourself, the main thing is that they are not visible to outsiders.

The assembled GSM alarm system with your own hands is completely autonomous. The only condition for its operation is periodic recharging of the phone battery. It is possible to mount the charger in the electrical network of the room. In this case, the alarm will work with batteries only when there is a power outage.

The only drawback of such a system is the fact that it will take a couple of seconds to operate until a connection is established with the number. If the thieves manage to enter and close the door during this time, the chain will open and the alarm message will not come to you.

Let's look at another working scheme:

However, this can be avoided if the magnet is provided with an additional device that does not allow it to open the circuit again. There are many options for getting out of this situation. The simplest of them is to install the magnet in such a way that when the door is opened, it moves a little. In this case, nothing will happen on a quick close, as there will be no contact. The circuit turns off when the magnet returns to its original state. Installation of a self-assembled GSM alarm system is available to everyone.

The efficiency of home-made systems

A feature of such equipment is that all components for it can be bought and installed by yourself. Its main function is an intrusion alert sent to the owner's phone. The sensor installed on the door is triggered when it is opened, if desired, it can be located under the rug or flooring to respond to the weight of the person entering the room.

Do-it-yourself GSM alarm system has a lot of advantages, among them:

  • Minimum cost, you will not find cheaper equipment
  • Almost complete autonomy with periodic recharging of the phone
  • No need to pull and hide wires in the walls

However, there are enough drawbacks to such an alarm. And one of the most tangible is that anyone can block her work. Yes, and it works only in a specific place, that is, when installed on a door, it will not react at all to penetration through a window.

Based on the characteristics of a home-made alarm, it is rather difficult to attribute its work to effective. Therefore, it is better to use industrial models that are more functional and reliable.

The choice of security system depends on the expected result from its use. Various alarm models on the market differ in capabilities and functions. But is it worth overpaying for complex samples, knowing in advance that they will not be useful. Unnecessary functionality only complicates the management of devices and increases their cost.

But experts do not recommend buying very cheap models either. The most they can do is turn on the siren, but will it scare the thief? Not always and not for everyone. Signaling complexes with radio sensors are also ineffective. Their signal can be easily jammed, even using a children's walkie-talkie.

The optimal model of the security system is the one that best suits the features of the object and the needs of the owner. It does not hurt to think in advance about a possible upgrade of equipment that may be required over time.

If you choose between an industrial model and a self-assembled one, then there are many nuances. For example, for a specialist in this matter, a do-it-yourself GSM alarm system will be assembled very quickly and may not be inferior to industrial models in terms of its effectiveness. At the same time, its cost will be several times lower. But if you do not have the necessary knowledge, then it is better to buy a finished model, because the safety of property depends on the quality of its work.

When deciding which model to choose, it should be clarified for what tasks it can be used. You can install a simple GSM alarm system yourself. In this case, you will know where the equipment is located and how it interacts, which will help to control the effectiveness of its operation.

It does not hurt to decide on the amount that you have to purchase a finished model or do-it-yourself assembly. After all, the functionality of the system depends on how reliable and effective it will be.

Which alarm system to choose - expensive, cheap or do it yourself? Everyone who cares about the safety of their property should answer this question for themselves. How well this issue is resolved depends on how calmly you can leave your apartment, going on a business trip or vacation.

Exists with the transmission of an alarm signal via a mobile communication channel. But often their functionality is superfluous, and the cost is very high.

Method number 1 - elementary


In order to or in the garage it is not at all necessary to buy expensive devices and even understand circuitry.

It is necessary to have an initial level of skills in working with a soldering iron, an old push-button mobile phone, a two-pin reed switch, a magnet and a one-button switch.

In the mobile phone that will be used as a GSM module, we set our phone number to the quick call button. We disassemble the phone and take out the contact board located under the keyboard.

Carefully solder the wires to the contact plates of the shortcut button. The reed switch model should be selected as "normally open". This means that if the reed switch mounted on the garage door frame and the magnet mounted on the gate leaf make contact, then the electrical circuit is open.

The switch cuts into one of the wires and serves to block signal transmission when the garage is open for a long time. This is much more convenient than turning off the phone every time or blocking the operation of the reed switch by placing a magnet on it.

Naturally, it is advisable to install the switch, the telephone, and the reed switch itself so that intruders do not find them at least the first 10 seconds after operation.

Power is supplied to the phone through a regular adapter from the garage electrical network. The presence of a capacious telephone battery makes such an alarm system almost autonomous.

Method #1 ½ - still elementary


The scheme proposed above can be easily used to turn a simple car alarm into GSM.

To do this, you need an additional relay, which will close the contacts of the shortcut button. The relay itself will be activated by a pulse from the wire that goes to the car alarm siren.

At the same time, in order not to make an alarm call every time the car is put on or off the alarm, you can use a relay with a time delay of 5 seconds. The phone can be powered from the car cigarette lighter.

Method number 3 - professional


Having basic knowledge in the field of electronics, you can create a fully functional GSM alarm system. It is based on the PIC16F628A microcontroller.

Siemens phones of models C35, S35, M35, C45, S45, M45, ME45, SL45 are used as a GSM module, the controller is compatible only with these models.

These devices can operate as normally open or normally closed contact groups that can be connected to one of the inputs.

When detectors are connected in series in one circuit in standby mode, they must be normally closed; in case of emergency operation, the circuit opens.

When connected in parallel, the standby mode of each device must be open and the emergency mode closed.

A howler siren, an alarm lamp or any other signaling equipment can be connected to the output three-contact relay - XS4. The power contacts of the relay carry a rated power of 2.4 kW at 10 A.

Controller Programming


After the circuit is ready, it is necessary to program the PIC16F628A for a certain sequence of actions after an alarm signal arrives at one of the inputs.

The entire executive program is recorded in the first memory cell of the SIM card inserted into the telephone set. A nine-bit code is a set of numbers that is typed in a cell. The first position corresponds to the alarm mode, it can be either active or pending, “0” or “1” is displayed.

From the second to the fourth positions, determine the phone numbers to which you should call in case of an alarm. They are stored in the phone's memory as the first three quick numbers. The values ​​are assigned "0" if the number needs to be called and "1" if it is not active.

Position 7 has 10 indicators - this is the response time for which the controller output will be turned on, from 1 sec to 60 min.

Position 8 and 9 determine the triggering mode of alarm inputs and have three positions:

  • "0" - alarm input is disabled;
  • "1" - operation will be performed when the circuit is opened;
  • "2" - operation will be performed when the circuit is closed.

To protect your property, which is located in an apartment, country house or garage, different types of alarm systems are used. GSM security systems are distinguished by high efficiency. These systems allow for continuous monitoring of the object and, in the event of an unauthorized person entering it, notifying the owner or special services about this. For this purpose, the capabilities of cellular communication are used: messages can be sent in the form of SMS or MMS, or dial-up to mobile or fixed numbers entered into the alarm memory module can be performed. Reliable and multifunctional security systems of this type are quite expensive - more than 10 thousand rubles for a basic configuration, which not everyone can afford. The way out in such a situation can be a do-it-yourself GSM alarm system created from a phone that is no longer used. This method is quite simple to implement, and financially carries a minimal burden.

The principle of operation of GSM-security and its main elements

In order to make an alarm with your own hands, you need to figure out on what principle it functions, and what components are included in its composition.

The main functional unit of such systems is the GSM module, which ensures the transmission of warning signals from the object to the owner of the house or garage. The transmission is carried out using high-frequency mobile communication waves of one of the operators whose services are used.

The alarm signal is given in accordance with the data that the electronic signaling unit receives from sensitive sensors and sensors installed at the facility. These can be devices that react to the opening of a door, a window, glass breaking, movement in a protected perimeter. Video cameras and microphones can also be used for appropriate recordings and many other functional sensors that respond to temperature increases, smoke, water and gas leaks. Sensing elements are connected to the electronic unit wirelessly using a radio channel or through wired lines.

What is required to create an alarm yourself?

The simplest option for home-made security systems is a GSM alarm system from a phone. In this case, the role of the main element - the transmitting node, will be performed by a mobile phone, which, according to its functional purpose, is designed to call the subscriber or send messages to him. This greatly simplifies the task of creating your own alarm.

In order to start developing a security system for your home, you will need basic electrical skills, a set of suitable tools and spare parts. Below is a list of what is required:

  • an unnecessary, but functioning mobile phone (the phone must support the quick call function by pressing and holding one of its function buttons);
  • reed switch with magnet,
  • simple household switch;
  • soldering iron with solder and flux;
  • mobile phone charger;
  • multimeter;
  • conductors and insulating tape;
  • mounting tools (screwdriver, pliers, etc.).

The role of the sensor, which will be triggered when a door or window is opened, is assigned to a reed switch with a magnet or to a conventional push-button switch. This kind of sensor is connected to the mobile phone using conductors.

The functioning of the alarm made by hand

A homemade GSM alarm system from a mobile phone works according to the following principle. If the sensor installed on the object is triggered, then the contacts of one of the phone keys are closed, which is used as a shortcut button. As soon as the contact terminals are connected, the quick call function will be triggered and the owner of the apartment or house will be dialed, which will warn that there is someone else at the facility. Thanks to a quick notification using such an alarm, the owner of the house will be able to call for help in a timely manner and arrive at the facility on his own, which will prevent an attacker from stealing from an apartment or stealing a car from a garage.

In addition to making a call, you can also add elements of light and sound psychological impact in the form of a siren and flashing lights to a home-made alarm system, which will work together with the subscriber's call. Several sensors can be installed on the guarded object, which will be triggered by one shortcut key or several.

The process of assembling a GSM alarm system with your own hands from the phone

Do-it-yourself GSM alarm from a phone is created in the process of implementing several stages. On the first of them modification of a mobile phone is made. Initially, a shortcut key is selected and configured, which should work when switching the sensor contacts. To do this, the keyboard is removed from the phone, and the conductors are soldered to the corresponding contact elements of the button.

Next, a wire line is laid from the telephone to the sensor installation site. To ensure the functioning of the mobile phone, a charging unit is connected to it, which is connected to a 220 V household network. It is important that such a GSM alarm from a smartphone remains operational for a long time even when the electricity is turned off - in this case, the power is supplied from the battery built into the phone.

The next step is to install the sensor on the door or windows. One simple option is a magnetic sensor, created using a magnet and a reed switch, which is in a closed state when contacted. When the door is opened, the magnet disengages from the reed switch, which gives a signal to trigger the phone on a call. Another option for the sensor may be a simple mechanical system that will be triggered by switching the contacts of a switch of a simple design.

The last step will be the hidden location of the sensors and the calling phone, as well as the aesthetic location of the conductors between the sensor and the mobile phone.

As follows from the above, a GSM alarm system from a phone is created quite simply and does not require any special knowledge and skills. At the same time, the financial costs of such a security system will be minimal, which will save several thousand rubles.