{"id":252601,"date":"2015-03-07T13:57:02","date_gmt":"2015-03-07T09:57:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252601"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252601","title":{"rendered":"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c Wi-Fi \u0440\u043e\u0431\u043e\u0442\u0430"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/8cb\/7c0\/9a2\/8cb7c09a215f6f960223891eb91b04c0.jpg\"\/><br \/>  \u0414\u0430\u0432\u043d\u043e \u043c\u0435\u0447\u0442\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c Wi-Fi \u0440\u043e\u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e. \u0418 \u0432\u043e\u0442 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043d\u0430\u0441\u0442\u0430\u043b \u0442\u043e\u0442 \u0434\u0435\u043d\u044c \u043a\u043e\u0433\u0434\u0430 \u044f \u0441\u043c\u043e\u0433 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0433\u043e. <br \/>  \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442<a name=\"habracut\"><\/a><\/p>\n<p>  <b>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u043e\u0431\u043e\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0435:<\/b><\/p>\n<p>  \u041d\u0430\u0431\u043e\u0440 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0440\u043e\u0431\u043e\u0442\u0430<br \/>  \u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0440\u043e\u0431\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<br \/>  Arduino Nano v.7<br \/>  \u0414\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u0439<br \/>  \u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 TP-Link TL-WR703N<br \/>  \u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0439 USB 2.0 Hub<br \/>  <a href=\"http:\/\/carduino.ru\/index.php?cat=209\">\u041f\u043e\u043a\u0443\u043f\u0430\u043b \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0435 \u0437\u0434\u0435\u0441\u044c.<\/a><\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u0439 \u0440\u043e\u0431\u043e\u0442, \u0431\u0435\u0437 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u043a\u0440\u044b\u0448\u043a\u0438. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/190\/f92\/320\/190f9232042040e20077d7c256520598.jpg\"\/><\/p>\n<p>  <b>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443:<\/b><\/p>\n<p>  \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0440\u043e\u0431\u043e\u0442\u0430<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/c36\/6f9\/2ad\/c366f92ad19e70678bf40e92c32de61d.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u0435<br \/>  \u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e Arduino Nano, \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0438\u0437\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c HC.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/62e\/f8c\/bbe\/62ef8cbbec4ba482fc39b5848715c97e.png\" alt=\"image\"\/><\/p>\n<p>  \u0420\u043e\u0443\u0442\u0435\u0440 wr703N \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b \u043a \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0440\u043e\u0431\u043e\u0442\u0430 \u043d\u0430 \u0434\u0432\u0443\u0445\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0441\u043a\u043e\u0442\u0447<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/0e4\/10b\/cad\/0e410bcad6db3f38a929bedeec09f71f.jpg\"\/><\/p>\n<p>  \u0412\u0435\u0431 \u043a\u0430\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0430 \u043d\u0430 \u043c\u0435\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0433\u043e\u043b\u043e\u043a, \u043a \u0448\u0442\u0430\u043d\u0430\u043c \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u044f\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u043e\u043c\u043e\u0442\u043e\u0440\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/198\/e48\/8b3\/198e488b3403df6ce1193bb76856ca11.jpg\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0448\u0438\u043b \u0440\u043e\u0443\u0442\u0435\u0440 <a href=\"http:\/\/cyber-place.ru\/forumdisplay.php?f=44\">\u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439 CyberWrt<\/a>.<br \/>  \u0421yberWrt \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 OpenWrt \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043b\u044f \u0440\u043e\u0431\u043e\u0442\u043e\u0432, \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u0432 Tp-Link mr3020 b Wr703N. \u0423 \u0421yberWrt \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u2014 1.25\u041c\u0431. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438, \u0440\u043e\u0443\u0442\u0435\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 \u0441\u0435\u0442\u0438 \u043f\u043e \u043a\u0430\u0431\u0435\u043b\u044e \u0438 \u043f\u043e WiFi, \u043a\u0430\u043a \u0442\u043e\u0447\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0427\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u00ab\u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438\u00bb \u2014 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c, \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u043e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043a WiFi \u0442\u043e\u0447\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u00abCyberBot\u00bb, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0435\u043c\u0443 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0430<br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 <a href=\"http:\/\/cyberwrt.ru\/demo\/index.php\">\u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/a> \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 <br \/>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0438 \u0414\u0440\u0430\u0439\u0432\u0435\u0440 FTDI, \u0414\u0440\u0430\u0439\u0432\u0435\u0440 video \u0438 CyberBot-2<\/p>\n<p>  \u041f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0430\u0440\u0434\u0443\u0438\u043d\u043e.<br \/>  \u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u043e\u0431\u043e\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u043d\u043e \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442<br \/>  \u041a\u043e\u0434 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b Arduino \u0441 ATmega168\/328 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <a href=\"http:\/\/cyber-place.ru\/showthread.php?t=550\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 CyberLib<\/a><br \/>  \u042d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432\u044b\u0436\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430<br \/>  \u0412 \u043a\u043e\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f WDT, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u0440\u043e\u0431\u043e\u0442 \u043d\u0435 \u0441\u043c\u043e\u0433 \u0437\u0430\u0432\u0438\u0441\u043d\u0443\u0442\u044c.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043a\u043e\u0434 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u043f\u043e \u043e\u0441\u044f\u043c X \u0438 Y, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u043e\u043c\u043e\u0442\u043e\u0440\u043e\u0432 \u0438 \u044f \u043d\u0435 \u0441\u043c\u043e\u0433 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0434\u043b\u044f Arduino<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;CyberLib.h&gt;  #include &lt;Servo.h&gt;   Servo myservo1;  Servo myservo2;   long previousMillis; http:\/\/cyber-place.ru\/attachment.php?attachmentid=600&d=1389429469 uint8_t LedStep = 0; \/\/ \u0421\u0447\u0435\u0442\u0447\u0438\u043a int i;  boolean light_stat; uint8_t inByte;  uint8_t speed=255; \/\/\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e  #define init {D4_Out; D5_Out; D6_Out; D7_Out; D8_Out; D11_Out; D12_Out;}    void setup()    {     myservo1.attach(9); \/\/ \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u043e\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u0432 \u043a \u043f\u043e\u0440\u0442\u0443    myservo2.attach(10); \/\/ \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u043e\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u0432 \u043a \u043f\u043e\u0440\u0442\u0443    init;  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u0442\u043e\u0432    D11_Low; \/\/ \u0414\u0438\u043d\u0430\u043c\u0438\u043a  OFF   randomSeed(A6_Read); \/\/\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435      horn(); \/\/\u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u0440\u043e\u0431\u043e\u0442\u0430     UART_Init(57600);\/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u0442\u0430 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c      wdt_enable (WDTO_500MS);   }     void loop()    {       unsigned long currentMillis = millis();       if (LedStep == 0 && currentMillis - previousMillis &gt; 500){ \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 0,5 \u0441\u0435\u043a.         previousMillis = currentMillis;       LedStep = 1;      }       if (LedStep == 1 && currentMillis - previousMillis &gt; 500){ \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 0,5 \u0441\u0435\u043a.        previousMillis = currentMillis;        LedStep = 2;     }       if (LedStep == 2 && currentMillis - previousMillis &gt; 500){ \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 0,5 \u0441\u0435\u043a.        LedStep = 0;      }        if (UART_ReadByte(inByte)) \/\/\u0415\u0441\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e    {      switch (inByte)  \/\/ \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u0430      {            case 'x': \/\/ \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u043e\u0431\u043e\u0442\u0430            robot_stop();          break;                     case 'W': \/\/ \u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0432\u043f\u0435\u0440\u0435\u0434            robot_go();            break;                      case 'D': \/\/ \u041f\u043e\u0432\u043e\u0440\u043e\u0442j\u0442 \u0432\u043b\u0435\u0432\u043e            robot_rotation_left();           break;           case 'A': \/\/ \u041f\u043e\u0432\u043e\u0440\u043e\u0442 \u0432\u043f\u0440\u0430\u0432\u043e            robot_rotation_right();           break;                     case 'S': \/\/ \u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0437\u0430\u0434            robot_back();           break;                     case 'U': \/\/ \u041a\u0430\u043c\u0435\u0440\u0430 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0440\u0445           myservo1.write(i -= 20);            break;                     case 'J': \/\/ \u041a\u0430\u043c\u0435\u0440\u0430 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0438\u0437            myservo1.write(i += 20);          break;                     case 'H': \/\/ \u041a\u0430\u043c\u0435\u0440\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f  \u0432\u043f\u0440\u0430\u0432\u043e          myservo2.write(i += 20);           break;                     case 'K': \/\/ \u041a\u0430\u043c\u0435\u0440\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043b\u0435\u0432\u043e                myservo2.write(i -= 20);          break;                      case 'B': \/\/  \u0411\u043b\u0430\u0441\u0442\u0435\u0440           D12_High;          break;                   case 'C': \/\/ \u041a\u043b\u0430\u043a\u0441\u043e\u043d           horn();          break;                    case 'V': \/\/ \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\/\u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u0430\u0440\u044b          if(light_stat)         {          D8_Low;          light_stat=false;         } else                {                D8_High;                light_stat=true;               }         break;      }        if(inByte&gt;47 && inByte&lt;58) speed=(inByte-47)*25+5;  \/\/\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0432 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c            }    wdt_reset();  }   void horn() {   for(uint8_t i=0; i&lt;12; i++) beep(70, random(100, 2000));  \/\/\u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435  }  void robot_go()  {    D4_Low;    analogWrite(5, speed);     analogWrite(6, speed);    D7_Low;  }   void robot_back()  {     D4_High;      analogWrite(5, 255-speed);      analogWrite(6, 255-speed);     D7_High;  }   void robot_stop()  {    D4_Low;     analogWrite(5, 0);     analogWrite(6, 0);    D7_Low;    }   void robot_rotation_left()  {    D4_Low;    analogWrite(5, speed);     analogWrite(6, 255-speed);     D7_High;  }   void robot_rotation_right()  {    D4_High;     analogWrite(5, 255-speed);     analogWrite(6, speed);     D7_Low;  }   <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043e \u0438 \u043f\u0440\u043e\u0448\u0438\u0442\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u043e\u0431\u043e\u0442\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e.<br \/>  \u041d\u0430 PC \u043a\u0440\u043e\u043c\u0435 \u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0449\u0435 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b, \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c\u0438 W, A, D, S, X<\/p>\n<p>  \u0412\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0432\u0438\u0434\u0435\u043e:<br \/>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/ZI1ZcigQPlk?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u0430 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u044f.      \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/252411\/\"> http:\/\/habrahabr.ru\/post\/252411\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/8cb\/7c0\/9a2\/8cb7c09a215f6f960223891eb91b04c0.jpg\"\/><br \/>  \u0414\u0430\u0432\u043d\u043e \u043c\u0435\u0447\u0442\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c Wi-Fi \u0440\u043e\u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e. \u0418 \u0432\u043e\u0442 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043d\u0430\u0441\u0442\u0430\u043b \u0442\u043e\u0442 \u0434\u0435\u043d\u044c \u043a\u043e\u0433\u0434\u0430 \u044f \u0441\u043c\u043e\u0433 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0433\u043e. <br \/>  \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442<\/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-252601","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252601","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=252601"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252601\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}