According to the traffic police over the past year 2017 in an accident involving drivers who are intoxicated, more than 3,000 died and more than 17,000 Russians were injured.
This is not only a significant loss for the state and society, but, first of all, of course, a huge, sometimes irreparable loss for loved ones. And no one is immune from this.
Yes, we are promised an ambulance, faster than we think, replacing drivers with robots, but so far this has not happened and people continue to die.
')
Well, let's try now to offer a solution to this problem.
Moreover, our president, V.V. Putin set the task of reducing the number of accidents with serious consequences.
It cannot be said that this crime is “overlooked” - there are laws, and constantly increasing fines, and special devices for testing for alcohol embedded in the car, and checking drivers by traffic police officers, and a single negative public opinion. But after all, the car owners themselves are not killer-killers, no one has a desire to make an accident, to kill and maim themselves and others. But alas, although there is some progress, the statistics are relentless.
Why so? Why bans are not effective? Because when a person is in a state of intoxication, in addition to worsening reactions, the level of self-control, up to his loss, sharply decreases, and many prohibitions (legislative, social, religious, family, personal, etc.) cease to exist for him. In a state of intoxication, such a person, without being aware of his actions and their consequences, is capable of causing harm (including the death of many people) both to himself and his relatives, friends, and others, such as sitting behind the wheel of a car, losing or losing a major the amount, having made an unnecessary expensive purchase, opening fire from a weapon belonging to him, etc. At the same time, after the cessation of intoxication, a person may be sincerely worried about the consequences and not understand how he could do this, because in a sober way he not at lo him in the head.
So maybe, if it is not possible to eliminate the factors that lead to intoxication (as historical practice has shown it is also counter-effective), fines and threats to an already drunk person do not matter, various controls built into the car are not very common and deceptive (besides ), relatives are sometimes not able to stop
the person who wants to “go for a drive”, and you will not attach a traffic police officer to each car,
offer the person himself an easy and understandable way, as well as a massive, simple, inexpensive, easy and fast t A technologically realizable
device for self-limiting his own dangerous activities during the period of intoxication . After all, as you know: “if you want what would be done well, do it yourself”, and “saving drowning people is the work of drowning people themselves” (c).
And such a device can be an ordinary "home" safe, the lock of which is controlled by a countdown timer.
How it works:
- such a safe user installs at home (or in any place he needs);
- the user himself (or people interested in security around him: his wife, children, more sober-minded friends), being sober and foreseeing a situation of onset of intoxication (for example, he came home tired, wanted to drink and rest; a party was scheduled) using them while intoxicated can cause damage, for example: car keys, credit cards, money, keys to the safe with a weapon, etc .;
- then he sets on the lock timer a time interval that corresponds to his idea of ​​the duration of his being intoxicated (for example, at 10 o'clock, before 7 in the morning, when he needs to work);
- locks the safe and turns on the countdown (for the period of its operation, you can turn off the power, the timer is equipped with an autonomous)
- for the period of time specified by it, the safe cannot be opened by regular means (but forgotten “dangerous” things can be put into it if you use the construction of a so-called deposit safe).
Thus, for the period set by him, the items placed in the safe will not be available to him and, therefore, he will not be able to use them for causing significant damage being intoxicated (as these things will not be available to others, and, consequently, they will not be able to take advantage of these things while their owner is “blacked out”, which prevents possible cases of theft, “bases” and misunderstandings).
Of course, for the sake of damage everything will fit, and not just what is in the safe. But we are talking about helping ordinary normal people, and not about maniac psychos (which, by the way, it will be easier to define). And of course, the safe can be hacked (if you really need it), but for this you need self-control, concentration, and this is a different story and another, more stable safe the next day, most just need to “remind” that “you don’t need to go.” Well, if you are safe, having suffered from hacking attempts and having heroically survived, will not open in the morning, you can call a locksmith and say thanks (of course in other words, emotionally and allegorically) to those who saved from possibly more trouble.
Something like that. Simply. Cheap (especially if you remember the amounts of fines, not to mention the "price" of an accident). It is clear to anyone. Efficiently enough (plus this safe can be used as usual, not including the timer). Fast and simple production technology (in fact, an alarm clock + a metal box with an electric lock, everything has long been known and produced). Used independently (and this is very important) enhancing a sense of responsibility and self-esteem. And it does not conflict with our culture and mentality.
The only serious problem is that in order to achieve high efficiency, you need to have such a device in every home. And it is really not easy, remembering that only in Russia there are about 40 million (only) car owners (in the world - more than 2 billion.) And you need not only to produce, but also to provide advertising, demand and sales; spread throughout the country, provide legal, informational and technical support. In one person, this is not to pull, individual instances and small batches of weather will not do, and large investments need large investments, which means you need to find interested organizations (and this is not only the state (unfortunately, because of its specificity it reacts very slowly), but and the church, and insurance companies, and manufacturers of safes, and various foundations, and, oddly enough, producers of alcohol) and agree with them about participation (which will not be so difficult because it’s quite PR and commercially profitable ). However, it is possible to lie on the stove, “ideas are in the air” and sooner or later a similar device will appear, but then our money and our workplaces (as well as money, workplaces, appreciation and respect for 2 million all over the world) will get more nimble foreign "partners" (c), but not us.
And, of course, we need a habit of using it, but this is true in every new case, and at first, relatives, for example, mother-in-law, may remind you. (besides, an important problem of justice is being solved - after all, poor quality or brute force can be used and anyone can commit a crime in an irresponsible form, even a law-abiding and non-drinker person, anything can happen in life, nobody renounces this, and there was no objective way to protect themselves. And this device provides such an opportunity, at the same time reducing the level of crime.) And also allows you to reduce the basis for corruption on the roads.
Unfortunately, it is clear that there can be no talk of 100% efficiency, but even if it saves 1 person (especially if it is you yourself), then it is worth it.
But in general, with ubiquitous distribution (for example, according to the state program, once (to the car owner) to issue a number plate free of charge, under painting - it will pay off instantly + jobs), we can expect efficiency in the region of 30%, and this is not an empty figure, but more than a thousand saved (only in Russia and only from death) people annually, among whom there may be your relatives and you yourself (besides, there is an objective indicator - traffic police statistics (Ministry of Internal Affairs, trauma centers and hospitals), which will show whether there is a benefit or not.)
Well, and with those who will continue to drink all the same behind the wheel, it will be possible to deal with more specifically and strictly. Surnames.
A device similar in principle can be built into a car (blocking it for a specified time (acting also as an anti-theft device), or even into a separate lock (for example, mounted, controlled by bluetooth / wifi and separate external power (including wireless)) for example, from a smartphone), it is also possible to release mobile “pocket” versions of such a device (I wanted to relax somewhere far from home — block “dangerous” things, such as a credit card and don’t be afraid that you will spend money on it (or someone more)) that can expand ut a way to apply this principle.
Naturally, the solution is not perfect. However, maybe someone will offer the best - simpler, cheaper, more massive, more understandable, more efficient. Maybe right here and now.
May be. In the meantime, let's move on from words to deeds and independently manufacture such a device.
Professionals can both assemble and design a beautiful design, program and add various additional chips (and, having understood the idea, they ran to warm up 3D printers, sharpen soldering irons, mix LUT, draw runes of schemes, weave a web of tracks on boards and conjure programs ). But we, nonprofessionals, will be doing in the simplest form, with a minimum of functions, but that it would be possible to assemble it for everyone, “on the knee”. Let it seem like a children's hand-made article, but it will make sure that it is simple and efficient, and after the first success it will be possible to easily and confidently go on to build an almost professional model on the basis of what has already been done.
Used components (almost all shown in the picture):
(we will not argue about their choice - the principle is clear and everyone implements it by the means that he has; there are a lot of variants of processors, program algorithms, locks, screens, cases (you can make a mechanical timer-lock and a round forged safe with rhinestones) ), for this case, the main thing is the availability and ease of assembly. Information where and how much will not be the same - all of this (or analogs) has long been widely represented on the Internet and radio stores.)

