Autonomous security system on Arduino + GSM

Friends, allow me to introduce a GSM alarm projector on Arduino. There are quite a few projects on the network like “Arduino + modem + sensors”, however I often see some incompleteness in them (especially from a software point of view): lack of flexibility in settings and configuration. In the presented solution, I tried to make the device as ready as possible for “combat” conditions, providing for everything that the average user might need (in my opinion).



TL DR software and hardware conceived implemented, the test in real conditions is running, the sources and binaries are published, the case is not mastered.


Device and specifications


The device sends SMS when the following events occur:


  • door opening (reed switch);
  • a sharp change in lighting (photoresistor);
  • movement (PIR sensor);
  • ;
  • .


SMS



,


3- AA. ≥6.


, (Python 2.7 + Tk + pyserial + matplotli).










1000-1200 ( ).


. 10 ~$7, . , :



.


Arduino aliexpress. :


  • Arduino Pro Mini 3.3v 8MHz (5v 16MHz is also acceptable, but requires different firmware);
  • MH-SR602 MINI Motion Sensor;
  • SIM800C(L) GSM Module;
  • CP2102 MICRO USB to UART TTL Module;
  • DS3231 RTC Module For Raspberry Pi;
  • 3 AA battery holder With ON OFF Switch;
  • (, , .).

, .





Arduino . Ki-CAD.



  • ( ).
  • USB , .
  • SMS, 2 , 5, 10, 20, 40 12 .
  • , 3 .
  • 30 .
  • « », «» « » , 20 .
  • 3 , .


SMS: , . : ( issue , ).



.



. ( ) —


() 4 . , ( SMS). 5 SMS : ( ), « ». (3x AA) 4.1 .



+10° -15° .


  1. PIR . +5° : . , . .
  2. , DS3231 -10° : , , «-84°» «+115°». , RTC . , . , DS18B20.

.



(-):


  • ;
  • connect the ESP-01 to configure and view the logs through the browser from the phone.

Debugging


Debug messages are output to 250kbod virtual COM. You need to short-circuit to ground D12 to disable the detection of the connected USB (so that the device continues to work in normal mode). Configuration through the utility will continue to work normally.


References


Project repository: github The
circuit and board are available in Ki-CAD, firmware and sources for Arduino, exe and sources of the configuration utility.


Analog with aliexpress: RF-V13


All Articles