Repairs Design Furniture

Budget GSM alarm with brains from Arduino. GSM Security system for home based on Arduino Wireless Sensors for Alarm on Arduino

This project concerns the development and improvement of the system to prevent / control any attempts to penetrate the thieves. Designed security device Uses the built-in system (turns on the hardware microcontroller using open software code and GSM modem) based on GSM technology (global mobile system).

A security device can be installed in the house. The security alarm interface sensor is also connected to the security system based on the controller.
When you try to penetrate the system transmits a warning message (for example, SMS) to the owner on mobile phone Or on any pre-configured mobile phone for further processing.

The security system consists of a microcontroller Arduino Uno. And the standard SIM900A modem based on GSM / GPRS. The entire system can feed from any power supply / 12V 2A battery.

The following is shown in the ARDUINO security system.

The operation of the system is very simple and does not require clarification. When the system is supplied, it goes into the standby mode. When the J2 Connector conclusions are shortened, the pre-programmed warning message is transmitted to the required mobile number. You can connect any penetration detection detector (such as a light protective device or motion sensor) to the J2 input confctor. Note that the active-low (L) signal at the output 1 of the Connector J2 activates the triggering of the security alarm.

Moreover, optional "Call - Alarm" is added to the system. It activates phone callWhen the user clicks the S2 button (or when another electronic unit initiates alarm). After pressing the "Call" button (S2), the call can be canceled by pressing another S3 button - the "END" button. This option can be used to feed alarm in the case of "missed call" in case of penetration.

The scheme is very flexible, so it can use any SIM900A modem (and, of course, Arduino Uno fee). Carefully read the documentation on the modem before the start of the assembly. This will make it easier and make a pleasant process manufacturing process.

List of radio elements

Designation A type Nominal number NoteScoreMy notebook
Arduino board

Arduino Uno.

1 In notebook
GSM / GPRS modemSIM900A.1 In notebook
IC1 Linear regulator

LM7805

1 In notebook
C1. 100mkp 25V.1 In notebook
C2. Electrolytic condenser10MKF 16V.1 In notebook
R1 Resistor

1 com

1 In notebook
LED1 Light-emitting diode 1 In notebook
S1. ButtonWith fixation1

Good time by day 🙂 Today we will talk about alarm. The market for services is full of firms, the organization that are engaged in installing and servicing security systems. These firms offer the buyer a wide selection of alarm. However, their value is far from a kopeck. But what to do a person who has not so many personal funds that can be spent on security alarm? I think the conclusion suggests itself - to do Alarm naughty hands. This article provides an example of how to make your own code security system using the Arduino Uno board and several magnetic sensors.

The system can be deactivated by entering the password with the keyboard and press the ' * '. If you want to change the current password, you can do it by clicking on the ' B.', And if you want to skip or interrupt operation, you can do it by pressing the key ‘#’. The system has a buzzer to play various sounds when performing a different operation.

The system is activated by pressing the 'A' button. The system gives 10 seconds to leave the room. After passing 10 seconds, the alarm will be activated. The number of magnetic sensors will depend on your own desire. The project involves 3 sensors (for two windows and doors). When the window opens the system is activated, and the alarm is turned on with a buzzer. The system can be deactivated by a password set. When the door opens, the alarm gives the logged in 20 seconds to enter the password. The system uses an ultrasonic sensor that can detect movement.

Video operation devices

Cleather Made in prompt / learning purposes. If you want to use it at home, it will be necessary to modify it. Conclusion the control unit into a metal case and protect the power supply from possible damage.

Let's begin!

Step 1: What we need

  • arduino Uno board;
  • high-contrast LCD display 16 × 2;
  • 4 × 4 keyboard;
  • 10 ~ 20K potentiometer;
  • 3 magnetic sensors (they are germs);
  • 3 2-pin screw terminals;
  • HC-SR04 ultrasonic sensor;

If you want to assemble the system without using Arduino.You will also need the following:

  • Dip connector for ATMEGA328 + ATMEGA328 microcontroller;
  • 16MGz quartz resonator;
  • 2 pcs. 22pf ceramic, 2 pcs. 0.22uf electrolytic capacitor;
  • 1 PC. 10kom resistor;
  • power Nest (DC Power Jack);
  • bread board;
  • 5B power supply;

And one box so that all this is packaged!

Instruments:

  • Something that can be cut plastic box;
  • Thermoclaysheaver pistol;
  • Drill / screwdriver.

Step 2: Alarm Scheme

Connection scheme is quite simple.

Small clarification:

High-contrast LCD:

  • PIN1 - VDD to GND;
  • PIN2 - VSS to 5V;
  • PIN3 - VO (to the central output of the potentiometer);
  • PIN4 - RS to 8 output Arduino;
  • PIN5 - RW to GND;
  • PIN6 - EN to 7 output Arduino;
  • PIN11 - D4 to 6 ARDUINO output;
  • PIN12 - D5 to 5 ARDUINO output;
  • PIN13 - D6 to 4 output Arduino;
  • PIN14 - D7 to 3 output arduino;
  • PIN15 - VEE (to the right or left conclusion of the potentiometer).