1. Processor module - Arduino Nano 5 volt ATMega328.
2. DS1302 clock module + battery.
3. OLED screen, 128x64, 0.96 ", I2C.
4. Servo Tower Pro SG90 (180 degrees) + single-lever lever (included in its kit).
5. Furniture bolt.
4. Buttons such (height> 13mm, for use in the proposed version of the housing) 3 pcs, 2kΩ resistors 3 pcs, a switch, an electrolytic capacitor (220µF or more).
5. Battery pack (used on 6 volts 2x2 AAA, which would fit into the proposed case) and batteries.
6. 2n2222 transistor or analogue + 1kOhm resistor, to control the power of the servomotor.
7. Suitable lengths of cable channel 40 * 16 and 25 * 16 (+ plugs for beauty) for electronics enclosures.
8. Circuit board (2 pcs, for interface and processor module).
9. Iron mounting plate.
10. mounting wires, connectors, screws, gadgets, glue ...
... and another clock button for testing and abnormal situations, so that the timer count could be reset if that.

It is best to first assemble the circuits on the mockups, step by step, first connect the screen, then the buttons, the timer, the servomotor and use the test programs for each step to test the work, and then load the main program, make sure everything works as it should and solder to circuit boards.
When assembling, you need to load the program into the Arduino. There are many articles on the Internet about working with this platform, so here it will not be described.
Timer (iarduino_RTC) and screen (OLED_I2C) libraries or their equivalents can also be downloaded from the Internet.
Included are programs that help step by step to check the assembled scheme - connecting the screen, buttons, timer, lock.
As a draft of a safe door, the easiest way is to take a small sheet of plywood or cardboard for the size of the door, mount and check everything on it, and then purchase a suitable safe and place the ready-made device on its door.
1. Making a lock
1.1. We remove the side stop on the latch.
1.2. Drill a hole in the handle of the latch, cut the thread and screw in a screw (with a thread lock so that it does not unscrew) with a lever (we make a hole in it in the middle, a little closer to the base) from the servomotor so that it can easily turn on the screw ( cut, and just screw the glue).
1.3. Find out in what position is the servo shaft.
1.3. We put on and fasten the single-lever lever to the servo so that the extreme position of the latch bolt corresponds to the extreme (almost) position of the servo shaft.
1.4. We fasten the bolt to the mounting plate with screws and nuts, and the servo drive is not rigidly fastened with a flexible tie.

