{"id":292101,"date":"2019-07-16T03:01:14","date_gmt":"2019-07-16T03:01:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=292101"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=292101","title":{"rendered":"\u0411\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u043e\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438 \u0432\u043e\u0434\u044b \u043d\u0430 nRF52832, DIY \u043f\u0440\u043e\u0435\u043a\u0442"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0432\u0441\u0435\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00abDIY \u0438\u043b\u0438 \u0421\u0434\u0435\u043b\u0430\u0439 \u0441\u0430\u043c\u00bb \u043d\u0430 Habr! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0435 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438 \u0432\u043e\u0434\u044b \u043d\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043d\u043e\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0438. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 nRF52832. \u0415\u0441\u0442\u044c \u0442\u0440\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441 nRF52832, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c YJ-17103 \u043e\u0442 HOLYIOT.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cu\/jp\/np\/cujpnppmqhppnxx4ytplarqgfgs.jpeg\"><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 SN74LVC1G00 | <a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/sn74lvc1g00.pdf\">\u0414\u0430\u0442\u0430\u0448\u0438\u0442<\/a>. \u041a\u0440\u0430\u0442\u043a\u043e \u043e\u043f\u0438\u0448\u0443 \u0441\u0445\u0435\u043c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b. \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u0434 \u21161 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0437\u0435\u043c\u043b\u0435, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u0434 \u21162 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043d\u043e\u0436\u043a\u0430\u043c A \u0438 \u0412 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b SN74LVC1G00 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 100O\u043c, \u0442\u0430\u043a \u0436\u0435 \u043a \u044d\u0442\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u043e 3.3\u0432 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 1\u041c, \u0442\u0430\u043a \u0436\u0435 \u0432 \u0441\u0445\u0435\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0435\u043c\u043a\u043e\u0441\u0442\u044c. \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430 \u0441 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0442 \u043d\u0430 \u043d\u043e\u0436\u043a\u0430\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b A \u0438 \u0412 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 Y \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u043a \u043d\u043e\u0436\u043a\u0435 \u041c\u041a (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u0440\u0430\u0442\u043e\u0440) \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043d\u043e\u043b\u044c. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0441 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u044c\u044e \u0438 \u043d\u0430 \u043d\u043e\u0436\u043a\u0430\u0445 A \u0438 B \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0437\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 Y \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b SN74LVC1G00 \u0442\u0430\u043a \u0436\u0435 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u041c\u041a \u0438\u0437 \u0441\u043d\u0430. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 SN74LVC1G00 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u0430 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0443 SN74LVC1G14 | <a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/sn74lvc1g14.pdf\">\u0414\u0430\u0442\u0430\u0448\u0438\u0442<\/a>, \u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 :). \u0414\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438 \u0441 \u043d\u043e\u0436\u043a\u0438 \u041c\u041a \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u0440\u0430\u0442\u043e\u0440 \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u0430\u043a \u0438 \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435\u043c \u043c\u043e\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u044d\u0442\u043e\u0442 \u0442\u043e\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Arduino \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438 \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434(\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e) \u044d\u0442\u043e\u0442 \u0442\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d \u043f\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442 Myssensors. \u041a\u0430\u043a \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0432\u043e\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0442\u0440\u043e\u043d\u0443 \u0442\u0435\u043c\u0443 Mysensors \u0438 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. <\/p>\n<p>  Mysensors \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c. \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u043e \u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Arduino. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f Mysensors \u0441\u0435\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0433\u0435\u0439\u0442\u0430(\u0448\u043b\u044e\u0437\u0430), \u0440\u0435\u0442\u0440\u0430\u043d\u0441\u0442\u044f\u0442\u043e\u0440\u043e\u0432 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432(\u043d\u043e\u0434\u044b). \u0412 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e 254 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0441\u043d\u0430\u0449\u0435\u043d\u043e \u0434\u043e 254-\u043c\u044f \u0441\u0435\u043d\u0441\u043e\u0440\u0430\u043c\u0438, \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438, \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0443\u0437\u043b\u0430\u043c\u0438. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u0435\u0442\u0438, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0430 \u0423\u0414. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u043e\u0432(\u041c\u0430\u0436\u043e\u0440\u0434\u043e\u043c\u043e) \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0435\u0442\u044f\u043c\u0438\u0438 Mysensors(\u043c\u0443\u043b\u044c\u0442\u0438\u0433\u0435\u0439\u0442\u043e\u0432\u043e\u0441\u0442\u044c), \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0435\u0442\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u043e\u043c.<\/p>\n<p>  <b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b<\/b>: Linux \/ Raspberry Pi \/ Orange Pi | ATMega 328P | ESP8266 | ESP32 | nRF5x(Cortex M0, M4) | Atmel SAMD, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435 \u0432 Arduino Zero (Cortex M0) | Teensy3(MK66FX1M0VMD18) | STM32F1.<\/p>\n<p>  <b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0440\u0430\u0434\u0438\u043e\u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u0438<\/b>: NRF24L01 | RFM69 | RFM95 (LoRa) | nRF5x <\/p>\n<p>  <b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u043e\u0439 \u0442\u0438\u043f \u0441\u0432\u044f\u0437\u0438<\/b>: RS485<\/p>\n<p>  <b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0433\u0435\u0439\u0442\u043e\u043c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u043e\u043c<\/b>: MQTT | Serial USB | WiFi | Ethernet | GSM<\/p>\n<p>  \u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0434\u0430\u0442\u0447\u0438\u043a\u0443 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0435\u043a CR2430, CR2450 \u0438\u043b\u0438 CR2477. \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u0432\u043e \u0441\u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u043d\u0435\u0435 3\u043c\u043a\u0410. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u2014 250Kbps, 10-15ms. \u042d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 8\u043c\u0410. \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0440\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u0435\u043d \u0441\u0440\u043e\u043a\u0443 \u0441\u0430\u043c\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432\u0441\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0440\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0442 \u043e\u0434\u043d\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0431\u043b\u0438\u0436\u0435 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u2014 \u0441\u0440\u043e\u043a \u0441\u0430\u043c\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u0430\/2 :). \u041f\u0438\u0442\u0430\u043d\u0438\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u043f\u0438\u043d\u0430 VDD. \u0412 \u0434\u0430\u0442\u0447\u0438\u043a\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d RGB LED \u0434\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0432 \u0441\u0435\u0442\u0438, \u0434\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u0438 \u0434\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e.<\/p>\n<p>  \u041f\u043b\u0430\u0442\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u044b\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0435\u0435 \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u043c\u0435\u0442\u043e\u0434\u0443 \u041b\u0423\u0422. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u044d\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0442\u0440\u0430\u0441\u0441, \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0442\u0440\u0430\u0441\u0441\u0430\u043c\u0438, \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 \u043f\u043e\u0434 \u043c\u0435\u0436\u0441\u043b\u043e\u0439\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b(\u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u0432\u0435\u0440\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u0439), \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u0430\u043b\u0438\u0432\u043a\u0438 \u043f\u0443\u0441\u0442\u044b\u0445 \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u043b\u0430\u0442\u044b. \u041f\u043e\u0437\u0436\u0435 \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/t3\/nt\/fl\/t3ntflgy-mpiiijyx9ch2kr_dro.png\"><\/p>\n<p>  \u041a\u043e\u0440\u043f\u0443\u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u044b\u043b \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439. \u0412\u0435\u0440\u0445\u043d\u044f\u044f \u043a\u0440\u044b\u0448\u043a\u0430 \u0441 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u044b \u0438 \u043d\u0438\u0436\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c(\u0432\u0430\u043d\u043d\u043e\u0447\u043a\u0430) \u0441 2 \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u0434 \u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0435 \u0432\u0438\u043d\u0442\u044b(\u0433\u0435\u0440\u043c\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0441\u0438\u043b\u0438\u043a\u043e\u043d\u043e\u0432\u044b\u043c \u0433\u0435\u0440\u043c\u0435\u0442\u0438\u043a\u043e\u043c \u043f\u043e\u0434 \u0448\u043b\u044f\u043f\u043a\u0443 \u0432\u0438\u043d\u0442\u043e\u0432 \u0438\u043b\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f) \u0438 \u0434\u0432\u0443\u043c\u044f \u0442\u0440\u0443\u0431\u043a\u0430\u043c\u0438 \u043f\u043e\u0434 \u043a\u043d\u043e\u043f\u043a\u0438(\u0441\u0431\u0440\u043e\u0441 \u0438 \u0440\u0435\u0436\u0438\u043c\u044b) \u043d\u0430 \u043f\u043b\u0430\u0442\u0435. \u041f\u0435\u0447\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0430\u0441\u044c \u043d\u0430 SLA 3D \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435 ANICUBIC PHOTON. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0447\u0430\u0442\u0438 \u0431\u044b\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430\u0436\u0434\u0430\u0447\u043d\u043e\u0439 \u0431\u0443\u043c\u0430\u0433\u043e\u0439 320 \u0438 1000 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u043e\u043d\u043a\u0438 \u0441\u0442\u044b\u043a\u043e\u0432 \u043a\u0440\u044b\u0448\u043a\u0438 \u0438 \u0434\u043d\u0430 \u043a\u043e\u0440\u043f\u0443\u0441\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wo\/6a\/lp\/wo6alplsifb0q1chfytor46xijm.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ln\/as\/rc\/lnasrcwqmv4sp26y-e-qrjt5-n4.png\"><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xs\/yc\/ar\/xsycarves23jwawofy3qaqqpux0.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sj\/1i\/yz\/sj1iyz35chjsvv1zmvbivm3fnx4.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sj\/ra\/kx\/sjrakx6tb17aoe6pseqgrn8ls2m.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vx\/jf\/9_\/vxjf9_zdw6uw3wa3nlgr6_rijdk.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bk\/tl\/el\/bktlelcpzcd77cmrlugwyc0t_ta.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/of\/ng\/fh\/ofngfhmlz_ax3fy-e1jajaueq0q.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hf\/cy\/fa\/hfcyfaxvkcrbplypfjh2wbf2wrw.jpeg\"><\/p><\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">wl_standart_test.ino  <\/p>\n<pre><code class=\"cpp\">bool button_flag; bool send_flag; bool detection; bool nosleep; byte timer; bool AckG; bool AckB; bool AckL; bool PRESENT_ACK; bool flag_lq; unsigned long SLEEP_TIME = 172800000; \/\/48 hours \/\/unsigned long SLEEP_TIME = 3600000; \/\/1 hour unsigned long oldmillis; unsigned long newmillis; unsigned long interrupt_time; unsigned long SLEEP_TIME_W; uint16_t currentBatteryPercent; uint16_t batteryVoltage = 0; uint16_t battery_vcc_min = 2300; uint16_t battery_vcc_max = 3000;  int16_t linkQuality;  #define MY_DISABLED_SERIAL #define MY_RADIO_NRF5_ESB #define MY_RF24_PA_LEVEL (NRF5_PA_MAX) \/\/#define MY_PASSIVE_NODE #define MY_NODE_ID 86 #define MY_PARENT_NODE_ID 0 #define MY_PARENT_NODE_IS_STATIC #define MY_TRANSPORT_UPLINK_CHECK_DISABLED #define INTR_PIN 3 \/\/(PORT0,  gpio 5) #include &lt;MySensors.h&gt; \/\/ see https:\/\/www.mysensors.org\/download\/serial_api_20 #define W_L_SENS_CHILD_ID 0 #define LINK_QUALITY_CHILD_ID 253 MyMessage sensMsg(W_L_SENS_CHILD_ID, V_VAR1); \/\/MyMessage voltMsg(CHILD_ID_VOLT, V_VOLTAGE);   void preHwInit() {   pinMode(POWER_PIN, OUTPUT);   digitalWrite(POWER_PIN, HIGH);   wait(3000);   pinMode(RED_LED, OUTPUT);   digitalWrite(RED_LED, HIGH);   pinMode(GREEN_LED, OUTPUT);   digitalWrite(GREEN_LED, HIGH);   pinMode(BLUE_LED, OUTPUT);   digitalWrite(BLUE_LED, HIGH);   pinMode(PIN_BUTTON, INPUT);   pinMode(W_L_SENS, INPUT);    \/\/pinMode(24, OUTPUT);   \/\/pinMode(20, OUTPUT); }  void before() {   NRF_POWER-&gt;DCDCEN = 1;   NRF_UART0-&gt;ENABLE = 0;   digitalWrite(BLUE_LED, LOW);   sleep(50);   digitalWrite(BLUE_LED, HIGH); }  void presentation() {   sendSketchInfo(\"EFEKTA ST WL Sensor\", \"1.1\");   present(W_L_SENS_CHILD_ID, S_CUSTOM, \"SWITCH STATUS\");   present(LINK_QUALITY_CHILD_ID, S_CUSTOM, \"LINK_QUALITY\"); }  void setup() {   digitalWrite(BLUE_LED, LOW);   wait(100);   digitalWrite(BLUE_LED, HIGH);   wait(200);   digitalWrite(BLUE_LED, LOW);   wait(100);   digitalWrite(BLUE_LED, HIGH);   lpComp();   detection = false;   SLEEP_TIME_W = SLEEP_TIME;   wait(100);   sendBatteryStatus();   wait(100);   send(sensMsg.set(detection), 1);   wait(2000, 1, V_VAR1); }  void loop() {   if (nosleep == 0) {     oldmillis = millis();     sleep(SLEEP_TIME_W);   }    if (detection) {     if (digitalRead(PIN_BUTTON) == 1 &amp;&amp; button_flag == 0 &amp;&amp; digitalRead(W_L_SENS) == 0) {       \/\/back side button detection       button_flag = 1;       nosleep = 1;     }     if (digitalRead(PIN_BUTTON) == 1 &amp;&amp; button_flag == 1 &amp;&amp; digitalRead(W_L_SENS) == 0) {       digitalWrite(GREEN_LED, LOW);       wait(10);       digitalWrite(GREEN_LED, HIGH);       wait(50);     }     if (digitalRead(PIN_BUTTON) == 0 &amp;&amp; button_flag == 1 &amp;&amp; digitalRead(W_L_SENS) == 0) {       nosleep = 0;       button_flag = 0;       digitalWrite(GREEN_LED, HIGH);       lpComp_reset();     }      if (digitalRead(W_L_SENS) == 1 &amp;&amp; digitalRead(PIN_BUTTON) == 0) {       \/\/sens detection       newmillis = millis();       interrupt_time = newmillis - oldmillis;       SLEEP_TIME_W = SLEEP_TIME_W - interrupt_time;       send(sensMsg.set(detection), 1);       wait(3000, 1, V_VAR1);       if (AckG == 1) {         while (timer &lt; 10) {           timer++;           digitalWrite(BLUE_LED, LOW);           wait(20);           digitalWrite(BLUE_LED, HIGH);           wait(30);         }         timer = 0;         AckG = 0;         wait(200);       } else {         while (timer &lt; 10) {           timer++;           digitalWrite(RED_LED, LOW);           wait(20);           digitalWrite(RED_LED, HIGH);           wait(30);         }         timer = 0;         send(sensMsg.set(detection), 1);         wait(3000, 1, V_VAR1);         if (AckG == 1) {           while (timer &lt; 10) {             timer++;             digitalWrite(BLUE_LED, LOW);             wait(20);             digitalWrite(BLUE_LED, HIGH);             wait(30);           }           timer = 0;           AckG = 0;         } else {           while (timer &lt; 10) {             timer++;             digitalWrite(RED_LED, LOW);             wait(20);             digitalWrite(RED_LED, HIGH);             wait(30);           }           timer = 0;         }         lpComp_reset();       }     }      if (SLEEP_TIME_W &lt; 60000) {       SLEEP_TIME_W = SLEEP_TIME;       sendBatteryStatus();     }   }   else {     \/\/if (detection == -1) {     SLEEP_TIME_W = SLEEP_TIME;     sendBatteryStatus();   } }   void receive(const MyMessage &amp; message) {   if (message.type == V_VAR1) {     if (message.sensor == W_L_SENS_CHILD_ID) {       if (mGetCommand(message) == 1) {         if (message.isAck()) {           AckG = 1;         } else {          }       }     }   }   if (message.type == I_BATTERY_LEVEL) {     if (message.sensor == 255) {       if (mGetCommand(message) == 3) {         if (message.isAck()) {           AckB = 1;         } else {          }       }     }   }   if (message.type == V_VAR1) {     if (message.sensor == 255) {       if (mGetCommand(message) == 1) {         if (message.isAck()) {           AckL = 1;         } else {          }       }     }   } }   void sendBatteryStatus() {   wait(100);   batteryVoltage = hwCPUVoltage();   wait(20);    if (batteryVoltage &gt; battery_vcc_max) {     currentBatteryPercent = 100;   }   else if (batteryVoltage &lt; battery_vcc_min) {     currentBatteryPercent = 0;   } else {     currentBatteryPercent = (100 * (batteryVoltage - battery_vcc_min)) \/ (battery_vcc_max - battery_vcc_min);   }   sendBatteryLevel(currentBatteryPercent, 1);   wait(3000, C_INTERNAL, I_BATTERY_LEVEL);   if (AckB == 1) {     AckB = 0;     flag_lq = 1;   } else {       sendBatteryLevel(currentBatteryPercent, 1);      wait(3000, C_INTERNAL, I_BATTERY_LEVEL);      if (AckB == 1) {       AckB = 0;       flag_lq = 1;     }   }   \/\/send(powerMsg.set(batteryVoltage), 1);   \/\/wait(2000, 1, V_VAR1);    \/\/sleep(10000); \/\/   if (flag_lq == 1) {     linkQuality = calculationRxQuality();     wait(50);     sendSignalStrength(linkQuality, 1);     wait(2000, 1, V_VAR1);     if (AckL == 1) {       AckL = 0;     } else {       sendSignalStrength(linkQuality, 1);       wait(2000, 1, V_VAR1);       if (AckL == 1) {         AckG = 0;       }     }     flag_lq = 0;   } }   void lpComp() {   NRF_LPCOMP-&gt;PSEL = INTR_PIN;   NRF_LPCOMP-&gt;ANADETECT = 1;   NRF_LPCOMP-&gt;INTENSET = B0100;   NRF_LPCOMP-&gt;ENABLE = 1;   NRF_LPCOMP-&gt;TASKS_START = 1;   NVIC_SetPriority(LPCOMP_IRQn, 15);   NVIC_ClearPendingIRQ(LPCOMP_IRQn);   NVIC_EnableIRQ(LPCOMP_IRQn); }  void s_lpComp() {   if ((NRF_LPCOMP-&gt;ENABLE) &amp;&amp; (NRF_LPCOMP-&gt;EVENTS_READY)) {     NRF_LPCOMP-&gt;INTENCLR = B0100;   } }  void r_lpComp() {   NRF_LPCOMP-&gt;INTENSET = B0100; }  #if __CORTEX_M == 0x04 #define NRF5_RESET_EVENT(event)                                                 \\   event = 0;                                                                   \\   (void)event #else #define NRF5_RESET_EVENT(event) event = 0 #endif   void lpComp_reset () {   s_lpComp();   detection = false;   NRF_LPCOMP-&gt;EVENTS_UP = 0;   r_lpComp(); }  \/\/****************************** very experimental *******************************   bool sendSignalStrength(const int16_t level, const bool ack) {   return _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_SET, V_VAR1,                           ack).set(level)); } int16_t calculationRxQuality() {   int16_t nRFRSSI_temp = transportGetReceivingRSSI();   int16_t nRFRSSI = map(nRFRSSI_temp, -85, -40, 0, 100);   if (nRFRSSI &lt; 0) {     nRFRSSI = 0;   }   if (nRFRSSI &gt; 100) {     nRFRSSI = 100;   }   return nRFRSSI; }  \/\/****************************** very experimental *******************************   extern \"C\" {   void LPCOMP_IRQHandler(void) {     detection = true;     NRF5_RESET_EVENT(NRF_LPCOMP-&gt;EVENTS_UP);     NRF_LPCOMP-&gt;EVENTS_UP = 0;     MY_HW_RTC-&gt;CC[0] = (MY_HW_RTC-&gt;COUNTER + 2);   } } <\/code><\/pre>\n<p>  MyBoardNRF5.h  <\/p>\n<pre><code class=\"cpp\">#ifndef _MYBOARDNRF5_H_ #define _MYBOARDNRF5_H_  #ifdef __cplusplus extern \"C\" { #endif \/\/ __cplusplus   #define PINS_COUNT (32u) #define NUM_DIGITAL_PINS (32u) #define NUM_ANALOG_INPUTS (8u) #define NUM_ANALOG_OUTPUTS (8u)  #define PIN_LED1 (27) #define PIN_LED2 (25) #define PIN_LED3 (26) #define RED_LED (PIN_LED1) #define GREEN_LED (PIN_LED2) #define BLUE_LED (PIN_LED3)  #define PIN_BUTTON (14) #define W_L_SENS (8)  #define POWER_PIN (7)  #define PIN_SERIAL_RX (12) #define PIN_SERIAL_TX (11)   #ifdef __cplusplus } #endif  #endif <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  nRF52832 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f (DC-DC Mode), \u0412\u044b\u0432\u043e\u0434 \u041c\u041a \u0438\u0437 \u0441\u043d\u0430 \u043f\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0443 \u043e\u0442 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b SN74LVC1G00 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440 LPCOMP. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0442\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043e\u0431\u043d\u0443\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0442.\u043f. \u041a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0430 \u043d\u0430 \u0442\u0443 \u0436\u0435 \u043d\u043e\u0436\u043a\u0443 \u041c\u041a \u0447\u0442\u043e \u0438 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438. \u041e\u0431\u0435 \u043b\u0438\u043d\u0438\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u0434\u0438\u043e\u0434\u0430\u043c\u0438 \u0428\u043e\u0442\u043a\u0438. \u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 SN74LVC1G00 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043d\u043e\u0436\u043a\u0438 \u041c\u041a.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0447\u0442\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0430 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438 \u0432\u043e\u0434\u044b, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0438\u0434\u0435\u043e \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/5jZt3NWf9GA?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/div>\n<\/div>\n<p>  GitHub \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 <a href=\"https:\/\/github.com\/smartboxchannel\/EFEKTA_WATER_LEAK_SENSOR\">github.com\/smartboxchannel\/EFEKTA_WATER_LEAK_SENSOR<\/a><br \/>  (\u0433\u0435\u0440\u0431\u0435\u0440 \u0444\u0430\u0439\u043b\u044b, \u0441\u043e\u0444\u0442, \u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u043e\u0440\u043f\u0443\u0441\u0430, \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432)<\/p>\n<p>  \u041c\u0435\u0441\u0442\u043e \u0433\u0434\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0432\u0441\u0435\u043c \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 MYSENSORS (\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0442, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438 nRF5 \u0432 \u0441\u0440\u0435\u0434\u0435 Arduino IDE, \u0441\u043e\u0432\u0435\u0442\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c mysensors, \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 <a href=\"https:\/\/tgclick.com\/mysensors_rus\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u0447\u0430\u0442 @mysensors_rus<\/a><\/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\/460177\/\"> https:\/\/habr.com\/ru\/post\/460177\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0432\u0441\u0435\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00abDIY \u0438\u043b\u0438 \u0421\u0434\u0435\u043b\u0430\u0439 \u0441\u0430\u043c\u00bb \u043d\u0430 Habr! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0435 \u043f\u0440\u043e\u0442\u0435\u0447\u043a\u0438 \u0432\u043e\u0434\u044b \u043d\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043d\u043e\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0438. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 nRF52832. \u0415\u0441\u0442\u044c \u0442\u0440\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441 nRF52832, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c YJ-17103 \u043e\u0442 HOLYIOT.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cu\/jp\/np\/cujpnppmqhppnxx4ytplarqgfgs.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-292101","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292101","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=292101"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292101\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}