Keyboard 4 × 4:

From left to right:

  • PIN1 to A5 output Arduino;
  • PIN2 to A4 output Arduino;
  • PIN3 to A3 withdrawal Arduino;
  • PIN4 to A2 withdrawal arduino;
  • PIN5 to 13 withdrawal arduino;
  • PIN6 to 12 output arduino;
  • PIN7 to 11 output Arduino;
  • PIN8 to 10 ARDUINO output.

Step 3: Firmware

The step presents the code that is used built-in!

Download the Codebender plugin. Click on the "Run" button in Arduino and place your board with this program. That's all. You just programmed Arduino! If you want to make changes to the code, click the "Edit" button.

Note: If you do not use CodeBender IDE to program the Arduino boards, you will need to install additional libraries in Arduino IDE.

Step 4: We make your own management fee

After successfully collected and tested new project On the basis of Arduino Uno, you can start making your own fee.

Several tips for more successful completion of the started:

  • 10kom Resistor must be mounted between 1 (Reset) and 7 (VCC) by the outputs of the ATMEGA328 microcontroller.
  • 16MGC Quartz Resonator must be connected to 10 and 10 conclusions marked as Xtal1 and Xtal2
  • Connect each output of the resonator with 22pf capacitors. Free conclusion conclusions Write on 8 output (GND) microcontroller.
  • Do not forget to connect the second ATMeGa328 power line with the power supply, the conclusions 20-VCC and 22-GND.
  • Additional information on the conclusions of the microcontroller can be found on the second image.
  • If you plan to use the power supply with a voltage above 6B, you must use the LM7805 linear regulator and two 0.22UF by electrolytic capacitors, which should be mounted at the input and output of the regulator. It is important! Do not apply more than 6V for fee !!! Otherwise, you smear your ATMEGA microcontroller and LCD display.

Step 5: Place the scheme in the case

Car theft over the past decade occupy one of the most significant places in the structure of crimes committed in the world. This is due not so much by the specific weight of this category of theft relative to the total number of crimes, how much the difference caused damage due to the great cost of cars. The weak efficiency of the measures taken in the field of combating thefts of vehicles by the end of the 1990s led to the creation of sustainable groups specializing in these crimes and possessing distinctive features organized crime; You probably heard the term "black auto business". The European State Automobile Park is not annually taken by ≈ 2% of machines that become subject to criminal encroachment. Therefore, I came the idea to make GSM alarms for your car based on Arduino Uno.

Let's start!

What we will collect

We must choose the heart of our system. In my opinion, there is nothing better for such alarm than Arduino Uno. The main criterion - sufficient number "Pins" and price.


The main characteristics of Arduino Uno

Microcontroller - ATMEGA328.
Operating voltage - 5 V
Input voltage (recommended) - 7-12 V
Input voltage (limit) - 6-20 V
Digital inputs / Outputs - 14 (6 of which can be used as PWM outputs)
Analog inputs - 6
Permanent current through input / output - 40 mA
Permanent current for output 3.3 in - 50 mA
Flash memory - 32 KB (ATMEGA328) of which 0.5 kb are used for bootloader
RAM - 2 KB (ATMEGA328)
EEPROM - 1 KB (ATMEGA328)
Clock frequency - 16 MHz


Suitable!

Now you need to select the GSM module, because our alarm must be able to notify the owner of the car. So, you need to "google" ... Here is an excellent sensor - SIM800L, the size is simply wonderful.


I thought and ordered it from China. However, everything turned out to be not so rosy. The sensor simply refused to register the SIM card on the network. It was tested all that only possible - the result is zero.
Found kind peoplethat provided me with a sharp piece - SIM900 Shield. This is the already serious thing. In Shield and a microphone connector and headphone, a full-fledged phone.


Key Features SIM900 SHIELD

4 Operating Frequency Standard 850/900/1800 / 1900 MHz
GPRS MULTI-SLOT class 10/8
GPRS MOBILE STATION CLASS B
Complies with GSM Phase 2/2 +
Class 4 (2 W @ 850/900 MHz)
Class 1 (1 W @ 1800 / 1900MHz)
Management using AT commands (GSM 07.07, 07.05 and SIMCOM Advanced AT commands)
Low power consumption: 1.5mA (SLEEP MODE)
Operating temperature range: from -40 ° C to +85 ° C


Suitable!

OK, but you need to take readings from some sensors to notify the owner. Suddenly the car is evacuated, then the position of the car will clearly change in space. Take an accelerometer and gyroscope. Excellent. Tax, now we are looking for a sensor.

I think that the GY-521 MPU6050 is exactly suitable. It turned out that there is a temperature sensor in it. It would be necessary to use it, there will be such a "Killer Fich". Suppose that the owner of the car put it under home and left. The temperature in the car will be changed "smoothly". What will happen if the attacker tries to penetrate the car? For example, it will work out the door. The temperature in the car will begin to change rapidly, as the air in the cabin will begin to mix with the air ambient. I think that will work.


Main characteristics GY-521 MPU6050

