⬆️ ⬇️

Crowd-funding project “Noorik” - Open source GSM module for automatic gates

Caution: Made in Podolsk



My name is Vyacheslav Golitsyn. I want to modify the GSM module for automatic gates and am looking for like-minded people. This is a brief history of the development of the module and further development plans. Open source project in which you can participate. After the lawnmower , snowthrower and submarine it was time for a new project. Please cut →





My name is Vyacheslav Golitsyn. I want to develop a GSM module for automatic gates and am looking for like-minded people.



Together it will be easier for us to develop a single board with the minimum required strapping for placing various ready-made modules on it. This project will be of interest to those who are professionally connected with the installation and maintenance of automatic gates, those who have automatic gates and those who blinked the microcontroller LEDs and think about what to do next.



May holidays are over! It's time to cottages, guests, barbecues and carefree meetings with friends. By inviting friends to my dacha I immediately prepare for a conversation with the guard. The conversation pattern does not change from time to time.

Characters: I, my friend, guard Nurik, automatic gates.

')

My friend: - Hi, Slav! We arrived at the gate SNT.

Me: - Hi, {friend's name}! Call the guard and tell the security that you need on the plot number 100.

... minute of waiting ...

My friend: - I am on plot number 100.

Nurik: - This is to Vyachislav?

My friend: - Yes, to Vyacheslav.

Nurik: - You can get me the phone. Alle, this is Nurik! Vyacheslav is to you?

I: - Yes, it is to me, miss, please.

Automatic gates: - Vzhzhzhzhzh ... zhzhzhzhzh ... klants.





I thought how it would be convenient to remotely open the gate, which is 800 meters from my site. The search for possible commercial solutions and discussion with the chairman brought a disappointing conclusion about the lack of funds to implement the project, because the cost of the block starts from 12.000 rubles.



I decided to search among opensource solutions, but a quick search did not produce results. This is very strange, because, for example, when installing automatic gates in a garage cooperative, everyone needs to buy a remote control, and with 500 boxes, this is 500,000 rubles. It is more logical to use a telephone and a GSM unit to control the gate instead of remotes. The result of all thought was the embodiment of such a decision from the minimum possible number of available elements. With a total cost of up to 1,000 rubles.



The result of the work was a prototype based on the Arduino, but there were many possible solutions. Upon receipt of an incoming call, the system determines the presence of the subscriber in the database. If there is a phone number in the database from which the call is coming, it opens the gate, which will automatically close after N seconds, if there are no obstacles in the photocell zone. In the absence of such a number in the database sends an alert to the administrator. The administrator assigned the first caller after the firmware. The system accepts from the administrator commands to add and remove numbers from the database.







In order to open the gate in almost all models of the drive, there are contacts on the board when the gate opens, it is designed to connect the operator’s button. All we need is to connect these contacts to the relay and close the relay if necessary. At the same time, standard consoles continue to work, these are solutions independent of each other.





Our automatic sliding gates are equipped with a module on the base of the ZBX6 board. We need to connect to the relay pins 2 and 7 with a photo.



Android solution



The first idea was to use as a block a smartphone that has served its own. In the course went my Samsung galaxy S3. Python for Android, a little magic and we get a solution that can communicate with arduino via bluetooth and even read SMS. Calling is a problem, and forcing people to send SMS, i.e. in fact, paying entry through the gate is no good.

The second idea with Android was to use a ready-made solution in the form of Blynk and Arduino SMS , but it was far from a working solution.



Raspberry pi solution



The second option was raspberry. With a Raspberry chip, I see the possibility of raising a web server and the ability to post pictures of each passing car to a twitter account. Forgive me the law on personal data.



Through the web interface, the user presses a button that changes the value in a specific cell. The script gets the data from the mysql request. In the case of detection in the variable value "1" Raspberry includes a relay via GPIO. Through the pytwitter module, a photo from the webcam is placed in the twitter account, the solution is directly in whole pieces from my lawn mower.

The idea was not tenacious. Everyone should have a smartphone, the Internet on a smartphone and a desire to learn how to use it all.



Solution with Arduino and GSM module



The cost of most GSM-modules starts from 1000 rubles, but surprisingly, in the open spaces of teanet, kits for assembly were found for 160 rubles. In the photo below.





Surface mounting of several elements and assembly took no more than 5 minutes.





Scheme







Pay



Now it is a few wires, Arduino, relay, power supply and GSM module. Now I just packed this piece of the prototype into the general drive case, but this is very ugly, although it works.



A further goal is to create a board on which there will already be:





Sketch arduino
The sketch needs to be improved, competent work with the EEPROM to minimize writing / erasing requires optimization of the sketch, so for the time being I post the first version.

#include <SoftwareSerial.h> SoftwareSerial mySerial(2, 3); // RX, TX int ch = 0; int led = 13; String val = ""; void setup() { delay(2000); //    pinMode(led, OUTPUT); digitalWrite(led, LOW); Serial.begin(9600); //  Serial.println("GSM tester v1.0"); mySerial.begin(9600); mySerial.println("AT+CLIP=1"); //  delay(100); mySerial.println("AT+CMGF=1"); //   -  ( .) delay(100); mySerial.println("AT+CSCS=\"GSM\""); //   delay(100); } void loop() { if (mySerial.available()) { // GSM  -  ,  while (mySerial.available()) { //     val ch = mySerial.read(); val += char(ch); delay(10); } if (val.indexOf("RING") > -1) { //  ,    if (val.indexOf("71234567890") > -1) { //   .     "+" Serial.println("--- MASTER RING DETECTED ---"); mySerial.println("ATH0"); //  digitalWrite(led, HIGH); //   3  delay(3000); digitalWrite(led, LOW); //  } } else Serial.println(val); //      val = ""; } if (Serial.available()) { //     - while (Serial.available()) { //    val ch = Serial.read(); val += char(ch); delay(10); } //mySerial.println(val); //  ,      GSM  if (val.indexOf("sendsms") > -1) { //     sms(String("hello world"), String("+71234567890")); //    +71234567890 } val = ""; // } } void sms(String text, String phone) //   { Serial.println("SMS send started"); mySerial.println("AT+CMGS=\"" + phone + "\""); delay(500); mySerial.print(text); delay(500); mySerial.print((char)26); delay(500); Serial.println("SMS send complete"); delay(2000); } 






System codes







Video







Plans





Plans for version 1.0







Plans for version 2.0







Not crowdfunding one



Like many of you, thoughts of crowdfunding do not give rest to my violent soul. I really want to try to do something together, by the power of the community. This project I do firstly for myself, because I feel this need. I also plan to make a product that will help make life more convenient without large financial costs.



The purpose of this post is to get backlash and get the community involved in the project. I launched Noorik's crowdfunding project on Planeta.ru to assess the need for such development. If you are ready to take part in the project - I am always in touch in VK .



The project is in dire need of:





Please make a repost, maybe some of your friends will want to participate in this project or someone needs this module.



Noorik



I will publish basic information on GT as it accumulates, if there is interest on your part.



Offtopic: There is one Chinese fairy tale. He lived in the world butcher, and he had a knife, which year after year remained perfectly sharp. When the butcher was asked how he manages to keep the blade in such a state, he replied: “I follow the bone lines. I am not trying to cut it, break it and in general somehow resist it. It will only spoil the knife. ” In life you have to go along the obstacles. If you try to overcome them - it only hurts.



Why am I doing this? The summer continues, but now I can call easily and the gate will open for my friends.

Thanks for attention! I went to cut the lamb and preparing for kebabs.



Do you have a choice: to close this page and watch fresh videos about cats or to make the world more open ...



All the best!

Source: https://habr.com/ru/post/393637/



All Articles