The castle is ready. It is not intended for professional use, but is quite suitable for a start, as a visual sample.

2. The interface module and the processor module are assembled (step by step, checking with the help of test programs from the kit) on the breadboard board according to the picture (the connection of the contacts is indicated in the program), load the program, test it, and then transfer it to 2 circuit boards and solder everything.

3. The program is available at:
github.com/dim2011/AntiAlcoBox3.1. Comments on the work and settings in its text.
3.2. We load the program into the controller and check the operation of the device (there is a demo mode).
4. Everything is beautifully fastened in the cases and on the “door”.


Is done.
What can be improved:
- install a suitable key lock;
- apply a door / lock sensor;
- add battery timer test;
- connect and program a squeaker;
- replace the servo used with the metal gearbox version (MG90S) for reliability + make the lever more reliable;
- insert, just in case, a suitable resistor in the reset button circuit, suddenly there is a maniac who will clamp it at the moment of start;
- supplement the interface board with a connector for external power supply from the network (for example, from charging a cell phone), and the fuse would not hurt;
- program menu with settings, incl. date and time to set not only the duration of the report, but also the time of its completion, which is more convenient;
- add the ability to set the "grace period" when you can still open the safe, if you forgot something after the start of the countdown;
- include in the program the ability to set the code for opening when the report is not kept (will be like a code safe, so that only the owner can open before the start / after the countdown) everyone knows and will have to reprogram (all) such devices);
- improve the design;
- add the ability to control via the IR remote (from the TV) or the mobile phone application via WiFi / bluetooth (safer via SoftwareSerial);
- Embed an alarm system (for example, for shaking / hitting) with a siren or voice message + transmitting information about a hacking attempt to interested parties (3G, WiFi) + video broadcasting / recording;
- microphone, speaker and computer with AI, that would "talk for life" and with the recording of the conversation;
- consider the way of advertising;
- choose a cheap and reliable processor for industrial release;
to paint
And, of course, be sure to replace the managed lock with a more professional and reliable lock.
As you can see, nothing complicated, no nanotechnology and blockchain.
And now we have a simple, understandable, cheap and quite effective remedy for protection against auto-Alkashas, ​​which can be done with our own hands.
It only remains to be widely implemented in order to save the life and health of themselves and thousands of people every year.
Disclaimer: The author is not responsible for any direct or indirect damage related to the information in this article.
The author is not a professional neither in radio electronics, nor in programming, nor in design and hopes that more experienced comrades will help interested non-professionals with answers to professional questions.
A patent application has been filed. However, according to Article 1359 p.4 of the Civil Code of the Russian Federation does not constitute a violation of the exclusive right to invention the use of an invention, utility model or industrial design to meet personal, family, home or other non-business needs, unless the purpose of such use is to make a profit or income.