Module 3-axis gyroscope + 3 axial accelerometer GY-521 on MPU-6050 chip. Allows you to determine the position and movement of the object in space, angular speed When rotating. The integrated temperature sensor also has. Used in various copter and aircraft model, as well as on the basis of these sensors, you can assemble the movement capture system.

Microcircuit - MPU-6050
Supply voltage - from 3.5V to 6V (DC);
Gyro range - ± 250 500 1000 2000 ° / s
The range of accelerometer - ± 2 ± 4 ± 8 ± 16g
Communication Interface - I2C
Size - 15x20 mm.
Weight - 5 g


Suitable!

The vibration sensor is also useful. Suddenly the car will try to open the "rough strength", well, or in the parking lot another car will attain your typewriter. Take the SW-420 vibration sensor (adjustable).


The main characteristics of SW-420

Supply voltage - 3.3 - 5V
Output Signal - Digital High / Low (normally closed)
Sensor used - SW-420
Used comparator - LM393
Sizes - 32x14 mm
Additionally, there is an adjusting resistor.


Suitable!

Fix the SD memory card module. We will still write a log file.


Main characteristics of the SD memory card module

The module allows you to store, read and record on the SD card data required for the device based on a microcontroller. The application of the device is relevant when storing files from dozens megabytes to two gigabytes. The SD card container is placed on the board, the power stabilizer, the plug of the interface and power lines connector. If you want to work with sound, video or other volumetric data, for example, to log event logging, sensor data or store web server information, the SD memory card module for Arduino will give the opportunity to apply an SD card for these purposes. Using the module, you can explore the features of the SD card.
Supply voltage - 5 or 3.3 V
SD card speed - up to 2 GB
Sizes - 46 x 30 mm


Suitable!

And add a servo, when the sensors are triggered, a servo drive to the DVR and to shoot a video incident. Take the MG996R servo.


The main characteristics of the MG996R servo

Stable I. reliable protection from damage
- Metal drive
- Two-row ball beads
- Wire length 300 mm
- dimensions 40x19x43mm
- weight 55 gr
- angle of rotation: 120 degrees.
- Working speed: 0.17sec / 60 degrees (4.8B without load)
- Working speed: 0.13c / 60 degrees (6V without load)
- Starting point: 9.4kg / cm with nutrition 4.8V
- Starting point: 11kg / cm when nutrition 6B
- Operating voltage: 4.8 - 7.2V
- All drive items are made of metal.


Suitable!

Collect

About connecting each sensor in Google a huge number of articles. And invent new bikes I have no desire, so I will leave links to simple and working options.

GSM alarm on Arduino.

In this article you will learn how (buy) make GSM itself alarm with the GSM module and Arduino is very cheap. GSM Alarm Protection Object Ideal suitable, house, garage, apartment.


Step 1: Elements
For this project you will need:


GSM Shield.

Buzzer
Siren alarm 12V.
12V Power Source

Keyboard for Arduino.
Case.

Step 2: Connecting Components


First, you place the GSM module on Arduino Uno, you will need to solder the GND and VCC wires along with two sensors, the buzzer and the input of the relay module. After that, connect these soldering wires to the corresponding GSM Shield connector. Next, you will make an input / output connector of signals from these parts, and the last thing it will be necessary - to connect the keyboard

Arduino Uno / GSM Terminals:

Conclusion 0: Not related;
Conclusion 1: Not related;
Conclusion 2: Unrelated (GSM will use this pin);
Output 3: unrelated (GSM will use this pin);
Conclusion 4: Last string using the keyboard (Keyboard contact 4 - from 8);
Conclusion 5: Not related;
Conclusion 6: Second column using the keyboard (keyboard contact 6 - from 8);
Conclusion 7: Third column from the keyboard (finger keyboard 7 - from 8);
Conclusion 8: Unbound (GSM will use this pin);
Conclusion 9: Unrelated (GSM will use this pin);
Conclusion 10: PIR sensor data number 2;
Conclusion 11: Siren Beep (enters the input of the relay module);
Conclusion 12: PIR data sensor No. 1;
Conclusion 13: the input signal of the buzzer;

As you can see, although the keyboard has 8 outputs, only three (one line and two columns are connected, which allows you to use two numbers for reading - 1 × 2 matrix), so I can make passwords using these three wires, and there is no need to use All contacts from the keyboard. This is because after the motion sensor detects a person walking in the room, the person will have only 5 seconds to disable the alarm. After emergency Signal Does not turn off on this moment Time, GSM Shield sends SMS to you, or calls the phone number. Arduino was programmed to call and as soon as you answer the phone call, it will put the phone.

Of course, you can get false sensor readings, so the option is to turn off the alarm, simply by sending SMS from your phone to Arduino. In addition, one more option that you can do is configure Shield to send you one message a day so that you know that it works correctly.

Step 3: Code

Just download the code below and compile. It uses libraries Keypad.h and gsm.h.
Download File: (Dropping: 181)
Download File: (Dropping: 104)

Step 4: Conclusion


Considering that Arduino Uno code will send SMS messages and call your phone just five seconds after someone penetrate your home, I guess you will have enough time to call the police. Of course, the siren will scare the thieves and your home or other premises will be safer using this article.