{"id":406193,"date":"2024-06-29T18:47:00","date_gmt":"2024-06-29T18:47:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=406193"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=406193","title":{"rendered":"<span>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c DIY-\u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442 \u0441 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c \u0434\u043e\u043c \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/569\/eea\/6e7\/569eea6e78d4253d0cc1794d86c1e425.jpg\" width=\"1000\" height=\"625\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/569\/eea\/6e7\/569eea6e78d4253d0cc1794d86c1e425.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u0430 \u0431\u0435\u043a\u0435\u043d\u0434 \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c. \u041a \u0441\u0442\u0430\u0440\u0442\u0443 \u043a\u0443\u0440\u0441\u0430 \u043e <a href=\"https:\/\/skillfactory.ru\/python-fullstack-web-developer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_FPW&amp;utm_term=regular&amp;utm_content=260721\">Fullstack-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/a> \u043d\u0430 Python \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0441\u0442\u0430\u0442\u044c\u0438, \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438, \u0433\u0434\u0435 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u043d\u0430\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0432 \u043d\u0435\u0442, \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432 \u043d\u043e\u0432\u043e\u043c \u0434\u043e\u043c\u0435 \u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442, \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u043a\u0435\u043d\u0434 \u043d\u0430 Flask.<\/p>\n<hr\/>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043e\u0438\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u00ab\u0443\u043c\u043d\u044b\u0439\u00bb \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442. \u0418\u00a0\u043c\u043d\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u043e\u0441\u044c: \u043d\u0435\u0443\u0436\u0435\u043b\u0438 \u044f\u00a0\u043d\u0435\u00a0\u0441\u043c\u043e\u0433\u0443 \u0441\u0430\u043c \u0441\u043e\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435? \u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u043c\u043d\u044e \u0441\u0435\u0431\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u00a0\u2014 \u044f\u00a0\u0431\u044b\u043b \u043e\u0434\u0435\u0440\u0436\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043c\u0435\u043d\u044f \u0432\u043e\u0441\u0445\u0438\u0449\u0430\u043b\u0438 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412\u043e\u0441\u0442\u043e\u0440\u0433 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0438 \u043c\u0438\u043d\u0438-\u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u044b, \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u0432\u044f\u043d\u043e\u0441\u0442\u044b\u0445, \u043d\u0430\u043b\u0430\u0434\u043e\u043d\u043d\u0438\u043a\u0438 Palm Pilot \u0438\u00a0\u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0442\u043e\u0440\u044b Nokia \u043a\u043e\u043d\u0446\u0430 \u044d\u0442\u043e\u0433\u043e\u00a0\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f, \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043d\u0430\u00a0\u0440\u0443\u0431\u0435\u0436\u0435 \u0434\u0432\u0443\u0445\u0442\u044b\u0441\u044f\u0447\u043d\u044b\u0445. \u041a\u0430\u043a\u00a0\u0436\u0435 \u044f\u00a0\u043c\u0435\u0447\u0442\u0430\u043b \u043e\u0431 \u044d\u0442\u043e\u043c! \u0418\u00a0\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u0438\u00a0\u2014 \u044d\u0442\u043e \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u043b\u044c\u043d\u044b\u0445 \u043c\u0438\u0440\u0430 \u0441\u0435\u0433\u043e, \u0411\u0440\u044e\u0441\u0430 \u0423\u044d\u0439\u043d\u0430 \u0438\u043b\u0438 \u0422\u043e\u043d\u0438 \u0421\u0442\u0430\u0440\u043a\u0430. \u041f\u043e\u043a\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043d\u0435\u00a0\u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0447\u0443\u0434\u043e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/ad0\/a9c\/8b8\/ad0a9c8b857a296c40252d69b5f26b1d.jpeg\" width=\"700\" height=\"933\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad0\/a9c\/8b8\/ad0a9c8b857a296c40252d69b5f26b1d.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a\u00a0\u043a\u043e\u0434\u0443, \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435, \u044f\u00a0\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u0438\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442\u00a0\u2014 \u0443\u00a0\u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0431\u044b\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c Pi\u00a03B, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443: \u043a\u0430\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043a\u0430\u043a \u043c\u0435\u0434\u0438\u0430\u0446\u0435\u043d\u0442\u0440, \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430 kali linux \u0438\u00a0\u0442.\u00a0\u0434.\u00a0\u041d\u043e\u00a0\u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u043c\u0438: \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u00a0\u0432\u0441\u0435\u043c\u0438 \u044d\u0442\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u043d\u043e\u00a0\u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0431\u043b\u0435\u0441\u043a\u0430. \u041e\u0442\u00a0\u043c\u0435\u0434\u0438\u0430\u0446\u0435\u043d\u0442\u0440\u0430 \u043d\u0430\u00a0Raspberry Pi\u00a03 \u0440\u0443\u043a\u0438 \u0447\u0435\u0448\u0443\u0442\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043a\u0440\u0443\u0447\u0435!<\/p>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b Pi\u00a0\u044f\u00a0\u043e\u0449\u0443\u0442\u0438\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043c\u043e\u0449\u044c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 Raspberry Pi\u00a0\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432\u00a0\u0435\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430\u0445 GPIO (<strong>G<\/strong>eneral <strong>P<\/strong>urpose <strong>I<\/strong>nput\/<strong>O<\/strong>utput). \u042f\u00a0\u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0YouTube, \u0440\u043e\u043b\u0438\u043a\u0438 \u043a\u0430\u043d\u0430\u043b\u0430 <a href=\"https:\/\/www.youtube.com\/user\/explainingcomputers\">Explaining Computers<\/a> \u043e\u0442\u00a0\u043c\u043e\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u041a\u0440\u0438\u0441\u0442\u043e\u0444\u0435\u0440\u0430 \u0411\u0430\u0440\u043d\u0430\u0442\u0442\u0430, \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d. \u0412\u00a0\u043d\u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u00a0\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438\u00a0\u043f\u0440\u043e\u0431\u0430\u0445 \u0441\u00a0GPIO, \u043d\u043e\u00a0\u0432\u00a0\u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043e\u0441\u0432\u043e\u0438\u0442\u044c \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0445\u0430\u043a\u0435\u0440\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 \u043f\u043e\u00a0\u0440\u043e\u043b\u0438\u043a\u0430\u043c YouTube \u0443\u00a0\u043c\u0435\u043d\u044f \u043d\u0435\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0451 \u0438\u00a0\u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u0441\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0443. \u0414\u043e\u00a0\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0435\u043b\u043e \u043d\u0435\u00a0\u0434\u043e\u0445\u043e\u0434\u0438\u043b\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ed2\/b10\/cc5\/ed2b10cc5a2c81a72f692d2e116f65a5.png\" alt=\"\u0412\u044b\u0432\u043e\u0434\u044b GPIO \u043d\u0430\u00a0Raspberry Pi\u00a0SBC\" title=\"\u0412\u044b\u0432\u043e\u0434\u044b GPIO \u043d\u0430\u00a0Raspberry Pi\u00a0SBC\" width=\"700\" height=\"401\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ed2\/b10\/cc5\/ed2b10cc5a2c81a72f692d2e116f65a5.png\"\/><figcaption>\u0412\u044b\u0432\u043e\u0434\u044b GPIO \u043d\u0430\u00a0Raspberry Pi\u00a0SBC<\/figcaption><\/figure>\n<p>\u0427\u0442\u043e \u043c\u0435\u0448\u0430\u043b\u043e \u043d\u0430\u0447\u0430\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u041e\u043f\u0430\u0441\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u0437\u00a0\u0441\u0442\u0440\u043e\u044f \u043c\u043e\u0439 Pi.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0431\u0435\u043b\u0438-\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438, \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043b\u0430\u0442\u044b \u0438\u00a0\u0442. \u0434, \u043e\u043d\u0438 \u0434\u043e\u0440\u043e\u0433\u0438\u0435, \u0438\u0445\u00a0\u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c\u00a0\u0431\u044b \u0434\u043e\u043a\u0443\u043f\u0430\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0440\u043e\u0436\u0434\u0451\u043d\u043d\u0430\u044f \u043b\u0435\u043d\u044c.<\/p>\n<\/li>\n<\/ol>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f \u0441\u00a0\u043f\u0443\u043d\u043a\u0442\u0430\u043c\u0438.<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0432 \u043a\u00a0\u0440\u0430\u0431\u043e\u0442\u0435, \u0432\u044b\u00a0\u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0439\u043c\u0451\u0442\u0435, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432\u044b\u0432\u043e\u0434\u044b, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u00a0\u0446\u0435\u043b\u043e\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u00a0\u2014 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u043e\u043d\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0440\u0430\u0442\u044b \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u0441\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0435 \u0443\u00a0\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u043d\u043e\u00a0\u043d\u0430\u0439\u0442\u0438 \u0438\u0445\u00a0\u0438\u00a0\u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f\u2026 \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0442\u0435\u0440\u044f\u0432 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435, \u0440\u0430\u0434\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u044f\u00a0\u043f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u043b \u043a\u0430\u0431\u0435\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0442\u0430\u0449\u0438\u043b \u0438\u0437\u00a0\u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442 \u0438\u00a0\u043d\u0430\u0443\u0433\u0430\u0434 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b \u043a\u00a0\u0432\u044b\u0432\u043e\u0434\u0430\u043c GPIO\u00a0\u2014 \u0432\u0441\u0451 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e\u00a0\u044f\u00a0\u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043f\u0443\u043d\u043a\u0442 #1.<\/p>\n<p>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u0445\u0430\u043a\u0435\u0440, \u044f\u00a0\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\u00a0\u2014 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a\u0438, \u043c\u0435\u043b\u043a\u0438\u0435 \u043e\u0442\u0432\u0451\u0440\u0442\u043a\u0438. \u041c\u043e\u043d\u0442\u0430\u0436\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0434\u043b\u044f \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432 \u0442\u0430\u043a \u0438\u00a0\u043d\u0435\u00a0\u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c. \u0418\u00a0\u043b\u0435\u043d\u044c\u00a0\u2014 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e. \u0412\u0441\u0435 \u043c\u044b\u00a0\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441\u00a0\u043d\u0435\u0439 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u041d\u0443\u0436\u043d\u043e \u0441\u0435\u0431\u044f \u043f\u0435\u0440\u0435\u0441\u0438\u043b\u0438\u0442\u044c, \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0438\u0434\u0435\u044e \u0438\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043b\u0430\u043d.<\/p>\n<h3>\u0414\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/h3>\n<p>\u0413\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u044f\u00a0\u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u0432\u00a0\u043d\u043e\u0432\u044b\u0439\u00a0\u0434\u043e\u043c. \u042d\u0442\u043e\u0439 \u0437\u0438\u043c\u043e\u0439 \u0432\u043e\u00a0\u0432\u0441\u0435\u0439 \u043a\u0440\u0430\u0441\u0435 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u0437 \u0438\u00a0\u0432\u0432\u0435\u0440\u0445, \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u00a0\u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u043e\u043c. \u041e\u043d\u0438 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0442\u0430\u043a, \u0447\u0442\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0432\u00a0\u0441\u0443\u0442\u043a\u0438, \u0430\u00a0\u0432\u00a0\u0431\u0443\u0434\u043d\u0438 \u0438\u00a0\u0432\u00a0\u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u0435\u0434\u0451\u0442 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0440\u0435\u0432 \u0434\u043e\u00a020\u00b0 \u0421\u00a0\u0432\u00a06 \u0443\u0442\u0440\u0430, \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0434\u043e\u00a05\u00b0 \u0421\u00a0\u0432\u00a08, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043e\u043c\u0430 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0438\u00a0\u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0434\u043e\u00a020\u00b0 \u0421\u00a0\u0432\u00a06 \u0432\u0435\u0447\u0435\u0440\u0430, \u043f\u0435\u0440\u0435\u0434 \u0441\u043d\u043e\u043c \u0441\u043d\u0438\u0437\u0438\u0432 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0434\u043e\u00a05\u00b0 \u0421.<\/p>\n<p>\u0412\u00a0\u0441\u0443\u0431\u0431\u043e\u0442\u0443 \u0438\u00a0\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u0436\u0438\u043c. \u042d\u0442\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u0423\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0438\u0441\u0442\u0435\u043c, \u0441\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f\u00a0\u0438\u043c\u0435\u043b \u0434\u0435\u043b\u043e, \u0431\u044b\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u00a0\u0442\u0430\u0439\u043c\u0435\u0440; \u043d\u0430\u00a0\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435, \u043d\u043e\u00a0\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u00a0\u043d\u0430\u0441\u0442\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043e\u0434\u0438\u043d \u0447\u0430\u0441 \u0443\u0441\u0438\u043b\u0438\u0442\u044c \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0433\u0440\u0435\u0432\u0430, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c,\u00a0\u2014 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430\u00a0\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439 \u043d\u0430\u00a0\u044d\u043a\u0440\u0430\u043d\u0435 \u0434\u043e\u00a0\u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u043e\u0440\u043e\u0433\u0430 \u0438\u00a0\u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0451\u00a0\u043d\u0430\u00a0\u044d\u0442\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u043e\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0434\u0451\u0442 \u0432\u0440\u0435\u043c\u044f, \u0443\u0431\u0430\u0432\u0438\u0442\u044c\u00a0\u0435\u0451. \u042d\u0442\u0438 \u0440\u0430\u0437\u0434\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u0430\u00a0\u0443\u0437\u043d\u0430\u0432, \u0447\u0442\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442, \u044d\u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e \u043e\u0431\u043e\u0433\u0440\u0435\u0442\u044c \u0434\u043e\u043c \u0438\u00a0\u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u0431\u043e\u0440 \u0441\u0430\u043c\u043e\u043c\u0443.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 GPIO RPi<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b79\/40f\/ce1\/b7940fce1ffa3e4cf88b4bf12967e0e0.jpeg\" alt=\"\u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0440\u0435\u043b\u0435\u00a0\u2014 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443\u00a0\u2014 \u0432\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043e\u043c\u043a\u043d\u0443\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 (N\/O)\" title=\"\u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0440\u0435\u043b\u0435\u00a0\u2014 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443\u00a0\u2014 \u0432\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043e\u043c\u043a\u043d\u0443\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 (N\/O)\" width=\"2400\" height=\"1800\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b79\/40f\/ce1\/b7940fce1ffa3e4cf88b4bf12967e0e0.jpeg\" data-blurred=\"true\"\/><figcaption>\u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0440\u0435\u043b\u0435\u00a0\u2014 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443\u00a0\u2014 \u0432\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043e\u043c\u043a\u043d\u0443\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 (N\/O)<\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0436\u0435 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0449\u0435\u043b\u0447\u043e\u043a, \u0430\u00a0\u0437\u0432\u0443\u043a \u0440\u0435\u043b\u0435 \u043d\u0438\u00a0\u0441\u00a0\u0447\u0435\u043c \u043d\u0435\u00a0\u0441\u043f\u0443\u0442\u0430\u0435\u0448\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f\u00a0\u043f\u043e\u043b\u0430\u0433\u0430\u043b, \u0447\u0442\u043e \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0440\u0435\u043b\u0435. \u0411\u043e\u0439\u043b\u0435\u0440 \u043d\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u0442\u0441\u044f\u00a0\u2014 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f; \u0449\u0435\u043b\u0447\u043e\u043a\u00a0\u2014 \u0438\u00a0\u0431\u043e\u0439\u043b\u0435\u0440 \u043e\u0441\u0442\u044b\u0432\u0430\u0435\u0442. \u0412\u00a0\u0441\u0435\u0442\u0438 \u044f\u00a0\u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0435 \u0440\u0435\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0Pi. \u042f\u00a0\u0431\u044b\u043b \u0432\u0437\u0432\u043e\u043b\u043d\u043e\u0432\u0430\u043d \u0438\u00a0\u0434\u0430\u0436\u0435 \u0441\u043b\u0435\u0433\u043a\u0430 \u043e\u043f\u0430\u0441\u0430\u043b\u0441\u044f \u0437\u0430\u00a0\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 GPIO.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u044f\u00a0\u0432\u044b\u0431\u0440\u0430\u043b \u0440\u0435\u043b\u0435 <a href=\"https:\/\/www.adafruit.com\/product\/3191%23technical-details\"><em>Adafruit Power Relay Featherwing<\/em><\/a><em>.<\/em> \u0420\u0435\u043b\u0435 \u043d\u0430\u00a05 \u0430\u043c\u043f\u0435\u0440 \u0438\u00a0250 \u0432\u043e\u043b\u044c\u0442 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441\u00a0\u0431\u0440\u0438\u0442\u0430\u043d\u0441\u043a\u0438\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c \u0438\u00a0\u043d\u0430\u0434\u0451\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u00a0\u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f Pi\u00a03\u0412.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/eb2\/8a4\/a95\/eb28a4a955149bddc2774568e47e0804.png\" alt=\"3\u0412 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0432\u044b\u0432\u043e\u0434\u0443 1, GND \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 9, \u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 13 (GPIO 27)\" title=\"3\u0412 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0432\u044b\u0432\u043e\u0434\u0443 1, GND \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 9, \u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 13 (GPIO 27)\" width=\"699\" height=\"381\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/eb2\/8a4\/a95\/eb28a4a955149bddc2774568e47e0804.png\"\/><figcaption>3\u0412 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0432\u044b\u0432\u043e\u0434\u0443 1, GND \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 9, \u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 13 (GPIO 27)<\/figcaption><\/figure>\n<p>\u0420\u0435\u043b\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u043e, \u044f\u00a0\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0437\u043d\u0430\u043b \u043d\u0430\u00a0\u043a\u0430\u043d\u0430\u043b\u0435 Explaining Computers.<\/p>\n<pre><code class=\"python\">import RPi.GPIO as GPIO import time  GPIO.setmode(GPIO.BOARD)  GPIO.setup(13, GPIO.OUT)  try:     while True:         GPIO.output(13, True)         time.sleep(1)         GPIO.output(13, False)         time.sleep(1)  finally:     GPIO.cleanup()<\/code><\/pre>\n<p><em>\u041f\u0435\u0440\u0432\u043e\u0435 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435<\/em><\/p>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 RPi.GPIO \u044f\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c Board Numbering, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u0432\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 GPIO 27, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0432\u00a0\u043a\u043e\u0434\u0435 \u0447\u0438\u0441\u043b\u043e\u043c\u00a013.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0446\u0438\u043a\u043b while, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u00a0\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0432\u00a0\u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u00a0\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0440\u0435\u043b\u0435. \u0411\u043b\u043e\u043a try\/finally \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u0438\u0437\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0441\u0440\u0430\u0437\u0443 (\u0441\u043f\u0430\u0441\u0438\u0431\u043e, \u041a\u0440\u0438\u0441!). \u041d\u0435\u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u043c\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0449\u0435\u043b\u0447\u043a\u0438 \u0440\u0435\u043b\u0435 \u0438\u00a0\u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c!<\/p>\n<p>\u041e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u043c\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u0438\u00a0\u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e: \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c. \u042f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u00a0\u0432\u044b\u0431\u0440\u0430\u043b BMP280 \u043e\u0442\u00a0Bosch\u00a0\u2014 \u0441\u0430\u043c\u044b\u0439 \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u00a0\u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u043e\u0442\u0437\u044b\u0432\u0430\u043c\u0438:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/1a3\/4b9\/270\/1a34b9270010cfbc4771f3c2d64b7bd2.jpg\" width=\"440\" height=\"354\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1a3\/4b9\/270\/1a34b9270010cfbc4771f3c2d64b7bd2.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0449\u0451 \u043f\u0430\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u0432\u00a0\u0441\u0435\u0442\u0438, \u0438\u00a0\u044f\u00a0\u043d\u0430\u0448\u0451\u043b \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e <a href=\"http:\/\/www.pibits.net\/code\/raspberry-pi-and-bmp280-sensor-example.php\">\u0441\u0445\u0435\u043c\u0443<\/a> \u0438\u00a0\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043e\u00a0\u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u043a\u00a0Pi:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/15a\/84b\/a83\/15a84ba834a00ab873ca0239b1e63733.png\" width=\"696\" height=\"710\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15a\/84b\/a83\/15a84ba834a00ab873ca0239b1e63733.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u00a0\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 3 \u0438\u00a05 (GPIO 2(SDA) \u0438\u00a03(SCL)) <a href=\"https:\/\/en.wikipedia.org\/wiki\/IC\">\u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b <\/a>\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u0448\u0438\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0445\u0435\u043c\u0430\u043c\u0438.<\/p>\n<p>\u042f\u00a0\u0432\u044b\u0431\u0440\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432\u044b\u0448\u0435, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u0431\u0435\u043b\u044c 3\u0412 \u0440\u0435\u043b\u0435 \u043d\u0430\u00a0\u043a\u043e\u043d\u0442\u0430\u043a\u0442 Pi\u00a03\u0412 \u0432\u00a0\u043f\u043e\u0437\u0438\u0446\u0438\u0438\u00a017. \u0412\u00a0\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0435\u00a0\u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u0448\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0435 \u0440\u0435\u043b\u0435, \u044f\u00a0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0435\u0433\u043e \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c03\/7eb\/f36\/c037ebf368afaf3c222b0659b96937cd.jpeg\" alt=\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0441\u0432\u0438\u0441\u0430\u044e\u0449\u0438\u0439 \u0441\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 (\u043f\u043e\u0437\u0436\u0435 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0438\u0445)\" title=\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0441\u0432\u0438\u0441\u0430\u044e\u0449\u0438\u0439 \u0441\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 (\u043f\u043e\u0437\u0436\u0435 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0438\u0445)\" width=\"2400\" height=\"3200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c03\/7eb\/f36\/c037ebf368afaf3c222b0659b96937cd.jpeg\" data-blurred=\"true\"\/><figcaption>\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0441\u0432\u0438\u0441\u0430\u044e\u0449\u0438\u0439 \u0441\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 (\u043f\u043e\u0437\u0436\u0435 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0438\u0445)<\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043b\u0435 \u0438\u00a0\u043c\u043e\u0434\u0443\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0438\u00a0\u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u00a0\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0438\u0439, \u0442\u043e\u00a0\u0441\u043e\u00a0\u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f: \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0435\u043b\u0430 \u043e\u0442\u00a0\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a I2C-\u0432\u044b\u0432\u043e\u0434\u043e\u0432\u00a0Pi. \u0421\u00a0\u043d\u0438\u043c\u0438 \u0442\u043e\u00a0\u0438\u00a0\u0434\u0435\u043b\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0435\u00a0\u043d\u0430\u00a0Raspbian. \u042f\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441\u00a0Ubuntu 20.04, \u043d\u043e\u00a0\u0432\u0441\u0451 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e\u00a0\u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0438\u00a0\u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0Stack Overflow.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0430 \u0438\u0437-\u0437\u0430 \u043c\u043e\u0435\u0439 \u0434\u0430\u0432\u043d\u0435\u0439 \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u044c\u043d\u0438\u0446\u044b\u00a0\u2014 \u043e\u0448\u0438\u0431\u043a\u0438 <code>PermissionError<\/code>, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435\u00a0\u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 root. \u041d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e \u043d\u0430\u00a0\u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>\u0412\u00a0\u0438\u0442\u043e\u0433\u0435 \u044f\u00a0\u043d\u0430\u0448\u0451\u043b \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 <code>pigpiowhich<\/code>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0434\u0435\u043c\u043e\u043d <code>pigpiod<\/code>. \u041e\u043d\u00a0\u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0430 RPi.GPIO, \u0432\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043e\u043d\u00a0\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u00a0Ubuntu \u0438\u00a0Raspbian \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">sudo apt install pigpiod<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c Python:<\/p>\n<pre><code class=\"bash\">pip3 install pigpio<\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u0447\u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c smbus2 \u0438\u00a0<code>pimoroni-bme280<\/code>:<\/p>\n<pre><code class=\"bash\">pip3 install smbus2 pimoroni-bme280<\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u0435\u0439<\/h3>\n<p>\u042f\u00a0\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c i2c-tools, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043b\u043e\u0445\u043e\u0439 \u043f\u0430\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">sudo apt install i2c-tools<\/code><\/pre>\n<p>\u041f\u0430\u043a\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0430\u043d\u044f\u0442\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 I2C. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b, \u0432\u044b\u00a0\u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u0432\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0af\/e37\/8b9\/0afe378b97f792e8cc15a4920750ca5d.png\" width=\"478\" height=\"222\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0af\/e37\/8b9\/0afe378b97f792e8cc15a4920750ca5d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u043d\u043e\u00a0\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u00a0\u043d\u0435\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u0430\u0439\u043a\u0435. \u041f\u0440\u0438\u043f\u0430\u0438\u0432\u0430\u044f \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u044b\u0435 GPIO-\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043a\u00a0Pi\u00a0Zero W, \u044f\u00a0\u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u043f\u043b\u044f \u043f\u0440\u0438\u043f\u043e\u044f \u043f\u0440\u043e\u043d\u0438\u043a\u0430\u043b\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u00a0\u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u0435. \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438 i2cdetect \u043d\u0430\u0448\u0451\u043b \u043c\u043e\u0434\u0443\u043b\u044c:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/91c\/81b\/46a\/91c81b46a42a8f35759f6392baa3cf4b.png\" width=\"478\" height=\"225\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/91c\/81b\/46a\/91c81b46a42a8f35759f6392baa3cf4b.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u00a0\u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u043e #1 \u0434\u043e\u0441\u0442\u0438\u0433\u043b\u043e \u043f\u0438\u043a\u0430. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u044f\u00a0\u043e\u043f\u0430\u0441\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u0440\u0438\u043f\u0430\u044f\u044e \u043e\u0434\u0438\u043d \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u043a\u00a0\u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0438\u00a0\u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435. \u041d\u043e\u00a0\u0432\u0441\u0451 \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c, \u0441\u0432\u043e\u0439 Pi\u00a0\u044f\u00a0\u043d\u0435\u00a0\u043f\u043e\u0432\u0440\u0435\u0434\u0438\u043b, \u0445\u043e\u0442\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u044f\u0442\u0435\u043d \u043f\u0440\u0438\u043f\u043e\u044f \u0432\u00a0\u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043b\u0430\u0442\u044b.<\/p>\n<h2>\u041a\u043e\u0434<\/h2>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430, \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <em>\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439<\/em>, \u043d\u0435\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434. \u0414\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u044f\u00a0\u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043b\u0435\u0433\u043a\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u00a0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Flask.<\/p>\n<pre><code class=\"python\">import json import time from datetime import datetime from threading import Thread import pigpio import requests from requests.exceptions import ConnectionError   class Heating:     def __init__(self):         self.pi = pigpio.pi()         self.advance = False         self.advance_start_time = None         self.on = False         self.tstat = False         self.temperature = self.check_temperature()         self.humidity = self.check_humidity()         self.pressure = self.check_pressure()         self.desired_temperature = 20         self.timer_program = {             'on_1': '07:30',             'off_1': '09:30',             'on_2': '17:30',             'off_2': '22:00',         }        def thermostatic_control(self):         self.tstat = True         while self.tstat:             time_check = datetime.strptime(datetime.utcnow().time().strftime('%H:%M'), '%H:%M').time()             on_1 = datetime.strptime(self.timer_program['on_1'], '%H:%M').time()             off_1 = datetime.strptime(self.timer_program['off_1'], '%H:%M').time()             on_2 = datetime.strptime(self.timer_program['on_2'], '%H:%M').time()             off_2 = datetime.strptime(self.timer_program['off_2'], '%H:%M').time()             if (on_1 &lt; time_check &lt; off_1) or (on_2 &lt; time_check &lt; off_2):                 if self.check_temperature() &lt; int(self.desired_temperature) and not self.check_state():                     self.switch_on_relay()                 elif self.check_temperature() > int(self.desired_temperature) + 0.5 and self.check_state():                     self.switch_off_relay()                 time.sleep(5)             else:                 if self.check_state():                     self.switch_off_relay()                 time.sleep(900)         return      def thermostat_thread(self):         self.on = True         t1 = Thread(target=self.thermostatic_control)         t1.daemon = True         t1.start()      def stop_thread(self):         self.on = False         self.tstat = False         self.switch_off_relay()      def sensor_api(self):         try:             req = requests.get('http:\/\/192.168.1.88\/')             data = json.loads(req.text)             return data         except ConnectionError:             return {                 'temperature': self.temperature,                 'humidity': self.humidity,                 'pressure': self.pressure,             }      def check_temperature(self):         self.temperature = self.sensor_api()['temperature']         return self.temperature      def check_pressure(self):         self.pressure = self.sensor_api()['pressure']         return self.pressure      def check_humidity(self):         self.humidity = self.sensor_api()['humidity']         return self.humidity      def switch_on_relay(self):         self.pi.write(27, 1)      def switch_off_relay(self):         self.pi.write(27, 0)      def check_state(self):         return self.pi.read(27)      def start_time(self):         if not self.advance_start_time:             self.advance_start_time = datetime.now().strftime('%b %d, %Y %H:%M:%S')         return self.advance_start_time   if __name__ == '__main__':     hs = Heating()     while True:         print(f'''________________________________________________________________ {datetime.utcnow().time()} Temp: {hs.check_temperature()} Pressure: {hs.check_pressure()} Humidity: {hs.check_humidity()} ________________________________________________________________         ''')         time.sleep(2)<\/code><\/pre>\n<p>\u042f\u00a0\u0432\u043a\u043b\u044e\u0447\u0438\u043b \u0432\u00a0\u043a\u043e\u0434 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 Flask \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438: \u043c\u0435\u0442\u043e\u0434 <code>start_time()<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u0443\u044e \u0432\u00a0html-\u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u0439\u043c\u0435\u0440 JavaScript \u043e\u0442\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u0432\u0440\u0435\u043c\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442\u00a0\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u00a0\u043e\u0442\u00a0\u0442\u043e\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f\u00a0\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<h3>API \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/h3>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0432\u00a0\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043d\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f. \u042f\u00a0\u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0430\u043a \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e \u0443\u0434\u043e\u0431\u043d\u044b\u043c, \u043a\u043e\u0433\u0434\u0430 Pi\u00a03B \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0440\u0435\u043b\u0435, \u0430\u00a0\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439 Pi\u00a0Zero W\u00a0\u0447\u0435\u0440\u0435\u0437 API \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u00a0\u043c\u043e\u0434\u0443\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430. \u041a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e API \u0434\u043b\u044f Flask \u0441\u00a0\u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 BME280 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">#!\/usr\/bin\/env\/python3 import time  import pigpio from smbus2 import SMBus from bme280 import BME280  from flask import Flask, jsonify, make_response app = Flask(__name__)  pi = pigpio.pi() bus = SMBus(1) bme = BME280(i2c_dev=bus)  # throwaway readings: for i in range(3):     bme.get_temperature()     bme.get_humidity()     bme.get_pressure()   @app.route('\/') def sensor_api():     response = make_response(jsonify({'temperature': bme.get_temperature(),                                       'humidity': bme.get_humidity(),                                       'pressure': bme.get_pressure()}))     response.status_code = 200     return response<\/code><\/pre>\n<p><em>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u0441\u00a0\u0442\u0435\u043a\u0443\u0449\u0438\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f\u043c\u0438 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430 \u0432\u00a0\u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON.<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bf7\/462\/6d6\/bf74626d630c7d693ad078755a4d2030.jpeg\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0430\u0439\u043a\u0438\u00a0\u2014 \u043d\u043e\u0432\u0430\u044f \u0441\u0430\u0442\u0435\u043b\u043b\u0438\u0442\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 API \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0430\u0439\u043a\u0438\u00a0\u2014 \u043d\u043e\u0432\u0430\u044f \u0441\u0430\u0442\u0435\u043b\u043b\u0438\u0442\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 API \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" width=\"699\" height=\"933\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bf7\/462\/6d6\/bf74626d630c7d693ad078755a4d2030.jpeg\" data-blurred=\"true\"\/><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0430\u0439\u043a\u0438\u00a0\u2014 \u043d\u043e\u0432\u0430\u044f \u0441\u0430\u0442\u0435\u043b\u043b\u0438\u0442\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 API \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/figcaption><\/figure>\n<h3>\u0420\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0435\u0440\u0438\u043d\u0433 \u043c\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h3>\n<p>\u0427\u0442\u043e \u043c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u00a0<em>\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0435<\/em>? \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u0443\u044e \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0438\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e. \u041d\u043e\u00a0\u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f <em>\u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u0442\u0432\u0430<\/em>, \u0432\u0441\u0451 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u0435\u0435! \u041a\u043e\u0433\u0434\u0430 \u044f\u00a0\u0441\u043d\u044f\u043b \u043a\u0440\u044b\u0448\u043a\u0443 \u0441\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0447\u0442\u043e \u0432\u0438\u0441\u0435\u043b\u0430 \u0437\u0430\u00a0\u0441\u0443\u0448\u0438\u043b\u044c\u043d\u044b\u043c \u0448\u043a\u0430\u0444\u043e\u043c, \u0442\u043e\u00a0\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0445 \u043a\u00a0\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u043f\u0430\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u0432\u0430 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f: \u0431\u0435\u0441\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432, \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u0435 \u0432\u00a0\u0441\u0442\u0435\u043d\u0435, \u0438\u00a0\u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u0438\u0434\u0443\u0449\u0438\u0445 \u043a\u00a0\u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443, \u0442\u043e\u00a0\u0435\u0441\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0432\u043e\u0441\u0435\u043c\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432.<\/p>\n<p>\u042f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430\u043b \u0438\u00a0\u043d\u0430\u0448\u0451\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430\u00a0\u043a\u043b\u0430\u043f\u0430\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0438\u00a0\u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430\u00a0\u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u0438\u00a0\u043a\u0430\u043a\u043e\u0439 \u0438\u0437\u00a0\u043d\u0438\u0445 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u00ab\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u00bb, \u0441\u0438\u0433\u043d\u0430\u043b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u043b\u0435 \u0432\u00a0\u0431\u043b\u043e\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>\u0418\u0437\u00a0\u043c\u043e\u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0441\u0451 \u0443\u00a0\u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u043e \u0433\u043b\u0430\u0434\u043a\u043e \u0438\u00a0\u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u043d\u043e\u043a. \u041d\u043e\u00a0\u0434\u0435\u043b\u043e \u0437\u0430\u043d\u044f\u043b\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0\u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e <em>\u0432\u0441\u0435<\/em> \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u043d\u0430\u00a0\u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0447\u0430\u0441\u0442\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u0440\u0438\u0447\u043d\u0435\u0432\u044b\u043c\u0438. \u041f\u044b\u0442\u0430\u044f\u0441\u044c \u043f\u043e\u043d\u044f\u0442\u044c, \u0432\u00a0\u043a\u0430\u043a\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438\u0441\u043a\u0430\u0442\u044c, \u044f\u00a0\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043d\u0430\u00a0YouTube \u043d\u0430\u00a0\u0442\u0435\u043c\u0443 \u00ab\u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432\u00a0\u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438\u00bb.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u044c \u0440\u0435\u043b\u0435 \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435 \u0438\u00a0\u0440\u0430\u0437\u043e\u0440\u0432\u0430\u0442\u044c \u0441\u00a0\u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0435\u043f\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0443\u0448\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0448\u043a\u0430\u0444\u0430, \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434\u0430\u0432\u0430\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043d\u0430\u00a0\u043e\u0431\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u0430. \u042f\u00a0\u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0448\u0438\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0\u0448\u043a\u0430\u0444 \u0440\u043e\u0437\u0435\u0442\u043a\u0443 \u0434\u043b\u044f \u043f\u043e\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043d\u0430\u00a0Pi. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u044f \u0436\u0435\u043d\u0430 \u043d\u0435\u043d\u0430\u0432\u0438\u0434\u0438\u0442. \u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u00a0\u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u043b\u043e, \u0445\u043e\u0442\u044f \u043a\u0430\u0431\u0435\u043b\u044c \u0431\u044b\u043b \u043f\u0440\u043e\u043b\u043e\u0436\u0435\u043d \u0432\u00a0\u0448\u043a\u0430\u0444\u0443. \u042d\u0442\u043e \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/da8\/695\/3a5\/da86953a5bf24ffb463eeab6f23ca5f6.jpeg\" alt=\"\u041f\u0440\u043e\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443. \u0420\u0435\u043b\u0435 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435, Pi\u00a0\u0432\u00a0\u0447\u0451\u0440\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0435.\" title=\"\u041f\u0440\u043e\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443. \u0420\u0435\u043b\u0435 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435, Pi\u00a0\u0432\u00a0\u0447\u0451\u0440\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0435.\" width=\"699\" height=\"933\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/da8\/695\/3a5\/da86953a5bf24ffb463eeab6f23ca5f6.jpeg\" data-blurred=\"true\"\/><figcaption>\u041f\u0440\u043e\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443. \u0420\u0435\u043b\u0435 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435, Pi\u00a0\u0432\u00a0\u0447\u0451\u0440\u043d\u043e\u0439 \u043a\u043e\u0440\u043e\u0431\u043a\u0435.<\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0442\u0443\u0440 \u043e\u0442\u00a0\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u0432 \u043a\u00a0\u043d\u0430\u0441\u043e\u0441\u0443 \u0431\u044b\u043b \u043e\u0434\u0438\u043d, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u00a0\u0442\u0440\u043e\u0433\u0430\u0442\u044c; \u0434\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0435\u043b\u0438 \u043a\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0430\u043c \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0430\u0445\u00a0\u2014 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438\u00a0\u0441\u043d\u0438\u0437\u0443. \u041a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u044f\u00a0\u0437\u0430\u043c\u043a\u043d\u0443\u043b \u043e\u0434\u043d\u043e \u0440\u0435\u043b\u0435 \u0438\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0443\u0440 \u0434\u043b\u044f \u0443\u0434\u043b\u0438\u043d\u0438\u0442\u0435\u043b\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u0438. \u041a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u044f\u00a0\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u044e \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0430\u00a0\u043f\u043e\u043a\u0430 \u043f\u0443\u0441\u0442\u044c \u043f\u043e\u0432\u0438\u0441\u0438\u0442 \u0442\u0430\u043a, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0432\u0441\u0451 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.<\/p>\n<h3>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u043e\u043c<\/h3>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/60fed3118ff4968fafa2a8e7\" data-style=\"\" id=\"60fed3118ff4968fafa2a8e7\" width=\"\"><\/div>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f\u00a0\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043d\u0430\u00a0\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0441\u044b\u043b\u043a\u0443 \u0441\u00a0\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u00a0\u0442\u0430\u0439\u043c\u0435\u0440\u043e\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Flask \u043f\u0440\u043e\u0441\u0442\u043e\u0435. \u042f\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0438\u00a0\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0443\u0442\u0435\u0439 <code>\/<\/code>, <code>\/on<\/code>, <code>\/off<\/code>, <code>\/advance<\/code> \u0438\u00a0<code>\/settings<\/code>,\u00a0\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u043d\u0430 \u043c\u043e\u0451\u043c RPi \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u044f\u00a0\u0440\u0435\u0448\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00a0\u0435\u0451. \u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b\u00a0\u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432.<\/p>\n<pre><code class=\"python\">#!\/usr\/bin\/env python3 import time from threading import Thread  from flask import Flask, redirect, url_for, render_template, request, session, jsonify, make_response  from .heating import Heating  app = Flask(__name__)  hs = Heating()  # Throwaway temp checks: hs.check_temperature() time.sleep(1) hs.check_temperature()   @app.route('\/heating') def home():     if 'verified' in session:         start_time = hs.start_time() if hs.advance else None         return render_template('heating.html', on=hs.on, relay_on=hs.check_state(),                                current_temp=int(hs.check_temperature()), desired_temp=int(hs.desired_temperature),                                advance=hs.advance, time=start_time,                                )     return redirect(url_for('login'))   @app.route('\/', methods=['GET', 'POST']) def login():     if request.method == 'GET':         if 'verified' in session:             return redirect(url_for('menu'))         return render_template('login.html')     else:         name = request.form.get('name')         if name == 'PASSWORD':             session['verified'] = True             return redirect(url_for('menu'))         else:             return render_template('login.html', message='You are not allowed to enter.')   @app.route('\/menu') def menu():     if 'verified' in session:         return render_template('menu.html')     return redirect(url_for('login'))   @app.route('\/on') def on():     if 'verified' in session:         hs.thermostat_thread()         return redirect(url_for('home'))     return redirect(url_for('login'))   @app.route('\/off') def off():     if 'verified' in session:         hs.stop_thread()         hs.advance = False         hs.advance_start_time = None         return redirect(url_for('home'))     return redirect(url_for('login'))   def advance_thread():     interrupt = False     if hs.tstat:         hs.tstat = False         interrupt = True     hs.switch_on_relay()     time.sleep(900)     hs.switch_off_relay()     hs.advance = False     hs.advance_start_time = None     hs.on = False     if interrupt:         hs.thermostat_thread()   @app.route('\/advance') def advance():     if 'verified' in session:         hs.on = True         hs.advance = True         t1 = Thread(target=advance_thread)         t1.daemon = True         t1.start()         return redirect(url_for('home'))     return redirect(url_for('login'))   @app.route('\/settings', methods=['GET', 'POST']) def settings():     if request.method == 'GET':         if 'verified' in session:             return render_template('settings.html', des_temp=hs.desired_temperature, timer_prog=hs.timer_program)         return render_template('login.html')     else:         interrupt = False         if hs.tstat:             hs.tstat = False             interrupt = True         des_temp = request.form.get('myRange')         on_1 = request.form.get('on_1')         off_1 = request.form.get('off_1')         on_2 = request.form.get('on_2')         off_2 = request.form.get('off_2')         new_timer_prog = {             'on_1': on_1,             'off_1': off_1,             'on_2': on_2,             'off_2': off_2         }         hs.desired_temperature = des_temp         hs.timer_program = new_timer_prog         if interrupt:             hs.thermostat_thread()         return redirect(url_for('home'))   @app.route('\/temp', methods=['GET']) def fetch_temp() -> int:     response = make_response(jsonify({\"temp\": int(hs.check_temperature()),                                       \"on\": hs.check_state()}), 200)     return response   @app.route('\/radio') def radio():     return render_template('radio.html')   @app.errorhandler(404) def page_not_found(e):     return redirect(url_for('home'))   if __name__ == '__main__':     app.secret_key = 'SECRET KEY'     app.run(debug=True, host='0.0.0.0', port=5000)<\/code><\/pre>\n<p>\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0434\u0438 \u0441\u0442\u0438\u043b\u044f \u044f\u00a0\u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u00a0\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430\u00a0\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 JavaScript, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043d\u0430\u00a0\u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u00a0\u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0440\u0435\u043b\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0435\u0451\u00a0\u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e16\/ae0\/f56\/e16ae0f56388a558def1635a9b91b0e0.png\" width=\"700\" height=\"1055\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e16\/ae0\/f56\/e16ae0f56388a558def1635a9b91b0e0.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5e3\/cf8\/734\/5e3cf8734190a5edd1fa376ed45fb8e8.png\" width=\"700\" height=\"1136\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5e3\/cf8\/734\/5e3cf8734190a5edd1fa376ed45fb8e8.png\"\/><figcaption><\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u0416\u0435\u043b\u0435\u0437\u043e \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u043f\u043b\u0430\u043d\u043e\u043c<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4bf\/966\/7bd\/4bf9667bdd37b40f3c7464b4b31bc9f5.jpeg\" alt=\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u00a0\u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043c\u043e\u0434\u0443\u043b\u044f: \u043d\u0435\u0442 \u0434\u0432\u0443\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432\" title=\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u00a0\u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043c\u043e\u0434\u0443\u043b\u044f: \u043d\u0435\u0442 \u0434\u0432\u0443\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432\" width=\"2400\" height=\"3200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bf\/966\/7bd\/4bf9667bdd37b40f3c7464b4b31bc9f5.jpeg\" data-blurred=\"true\"\/><figcaption>\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u00a0\u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043c\u043e\u0434\u0443\u043b\u044f: \u043d\u0435\u0442 \u0434\u0432\u0443\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4be\/93b\/af9\/4be93baf90d1604a0fc030b98e0931e6.jpeg\" alt=\"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0431\u0435\u043b\u0438 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u043d\u0430\u00a0\u043a\u0430\u0431\u0435\u043b\u0438-\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438 \u0441\u00a0\u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\" title=\"\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0431\u0435\u043b\u0438 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u043d\u0430\u00a0\u043a\u0430\u0431\u0435\u043b\u0438-\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438 \u0441\u00a0\u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439\" width=\"699\" height=\"933\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4be\/93b\/af9\/4be93baf90d1604a0fc030b98e0931e6.jpeg\" data-blurred=\"true\"\/><figcaption>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0431\u0435\u043b\u0438 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u043d\u0430\u00a0\u043a\u0430\u0431\u0435\u043b\u0438-\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438 \u0441\u00a0\u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6c0\/b6c\/43d\/6c0b6c43d24c65d3ea05775d8fdf2a2b.jpeg\" alt=\"\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u00a0\u0443\u0431\u0440\u0430\u043b \u0437\u0430\u00a0\u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440. \u041f\u043e\u0437\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u043e\" title=\"\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u00a0\u0443\u0431\u0440\u0430\u043b \u0437\u0430\u00a0\u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440. \u041f\u043e\u0437\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u043e\" width=\"2400\" height=\"1800\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6c0\/b6c\/43d\/6c0b6c43d24c65d3ea05775d8fdf2a2b.jpeg\" data-blurred=\"true\"\/><figcaption>\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u00a0\u0443\u0431\u0440\u0430\u043b \u0437\u0430\u00a0\u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440. \u041f\u043e\u0437\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0445\u043e\u043b\u043e\u0434\u043d\u043e<\/figcaption><\/figure>\n<\/div>\n<\/details>\n<p><a href=\"https:\/\/github.com\/nihilok\/SmartHomeApp\">\u041a\u043e\u0434 \u043d\u0430 GitHub<\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 Python \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u0441 \u0440\u0430\u0432\u043d\u043e\u0434\u0443\u0448\u043d\u044b\u043c\u0438 \u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0438\u043b\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043d\u0430\u0432\u044b\u043a\u0438 \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u044f \u0438\u043c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043d\u0430\u0448 \u043a\u0443\u0440\u0441 \u043f\u043e <a href=\"https:\/\/skillfactory.ru\/python-fullstack-web-developer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_FPW&amp;utm_term=regular&amp;utm_content=260721\">Fullstack-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/a> \u043d\u0430 Python, \u0430 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0431\u043b\u0438\u0436\u0435 \u043a \u0436\u0435\u043b\u0435\u0437\u0443, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u043a <a href=\"https:\/\/skillfactory.ru\/cplus?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_CPLUS&amp;utm_term=regular&amp;utm_content=260721\">\u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u0443\u0440\u0441\u0443 \u043f\u043e C++<\/a>. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/skillfactory.ru\/courses\/?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_ALLCOURSES&amp;utm_term=regular&amp;utm_content=260721\">\u0443\u0437\u043d\u0430\u0442\u044c<\/a> \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u043a\u0430\u0440\u044c\u0435\u0440\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e41\/cb3\/4c1\/e41cb34c1b8fa653daf92b2461befd06.png\" width=\"1000\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e41\/cb3\/4c1\/e41cb34c1b8fa653daf92b2461befd06.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>Data Science \u0438 Machine Learning<\/strong><\/p>\n<ul>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/dstpro?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_DSPR&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Data Scientist<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/dataanalystpro?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_DAPR&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Data Analyst<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/math-stat-for-ds#syllabus?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_MAT&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u00ab\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0434\u043b\u044f Data Science\u00bb<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/math_and_ml?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_MATML&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u00ab\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0438 Machine Learning \u0434\u043b\u044f Data Science\u00bb<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/dataengineer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_DEA&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u043f\u043e Data Engineering<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/ml-and-dl?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_MLDL&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u00abMachine Learning \u0438 Deep Learning\u00bb<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/ml-programma-machine-learning-online?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_ML&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u043f\u043e Machine Learning<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>Python, \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/strong><\/p>\n<ul>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/python-fullstack-web-developer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_FPW&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Fullstack-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430 Python<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/python-for-web-developers?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_PWS&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u00abPython \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u00bb<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/frontend?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_FR&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Frontend-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/webdev?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_WEBDEV&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f \u0412\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/strong><\/p>\n<ul>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/iosdev?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_IOSDEV&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f iOS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/android?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_ANDR&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>Java \u0438 C#<\/strong><\/p>\n<ul>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/java?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_JAVA&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f Java-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/java-qa-engineer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_QAJA&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f QA-\u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u043d\u0430 JAVA<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/csharp?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_CDEV&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f C#-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/game-dev?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_GAMEDEV&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u0433\u0440 \u043d\u0430 Unity<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041e\u0442 \u043e\u0441\u043d\u043e\u0432 \u2014 \u0432 \u0433\u043b\u0443\u0431\u0438\u043d\u0443<\/strong><\/p>\n<ul>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/algo?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_algo&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u00ab\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445\u00bb<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/cplus?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_CPLUS&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f C++ \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/a><\/p>\n<\/li>\n<li>\n<p>  <a href=\"https:\/\/skillfactory.ru\/cybersecurity?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_HACKER&amp;utm_term=regular&amp;utm_content=260721\">\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044f \u042d\u0442\u0438\u0447\u043d\u044b\u0439 \u0445\u0430\u043a\u0435\u0440<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410 \u0442\u0430\u043a\u0436\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/skillfactory.ru\/devops?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_DEVOPS&amp;utm_term=regular&amp;utm_content=260721\">\u041a\u0443\u0440\u0441 \u043f\u043e DevOps<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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\/articles\/569712\/\"> https:\/\/habr.com\/ru\/articles\/569712\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u0430 \u0431\u0435\u043a\u0435\u043d\u0434 \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c. \u041a \u0441\u0442\u0430\u0440\u0442\u0443 \u043a\u0443\u0440\u0441\u0430 \u043e <a href=\"https:\/\/skillfactory.ru\/python-fullstack-web-developer?utm_source=infopartners&amp;utm_medium=habr&amp;utm_campaign=habr_FPW&amp;utm_term=regular&amp;utm_content=260721\">Fullstack-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/a> \u043d\u0430 Python \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0441\u0442\u0430\u0442\u044c\u0438, \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438, \u0433\u0434\u0435 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u043d\u0430\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0432 \u043d\u0435\u0442, \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0432 \u043d\u043e\u0432\u043e\u043c \u0434\u043e\u043c\u0435 \u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043b \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442, \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u043a\u0435\u043d\u0434 \u043d\u0430 Flask.<\/p>\n<hr\/>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043e\u0438\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u00ab\u0443\u043c\u043d\u044b\u0439\u00bb \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442. \u0418\u00a0\u043c\u043d\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u043e\u0441\u044c: \u043d\u0435\u0443\u0436\u0435\u043b\u0438 \u044f\u00a0\u043d\u0435\u00a0\u0441\u043c\u043e\u0433\u0443 \u0441\u0430\u043c \u0441\u043e\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435? \u041e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u043c\u043d\u044e \u0441\u0435\u0431\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u00a0\u2014 \u044f\u00a0\u0431\u044b\u043b \u043e\u0434\u0435\u0440\u0436\u0438\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043c\u0435\u043d\u044f \u0432\u043e\u0441\u0445\u0438\u0449\u0430\u043b\u0438 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412\u043e\u0441\u0442\u043e\u0440\u0433 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0438 \u043c\u0438\u043d\u0438-\u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u044b, \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u0432\u044f\u043d\u043e\u0441\u0442\u044b\u0445, \u043d\u0430\u043b\u0430\u0434\u043e\u043d\u043d\u0438\u043a\u0438 Palm Pilot \u0438\u00a0\u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0442\u043e\u0440\u044b Nokia \u043a\u043e\u043d\u0446\u0430 \u044d\u0442\u043e\u0433\u043e\u00a0\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f, \u043a\u0430\u0440\u043c\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u043d\u0430\u00a0\u0440\u0443\u0431\u0435\u0436\u0435 \u0434\u0432\u0443\u0445\u0442\u044b\u0441\u044f\u0447\u043d\u044b\u0445. \u041a\u0430\u043a\u00a0\u0436\u0435 \u044f\u00a0\u043c\u0435\u0447\u0442\u0430\u043b \u043e\u0431 \u044d\u0442\u043e\u043c! \u0418\u00a0\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u0438\u00a0\u2014 \u044d\u0442\u043e \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u043b\u044c\u043d\u044b\u0445 \u043c\u0438\u0440\u0430 \u0441\u0435\u0433\u043e, \u0411\u0440\u044e\u0441\u0430 \u0423\u044d\u0439\u043d\u0430 \u0438\u043b\u0438 \u0422\u043e\u043d\u0438 \u0421\u0442\u0430\u0440\u043a\u0430. \u041f\u043e\u043a\u0430 \u0443\u00a0\u043c\u0435\u043d\u044f \u043d\u0435\u00a0\u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0447\u0443\u0434\u043e:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a\u00a0\u043a\u043e\u0434\u0443, \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435, \u044f\u00a0\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u0438\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442\u00a0\u2014 \u0443\u00a0\u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u0431\u044b\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c Pi\u00a03B, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443: \u043a\u0430\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043a\u0430\u043a \u043c\u0435\u0434\u0438\u0430\u0446\u0435\u043d\u0442\u0440, \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430 kali linux \u0438\u00a0\u0442.\u00a0\u0434.\u00a0\u041d\u043e\u00a0\u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u043c\u0438: \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u00a0\u0432\u0441\u0435\u043c\u0438 \u044d\u0442\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u043d\u043e\u00a0\u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0431\u043b\u0435\u0441\u043a\u0430. \u041e\u0442\u00a0\u043c\u0435\u0434\u0438\u0430\u0446\u0435\u043d\u0442\u0440\u0430 \u043d\u0430\u00a0Raspberry Pi\u00a03 \u0440\u0443\u043a\u0438 \u0447\u0435\u0448\u0443\u0442\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043a\u0440\u0443\u0447\u0435!<\/p>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b Pi\u00a0\u044f\u00a0\u043e\u0449\u0443\u0442\u0438\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043c\u043e\u0449\u044c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 Raspberry Pi\u00a0\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432\u00a0\u0435\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430\u0445 GPIO (<strong>G<\/strong>eneral <strong>P<\/strong>urpose <strong>I<\/strong>nput\/<strong>O<\/strong>utput). \u042f\u00a0\u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0YouTube, \u0440\u043e\u043b\u0438\u043a\u0438 \u043a\u0430\u043d\u0430\u043b\u0430 <a href=\"https:\/\/www.youtube.com\/user\/explainingcomputers\">Explaining Computers<\/a> \u043e\u0442\u00a0\u043c\u043e\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u041a\u0440\u0438\u0441\u0442\u043e\u0444\u0435\u0440\u0430 \u0411\u0430\u0440\u043d\u0430\u0442\u0442\u0430, \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d. \u0412\u00a0\u043d\u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u00a0\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438\u00a0\u043f\u0440\u043e\u0431\u0430\u0445 \u0441\u00a0GPIO, \u043d\u043e\u00a0\u0432\u00a0\u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043e\u0441\u0432\u043e\u0438\u0442\u044c \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0445\u0430\u043a\u0435\u0440\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 \u043f\u043e\u00a0\u0440\u043e\u043b\u0438\u043a\u0430\u043c YouTube \u0443\u00a0\u043c\u0435\u043d\u044f \u043d\u0435\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0451 \u0438\u00a0\u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u0441\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0443. \u0414\u043e\u00a0\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0435\u043b\u043e \u043d\u0435\u00a0\u0434\u043e\u0445\u043e\u0434\u0438\u043b\u043e.<\/p>\n<figure class=\"full-width\"><figcaption>\u0412\u044b\u0432\u043e\u0434\u044b GPIO \u043d\u0430\u00a0Raspberry Pi\u00a0SBC<\/figcaption><\/figure>\n<p>\u0427\u0442\u043e \u043c\u0435\u0448\u0430\u043b\u043e \u043d\u0430\u0447\u0430\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u041e\u043f\u0430\u0441\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u0437\u00a0\u0441\u0442\u0440\u043e\u044f \u043c\u043e\u0439 Pi.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0431\u0435\u043b\u0438-\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438, \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043b\u0430\u0442\u044b \u0438\u00a0\u0442. \u0434, \u043e\u043d\u0438 \u0434\u043e\u0440\u043e\u0433\u0438\u0435, \u0438\u0445\u00a0\u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c\u00a0\u0431\u044b \u0434\u043e\u043a\u0443\u043f\u0430\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0440\u043e\u0436\u0434\u0451\u043d\u043d\u0430\u044f \u043b\u0435\u043d\u044c.<\/p>\n<\/li>\n<\/ol>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f \u0441\u00a0\u043f\u0443\u043d\u043a\u0442\u0430\u043c\u0438.<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0432 \u043a\u00a0\u0440\u0430\u0431\u043e\u0442\u0435, \u0432\u044b\u00a0\u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0439\u043c\u0451\u0442\u0435, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432\u044b\u0432\u043e\u0434\u044b, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u00a0\u0446\u0435\u043b\u043e\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u00a0\u2014 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u043e\u043d\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0442\u0440\u0430\u0442\u044b \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u0441\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0435 \u0443\u00a0\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u043d\u043e\u00a0\u043d\u0430\u0439\u0442\u0438 \u0438\u0445\u00a0\u0438\u00a0\u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f\u2026 \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0442\u0435\u0440\u044f\u0432 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435, \u0440\u0430\u0434\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u044f\u00a0\u043f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u043b \u043a\u0430\u0431\u0435\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0442\u0430\u0449\u0438\u043b \u0438\u0437\u00a0\u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442 \u0438\u00a0\u043d\u0430\u0443\u0433\u0430\u0434 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b \u043a\u00a0\u0432\u044b\u0432\u043e\u0434\u0430\u043c GPIO\u00a0\u2014 \u0432\u0441\u0451 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e\u00a0\u044f\u00a0\u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043f\u0443\u043d\u043a\u0442 #1.<\/p>\n<p>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u0445\u0430\u043a\u0435\u0440, \u044f\u00a0\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\u00a0\u2014 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a\u0438, \u043c\u0435\u043b\u043a\u0438\u0435 \u043e\u0442\u0432\u0451\u0440\u0442\u043a\u0438. \u041c\u043e\u043d\u0442\u0430\u0436\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0434\u043b\u044f \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432 \u0442\u0430\u043a \u0438\u00a0\u043d\u0435\u00a0\u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c. \u0418\u00a0\u043b\u0435\u043d\u044c\u00a0\u2014 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e. \u0412\u0441\u0435 \u043c\u044b\u00a0\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441\u00a0\u043d\u0435\u0439 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u041d\u0443\u0436\u043d\u043e \u0441\u0435\u0431\u044f \u043f\u0435\u0440\u0435\u0441\u0438\u043b\u0438\u0442\u044c, \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u0438\u0434\u0435\u044e \u0438\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043b\u0430\u043d.<\/p>\n<h3>\u0414\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/h3>\n<p>\u0413\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u044f\u00a0\u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u0432\u00a0\u043d\u043e\u0432\u044b\u0439\u00a0\u0434\u043e\u043c. \u042d\u0442\u043e\u0439 \u0437\u0438\u043c\u043e\u0439 \u0432\u043e\u00a0\u0432\u0441\u0435\u0439 \u043a\u0440\u0430\u0441\u0435 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u0437 \u0438\u00a0\u0432\u0432\u0435\u0440\u0445, \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u00a0\u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u043e\u043c. \u041e\u043d\u0438 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0442\u0430\u043a, \u0447\u0442\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0432\u00a0\u0441\u0443\u0442\u043a\u0438, \u0430\u00a0\u0432\u00a0\u0431\u0443\u0434\u043d\u0438 \u0438\u00a0\u0432\u00a0\u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u0435\u0434\u0451\u0442 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0440\u0435\u0432 \u0434\u043e\u00a020\u00b0 \u0421\u00a0\u0432\u00a06 \u0443\u0442\u0440\u0430, \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0434\u043e\u00a05\u00b0 \u0421\u00a0\u0432\u00a08, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043e\u043c\u0430 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0438\u00a0\u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0434\u043e\u00a020\u00b0 \u0421\u00a0\u0432\u00a06 \u0432\u0435\u0447\u0435\u0440\u0430, \u043f\u0435\u0440\u0435\u0434 \u0441\u043d\u043e\u043c \u0441\u043d\u0438\u0437\u0438\u0432 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0434\u043e\u00a05\u00b0 \u0421.<\/p>\n<p>\u0412\u00a0\u0441\u0443\u0431\u0431\u043e\u0442\u0443 \u0438\u00a0\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0435\u0436\u0438\u043c. \u042d\u0442\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u0423\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0438\u0441\u0442\u0435\u043c, \u0441\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f\u00a0\u0438\u043c\u0435\u043b \u0434\u0435\u043b\u043e, \u0431\u044b\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0438\u00a0\u0442\u0430\u0439\u043c\u0435\u0440; \u043d\u0430\u00a0\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u00a0\u0441\u0442\u0435\u043d\u0435, \u043d\u043e\u00a0\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443\u00a0\u043d\u0430\u0441\u0442\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043e\u0434\u0438\u043d \u0447\u0430\u0441 \u0443\u0441\u0438\u043b\u0438\u0442\u044c \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0433\u0440\u0435\u0432\u0430, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c,\u00a0\u2014 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430\u00a0\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439 \u043d\u0430\u00a0\u044d\u043a\u0440\u0430\u043d\u0435 \u0434\u043e\u00a0\u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u043e\u0440\u043e\u0433\u0430 \u0438\u00a0\u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0451\u00a0\u043d\u0430\u00a0\u044d\u0442\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u043e\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0434\u0451\u0442 \u0432\u0440\u0435\u043c\u044f, \u0443\u0431\u0430\u0432\u0438\u0442\u044c\u00a0\u0435\u0451. \u042d\u0442\u0438 \u0440\u0430\u0437\u0434\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u0430\u00a0\u0443\u0437\u043d\u0430\u0432, \u0447\u0442\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442, \u044d\u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e \u043e\u0431\u043e\u0433\u0440\u0435\u0442\u044c \u0434\u043e\u043c \u0438\u00a0\u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u0431\u043e\u0440 \u0441\u0430\u043c\u043e\u043c\u0443.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 GPIO RPi<\/h3>\n<figure class=\"full-width\"><figcaption>\u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0440\u0435\u043b\u0435\u00a0\u2014 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043d\u0438\u0437\u0443\u00a0\u2014 \u0432\u00a0\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043e\u043c\u043a\u043d\u0443\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 (N\/O)<\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0436\u0435 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0449\u0435\u043b\u0447\u043e\u043a, \u0430\u00a0\u0437\u0432\u0443\u043a \u0440\u0435\u043b\u0435 \u043d\u0438\u00a0\u0441\u00a0\u0447\u0435\u043c \u043d\u0435\u00a0\u0441\u043f\u0443\u0442\u0430\u0435\u0448\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f\u00a0\u043f\u043e\u043b\u0430\u0433\u0430\u043b, \u0447\u0442\u043e \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0440\u0435\u043b\u0435. \u0411\u043e\u0439\u043b\u0435\u0440 \u043d\u0430\u0433\u0440\u0435\u0432\u0430\u0435\u0442\u0441\u044f\u00a0\u2014 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f; \u0449\u0435\u043b\u0447\u043e\u043a\u00a0\u2014 \u0438\u00a0\u0431\u043e\u0439\u043b\u0435\u0440 \u043e\u0441\u0442\u044b\u0432\u0430\u0435\u0442. \u0412\u00a0\u0441\u0435\u0442\u0438 \u044f\u00a0\u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0435 \u0440\u0435\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0Pi. \u042f\u00a0\u0431\u044b\u043b \u0432\u0437\u0432\u043e\u043b\u043d\u043e\u0432\u0430\u043d \u0438\u00a0\u0434\u0430\u0436\u0435 \u0441\u043b\u0435\u0433\u043a\u0430 \u043e\u043f\u0430\u0441\u0430\u043b\u0441\u044f \u0437\u0430\u00a0\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 GPIO.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u044f\u00a0\u0432\u044b\u0431\u0440\u0430\u043b \u0440\u0435\u043b\u0435 <a href=\"https:\/\/www.adafruit.com\/product\/3191%23technical-details\"><em>Adafruit Power Relay Featherwing<\/em><\/a><em>.<\/em> \u0420\u0435\u043b\u0435 \u043d\u0430\u00a05 \u0430\u043c\u043f\u0435\u0440 \u0438\u00a0250 \u0432\u043e\u043b\u044c\u0442 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441\u00a0\u0431\u0440\u0438\u0442\u0430\u043d\u0441\u043a\u0438\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c \u0438\u00a0\u043d\u0430\u0434\u0451\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u00a0\u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f Pi\u00a03\u0412.<\/p>\n<figure class=\"full-width\"><figcaption>3\u0412 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0432\u044b\u0432\u043e\u0434\u0443 1, GND \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 9, \u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u2014 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 13 (GPIO 27)<\/figcaption><\/figure>\n<p>\u0420\u0435\u043b\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u043e, \u044f\u00a0\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0443\u0437\u043d\u0430\u043b \u043d\u0430\u00a0\u043a\u0430\u043d\u0430\u043b\u0435 Explaining Computers.<\/p>\n<pre><code class=\"python\">import RPi.GPIO as GPIO import time  GPIO.setmode(GPIO.BOARD)  GPIO.setup(13, GPIO.OUT)  try:     while True:         GPIO.output(13, True)         time.sleep(1)         GPIO.output(13, False)         time.sleep(1)  finally:     GPIO.cleanup()<\/code><\/pre>\n<p><em>\u041f\u0435\u0440\u0432\u043e\u0435 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435<\/em><\/p>\n<p>\u0412\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0430 RPi.GPIO \u044f\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c Board Numbering, \u0430\u00a0\u0437\u0430\u0442\u0435\u043c \u0432\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 GPIO 27, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0432\u00a0\u043a\u043e\u0434\u0435 \u0447\u0438\u0441\u043b\u043e\u043c\u00a013.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0446\u0438\u043a\u043b while, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u00a0\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0432\u00a0\u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u00a0\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0440\u0435\u043b\u0435. \u0411\u043b\u043e\u043a try\/finally \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u0438\u0437\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0412\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0441\u0440\u0430\u0437\u0443 (\u0441\u043f\u0430\u0441\u0438\u0431\u043e, \u041a\u0440\u0438\u0441!). \u041d\u0435\u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u043c\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0449\u0435\u043b\u0447\u043a\u0438 \u0440\u0435\u043b\u0435 \u0438\u00a0\u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c!<\/p>\n<p>\u041e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u043c\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u0438\u00a0\u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e: \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c. \u042f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u00a0\u0432\u044b\u0431\u0440\u0430\u043b BMP280 \u043e\u0442\u00a0Bosch\u00a0\u2014 \u0441\u0430\u043c\u044b\u0439 \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u00a0\u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u043e\u0442\u0437\u044b\u0432\u0430\u043c\u0438:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0449\u0451 \u043f\u0430\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u0432\u00a0\u0441\u0435\u0442\u0438, \u0438\u00a0\u044f\u00a0\u043d\u0430\u0448\u0451\u043b \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e <a href=\"http:\/\/www.pibits.net\/code\/raspberry-pi-and-bmp280-sensor-example.php\">\u0441\u0445\u0435\u043c\u0443<\/a> \u0438\u00a0\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043e\u00a0\u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u043a\u00a0Pi:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u00a0\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 3 \u0438\u00a05 (GPIO 2(SDA) \u0438\u00a03(SCL)) <a href=\"https:\/\/en.wikipedia.org\/wiki\/IC\">\u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b <\/a>\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u0448\u0438\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0445\u0435\u043c\u0430\u043c\u0438.<\/p>\n<p>\u042f\u00a0\u0432\u044b\u0431\u0440\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432\u044b\u0448\u0435, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u0431\u0435\u043b\u044c 3\u0412 \u0440\u0435\u043b\u0435 \u043d\u0430\u00a0\u043a\u043e\u043d\u0442\u0430\u043a\u0442 Pi\u00a03\u0412 \u0432\u00a0\u043f\u043e\u0437\u0438\u0446\u0438\u0438\u00a017. \u0412\u00a0\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0435\u00a0\u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u0448\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0435 \u0440\u0435\u043b\u0435, \u044f\u00a0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0435\u0433\u043e \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<figure class=\"full-width\"><figcaption>\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0441\u0432\u0438\u0441\u0430\u044e\u0449\u0438\u0439 \u0441\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 (\u043f\u043e\u0437\u0436\u0435 \u044f\u00a0\u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0438\u0445)<\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043b\u0435 \u0438\u00a0\u043c\u043e\u0434\u0443\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0438\u00a0\u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u00a0\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0438\u0439, \u0442\u043e\u00a0\u0441\u043e\u00a0\u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f: \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0435\u043b\u0430 \u043e\u0442\u00a0\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a I2C-\u0432\u044b\u0432\u043e\u0434\u043e\u0432\u00a0Pi. \u0421\u00a0\u043d\u0438\u043c\u0438 \u0442\u043e\u00a0\u0438\u00a0\u0434\u0435\u043b\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0435\u00a0\u043d\u0430\u00a0Raspbian. \u042f\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441\u00a0Ubuntu 20.04, \u043d\u043e\u00a0\u0432\u0441\u0451 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e\u00a0\u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0438\u00a0\u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0Stack Overflow.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0430 \u0438\u0437-\u0437\u0430 \u043c\u043e\u0435\u0439 \u0434\u0430\u0432\u043d\u0435\u0439 \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u044c\u043d\u0438\u0446\u044b\u00a0\u2014 \u043e\u0448\u0438\u0431\u043a\u0438 <code>PermissionError<\/code>, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435\u00a0\u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 root. \u041d\u0435\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e \u043d\u0430\u00a0\u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>\u0412\u00a0\u0438\u0442\u043e\u0433\u0435 \u044f\u00a0\u043d\u0430\u0448\u0451\u043b \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 <code>pigpiowhich<\/code>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0434\u0435\u043c\u043e\u043d <code>pigpiod<\/code>. \u041e\u043d\u00a0\u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0430 RPi.GPIO, \u0432\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043e\u043d\u00a0\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u00a0Ubuntu \u0438\u00a0Raspbian \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">sudo apt install pigpiod<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c Python:<\/p>\n<pre><code class=\"bash\">pip3 install pigpio<\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u0447\u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c smbus2 \u0438\u00a0<code>pimoroni-bme280<\/code>:<\/p>\n<pre><code class=\"bash\">pip3 install smbus2 pimoroni-bme280<\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u0435\u0439<\/h3>\n<p>\u042f\u00a0\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c i2c-tools, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043b\u043e\u0445\u043e\u0439 \u043f\u0430\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">sudo apt install i2c-tools<\/code><\/pre>\n<p>\u041f\u0430\u043a\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0430\u043d\u044f\u0442\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 I2C. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b, \u0432\u044b\u00a0\u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u0432\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u043d\u043e\u00a0\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u00a0\u043d\u0435\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u0430\u0439\u043a\u0435. \u041f\u0440\u0438\u043f\u0430\u0438\u0432\u0430\u044f \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u044b\u0435 GPIO-\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043a\u00a0Pi\u00a0Zero W, \u044f\u00a0\u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u043f\u043b\u044f \u043f\u0440\u0438\u043f\u043e\u044f \u043f\u0440\u043e\u043d\u0438\u043a\u0430\u043b\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u00a0\u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u0435. \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438 i2cdetect \u043d\u0430\u0448\u0451\u043b \u043c\u043e\u0434\u0443\u043b\u044c:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u00a0\u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u043e #1 \u0434\u043e\u0441\u0442\u0438\u0433\u043b\u043e \u043f\u0438\u043a\u0430. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u044f\u00a0\u043e\u043f\u0430\u0441\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u0440\u0438\u043f\u0430\u044f\u044e \u043e\u0434\u0438\u043d \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u043a\u00a0\u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0438\u00a0\u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435. \u041d\u043e\u00a0\u0432\u0441\u0451 \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c, \u0441\u0432\u043e\u0439 Pi\u00a0\u044f\u00a0\u043d\u0435\u00a0\u043f\u043e\u0432\u0440\u0435\u0434\u0438\u043b, \u0445\u043e\u0442\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u044f\u0442\u0435\u043d \u043f\u0440\u0438\u043f\u043e\u044f \u0432\u00a0\u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043b\u0430\u0442\u044b.<\/p>\n<h2>\u041a\u043e\u0434<\/h2>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430, \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <em>\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439<\/em>, \u043d\u0435\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434. \u0414\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u044f\u00a0\u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043b\u0435\u0433\u043a\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u00a0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Flask.<\/p>\n<pre><code class=\"python\">import json import time from datetime import datetime from threading import Thread import pigpio import requests from requests.exceptions import ConnectionError   class Heating:     def __init__(self):         self.pi = pigpio.pi()         self.advance = False         self.advance_start_time = None         self.on = False         self.tstat = False         self.temperature = self.check_temperature()         self.humidity = self.check_humidity()         self.pressure = self.check_pressure()         self.desired_temperature = 20         self.timer_program = {             'on_1': '07:30',             'off_1': '09:30',             'on_2': '17:30',             'off_2': '22:00',         }        def thermostatic_control(self):         self.tstat = True         while self.tstat:             time_check = datetime.strptime(datetime.utcnow().time().strftime('%H:%M'), '%H:%M').time()             on_1 = datetime.strptime(self.timer_program['on_1'], '%H:%M').time()             off_1 = datetime.strptime(self.timer_program['off_1'],<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-406193","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406193","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=406193"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/406193\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}