{"id":292643,"date":"2019-07-27T15:00:17","date_gmt":"2019-07-27T15:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=292643"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=292643","title":{"rendered":"Arduino \u0442\u0430\u0439\u043c\u0435\u0440"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u0438\u0442\u0430 \u0421\u0435\u0440\u0433\u0435\u0435\u0432\u0438\u0447, \u043c\u043d\u0435 14 \u043b\u0435\u0442 \u0438 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0438\u043c\u0435\u044e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u043c \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u044e \u043c\u043d\u043e\u044e \u043f\u043e\u043b \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 (\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438), \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u044f\u043b \u0438 \u0441\u043e\u0431\u0440\u0430\u043b \u043c\u043e\u0439 \u043e\u0442\u0435\u0446. \u0425\u043e\u0442\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u043d\u0435 \u0440\u0430\u0437, \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u0430 \u0432 \u043a\u0443\u0440\u044f\u0442\u043d\u0438\u043a\u0435, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0446\u0435\u043b\u0435\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/d7\/f6\/5f\/d7f65fhh4_wmplggd8lzgyfhgoe.jpeg\"\/> <br \/>  <a name=\"habracut\"><\/a><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1n\/um\/tb\/1numtb6lvac8ygitiqq8jeew4nk.jpeg\"\/><\/p>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u0430\u0442\u044c \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u0438\u043d arduino 1 \u0438\u043b\u0438 0 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434 \u043e\u0442 \u0438 \u0434\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0434\u043e \u043c\u0438\u043d\u0443\u0442 (\u0432\u043d\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u0430 ).<\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u0410 \u0432\u043e\u0442 \u043e\u0442\u0441\u044e\u0434\u0430 \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026<\/p>\n<p>  \u0415\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f android \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u043b\u044e\u0442\u0443\u0441 \u043c\u043e\u0434\u0443\u043b\u044e \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438 \u0434\u0443\u043c\u0430\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043d\u0438\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ey\/cx\/kr\/eycxkrwh96zkbqvybuoby39ztsu.png\"\/> <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7g\/si\/ci\/7gsici6o3wn3_cixihl_kkdidc8.png\"\/><\/p>\n<p>  .apk \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b:<\/p>\n<ol>\n<li>arduino;<\/li>\n<li>rtc module ds1307;<\/li>\n<li>bluetooth module HC-05;<\/li>\n<li>\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0432\u043e\u0434\u0430);<\/li>\n<li>\u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0434\u043b\u044f arduino; \u0441\u043a\u0435\u0442\u0447 \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0438 \u043b\u0443\u0447\u0448\u0435 \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f.<\/li>\n<li>\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f android;<\/li>\n<\/ol>\n<p>  \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 arduino \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438.<\/p>\n<p>  \u0410\u0433\u0430, \u043f\u0443\u043d\u043a\u0442\u044b 1-4:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-g\/y7\/n0\/-gy7n0kintt3n5k7xf9a1wack_e.jpeg\"\/><\/p>\n<pre><code class=\"plaintext\">arduino - hc-05          5v - vcc       gnd - gnd       TX1 - RXD       RX0 - TXD  arduino - ds1307          5v - 5v       gnd - gnd         A5 - scl         A4 - sda<\/code><\/pre>\n<p>   \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043a\u0435\u0442\u0447\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u0438\u043d RX0 \u043d\u0430 arduino. \u0412\u044b \u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u00ab\u0441\u043a\u0435\u0442\u0447\u00bb?<\/p>\n<p>  5.\u0421\u043a\u0435\u0442\u0447 \u0432 \u0441\u0442\u0443\u0434\u0438\u044e:<br \/>  <cut\/>  <\/p>\n<pre><code class=\"cpp\">#include &lt;Wire.h&gt;                                            \/\/\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0448\u0438\u043d\u043e\u0439 i2c #include &lt;iarduino_RTC.h&gt;                                    \/\/\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f rtc \u043c\u043e\u0434\u0443\u043b\u044f(\u0435\u0441\u043b\u0438 c\u0447\u0442\u043e, \u043b\u0435\u0436\u0438\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430(Timer-&gt;firmware_for_timer-&gt;iarduino_RTC))      #include &lt;EEPROM.h&gt;                                          \/\/\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e  iarduino_RTC time(RTC_DS1307);                               \/\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438  int values;                                                  \/\/\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445  unsigned int to_minutes(unsigned int hours, unsigned int minutes)\/\/\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043c\u0438\u043d\u0443\u0442 \u0432 \u043c\u0438\u043d\u0443\u0442\u044b {   return (60*hours)+minutes; }  void setup() {   time.begin();                                             \/\/\u043d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0430\u0441\u043e\u0432   Serial.begin(9600);                                       \/\/\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0440\u0442\u0430   }  void loop() {   if(Serial.available() &gt; 0)                                \/\/\u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e   {     values = Serial.read();     time.settime(0,-1, values);                             \/\/\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0447\u0430\u0441\u043e\u0432     delay(50);     values = Serial.read();     time.settime(0, values);                                \/\/\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u0438\u043d\u0443\u0442     delay(50);      \/\/\u043e\u0447\u0438\u0449\u0430\u0435\u043c \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c     for (int i = 0 ; i &lt; EEPROM.length() ; i++)     {       EEPROM.write(i, 0);     }     \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/          values = Serial.read();                                      delay(50);          \/\/\u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430     while (values &gt; 0)                                        \/\/\u043f\u043e\u043a\u0430 \u0435\u0441\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c     {       for(int i = 0; i &lt; 7; ++i)       {         EEPROM.write(EEPROM.read(EEPROM.length() - 1) * 7 + i, Serial.read());         delay(50);       }        EEPROM.write(EEPROM.length() - 1, EEPROM.read(EEPROM.length() - 1) + 1);        values = Serial.read();       delay(50);     }     \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/   }    \/\/\u043f\u0440\u043e\u0445\u043e\u0434 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0435\u0440\u0443   for(int i = 0; i &lt; EEPROM.read(EEPROM.length() - 1); ++i)   {     if(EEPROM.read(i * 7 + 0) == 1)                                                                               \/\/\u0435\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c     {       bool find = 0;                                                                                              \/\/\u0444\u043b\u0430\u0433       time.gettime();       if((to_minutes(EEPROM.read(i * 7 + 1), EEPROM.read(i * 7 + 2)) &lt;= to_minutes(time.Hours, time.minutes)) && \/\/\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b          (to_minutes(EEPROM.read(i * 7 + 3), EEPROM.read(i * 7 + 4)) &gt; to_minutes(time.Hours, time.minutes)))       {         pinMode(EEPROM.read(i * 7 + 5), OUTPUT);                                                                  \/\/\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0438\u043d \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434         digitalWrite(EEPROM.read(i * 7 + 5), EEPROM.read(i * 7 + 6));                                             \/\/\u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u043d\u0430 \u043f\u0438\u043d \u043d\u0443\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435       }                                  else                                                                                                        \/\/\u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e       {         \/\/\u0438\u0449\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043f\u0438\u043d\u043e\u043c         for (int j = 0; j &lt; EEPROM.read(EEPROM.length() - 1); ++j)         {           if(EEPROM.read(i * 7 + 5) == EEPROM.read(j * 7 + 5) && (i != j) && (EEPROM.read(j * 7 + 0) == 1))           {             \/\/\u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043f\u0438\u043d\u043e\u043c \u0438 \u0435\u0441\u043b\u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u0448\u043b\u043e             if((to_minutes(EEPROM.read(j * 7 + 1), EEPROM.read(j * 7 + 2)) &lt;= to_minutes(time.Hours, time.minutes)) &&                (to_minutes(EEPROM.read(j * 7 + 3), EEPROM.read(j * 7 + 4)) &gt; to_minutes(time.Hours, time.minutes))) \/\/\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b             {               pinMode(EEPROM.read(i * 7 + 5), OUTPUT);                                                             \/\/\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0438\u043d \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434               digitalWrite(EEPROM.read(i * 7 + 5), EEPROM.read(j * 7 + 6));                                        \/\/\u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u043d\u0430 \u043f\u0438\u043d \u043d\u0443\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435               find = 1;                                                                                            \/\/\u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0444\u043b\u0430\u0433             }           }         }          if(find == 0)                                                                                              \/\/\u0435\u0441\u043b\u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043f\u0438\u043d\u043e\u043c \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d         {           pinMode(EEPROM.read(i * 7 + 5), OUTPUT);                                                                 \/\/\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0438\u043d \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434           digitalWrite(EEPROM.read(i * 7 + 5), !EEPROM.read(i * 7 + 6));                                           \/\/\u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u043d\u0430 \u043f\u0438\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0435 \u043d\u0443\u0436\u043d\u043e\u043c\u0443         }       }     }   } } <\/code><\/pre>\n<p>  \u041d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u0435\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u043c \u0438 \u043d\u0435\u043f\u043e\u0434\u0432\u0438\u0436\u043d\u044b\u043c \u043a\u0430\u043a \u043a\u0430\u043c\u0435\u043d\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>  6.  <\/p>\n<blockquote><p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438 \u0434\u0443\u043c\u0430\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043d\u0438\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442.<\/p><\/blockquote>\n<p> \u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u0440\u0430\u0437\u0443. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0445\u043e\u0434\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u043b\u044e\u0442\u0443\u0441 \u043c\u043e\u0434\u0443\u043b\u044e, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u00bb<br \/>  \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043c\u043e\u0434\u0443\u043b\u044c. \u041f\u0440\u0438 \u0433\u0430\u043b\u043e\u0447\u043a\u0435 \u00ab\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u00bb \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0441\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u043b\u044e\u0442\u0443\u0441 \u043c\u043e\u0434\u0443\u043b\u044e, \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f(\u044d\u0442\u0443 \u0444\u0438\u0448\u043a\u0443 \u0432\u0437\u044f\u043b \u0443 alex gyver).\u00ab\u0442\u0430\u0439\u043c\u0435\u0440\u044b\u00bb \u0437\u0434\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u0438 \u0438\u0445 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0438\u043c\u0435\u043d\u0438. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u0438\u043c\u044f \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0440\u0430\u043d \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u0417\u0434\u0435\u0441\u044c \u0436\u0435(\u0433\u0434\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432) \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u043d\u0438\u0436\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d &quot;+&quot; \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0440\u0430\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\u0435\u0433\u043e \u0438\u043c\u044f, <\/li>\n<li>\u043e\u0442 \u043a\u0430\u043a\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438(\u0447\u0430\u0441\u044b \u043c\u0438\u043d\u0443\u0442\u044b),<\/li>\n<li>\u0434\u043e \u043a\u0430\u043a\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438(\u0447\u0430\u0441\u044b \u043c\u0438\u043d\u0443\u0442\u044b),<\/li>\n<li>\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043f\u0438\u043d,<\/li>\n<li>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u0435\u0433\u043e <\/li>\n<li>\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435(\u0431\u0443\u0434\u0435\u0442 arduino \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u043b\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f).<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/yadi.sk\/d\/GbXWkZcTu8pslQ\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435;<\/a><br \/>  <a href=\"https:\/\/yadi.sk\/d\/w6xHni4pnFIntw\">\u0410\u0440\u0445\u0438\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/a><\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0445\u043e\u0447\u0443 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u0441\u044f\u043a\u0438 \u0438\u043b\u0438 \u0431\u0430\u0433\u0438 \u2014 \u0441\u043c\u0435\u043b\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c.<\/p><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/461561\/\"> https:\/\/habr.com\/ru\/post\/461561\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u0438\u0442\u0430 \u0421\u0435\u0440\u0433\u0435\u0435\u0432\u0438\u0447, \u043c\u043d\u0435 14 \u043b\u0435\u0442 \u0438 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0438\u043c\u0435\u044e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0430\u043c \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u044e \u043c\u043d\u043e\u044e \u043f\u043e\u043b \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 (\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438), \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u043f\u0430\u044f\u043b \u0438 \u0441\u043e\u0431\u0440\u0430\u043b \u043c\u043e\u0439 \u043e\u0442\u0435\u0446. \u0425\u043e\u0442\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u043d\u0435 \u0440\u0430\u0437, \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u0430 \u0432 \u043a\u0443\u0440\u044f\u0442\u043d\u0438\u043a\u0435, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0446\u0435\u043b\u0435\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/d7\/f6\/5f\/d7f65fhh4_wmplggd8lzgyfhgoe.jpeg\"\/>   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-292643","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292643"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292643\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}