{"id":340180,"date":"2022-10-24T15:01:03","date_gmt":"2022-10-24T15:01:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=340180"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=340180","title":{"rendered":"<span>ESP32 Tuya IoT adapter: \u0440\u043e\u0434\u0438\u043b\u0430 \u0446\u0430\u0440\u0438\u0446\u0430 \u0432 \u043d\u043e\u0447\u044c\u2026<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/post\/694642\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/qz\/d7\/vb\/qzd7vbxeavprmpqqfgkknc8qsso.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/qz\/d7\/vb\/qzd7vbxeavprmpqqfgkknc8qsso.jpeg\" data-blurred=\"true\"\/><\/a><\/p>\n<p>  \u041f\u043e\u043f\u0430\u043b\u043e\u0441\u044c \u0442\u0443\u0442 \u043c\u043d\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u0438\u0437\u0434\u0435\u043b\u0438\u0435 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00abESP32 Tuya IoT adapter\u00bb, \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043d\u0435\u043e\u0440\u0434\u0438\u043d\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432\u044b\u0448\u0435. \u041c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u043c, \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0448\u0438\u043c\u0441\u044f \u043e\u0442 \u043b\u0435\u0442\u0430\u044e\u0449\u0435\u0439 \u0442\u0430\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u0438 \u043d\u0435\u0443\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0440\u0435\u0437\u043a\u043e\u043c \u043c\u0430\u043d\u0451\u0432\u0440\u0435 \u0432 500 g, \u0438 \u0442\u043e\u0440\u0441\u0438\u043e\u043d\u043d\u044b\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>  \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 ESP32, \u0430 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u0434\u0435\u0432\u0430\u0439\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 ESP32, \u0442\u043e \u044d\u0442\u043e, \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e, \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u0438 \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u044f \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<p>  \u041d\u0443 \u0438 Tuya \u043c\u0435\u043d\u044f \u0442\u043e\u0436\u0435 \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0430, \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043e\u0431\u0449\u0438\u0442\u044c\u0441\u044f \u043a \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u043e\u0439 \u043c\u044b\u0441\u043b\u0438 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Tuya<\/h2>\n<p>  \u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e <a href=\"https:\/\/www.tuya.com\/\">Tuya<\/a> \u2014 \u044d\u0442\u043e \u00ab\u0443\u043c\u043d\u043e\u0435 (AI) \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u0434\u043b\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f IoT \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f (\u043f\u0440\u0435\u0441\u043b\u043e\u0432\u0443\u0442\u043e\u0433\u043e) \u00ab\u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u00bb. \u041e\u0431\u043b\u0430\u043a\u043e \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0444\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u0435, \u0438\u043c\u0435\u044e\u0449\u0435\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u043e\u0435 API, \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0438 \u0434\u0430\u0436\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0447\u0438\u043f\u044b (\u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ct\/9m\/lk\/ct9mlk2fqqpxfg9rgeowxlkhtna.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ct\/9m\/lk\/ct9mlk2fqqpxfg9rgeowxlkhtna.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, Tuya \u2014 \u044d\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0432\u0435\u0449\u044c, \u0432 \u0435\u0451 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 Tuya-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 (\u0434\u0430\u0442\u0447\u0438\u043a\u0438, \u0440\u043e\u0437\u0435\u0442\u043a\u0438 \u0438 \u0442.\u00a0\u043f.). \u0421\u0430\u043c\u043e-\u0441\u043e\u0431\u043e\u0439 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u043e\u0432, \u0441\u0430\u0439\u0442, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u043e\u043d\u043b\u0430\u0439\u043d \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043a\u0430\u043d\u0430\u043b \u043d\u0430 Youtube, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 (SDK) \u0434\u043b\u044f Arduino \u0438 \u0442.\u00a0\u0434.<\/p>\n<p>  \u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0430\u0436\u0438\u043e\u0442\u0430\u0436\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u043d\u0430\u044f \u0442\u0438\u0448\u0438\u043d\u0430 \u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e Tuya \u0432 \u043d\u0430\u0448\u0438\u0445 \u043f\u0430\u043b\u0435\u0441\u0442\u0438\u043d\u0430\u0445. \u0422\u043e \u043b\u0438 \u043d\u043e\u0432\u043e\u043c\u043e\u0434\u043d\u043e\u0435 \u0432\u0435\u044f\u043d\u0438\u0435 \u0435\u0449\u0451 \u043d\u0435 \u0434\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u0434\u043e \u043d\u0430\u0441, \u0442\u043e \u043b\u0438 \u0447\u0442\u043e\u2026<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, Tuya \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0445\u043e\u0442\u044f \u0431\u044b \u0431\u0435\u0433\u043b\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u0434\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0441 \u043d\u0435\u0439, \u0447\u0442\u043e \u043c\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c (\u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e) \u0432 \u044d\u0442\u043e\u0439 \u0438 (\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e) \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445.<\/p>\n<h2>ESP32 Tuya IoT adapter<\/h2>\n<p>  ESP32 Tuya IoT adapter \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 (\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a, \u043c\u043e\u0441\u0442) \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 (\u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430) \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0431\u043b\u0430\u043a\u043e\u043c (\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439) Tuya. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b RS232 \u0438 RS485, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u0441\u0432\u044f\u0437\u044c \u0441 \u043e\u0431\u043b\u0430\u043a\u043e\u043c Tuya.<\/p>\n<p>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e ESP32 Tuya IoT adapter \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c\u0438 Kincony, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c RS232 \u0438\u043b\u0438 RS485 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u043b\u044e\u0431\u0438\u043c\u043e\u043c\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430.<\/p>\n<p>  \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, ESP32 Tuya IoT adapter \u2014 \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 Tuya \u0432 \u0432\u0430\u0448 \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c (\u0438\u043b\u0438 \u043b\u044e\u0431\u0443\u044e \u0434\u0440\u0443\u0433\u0443\u044e IoT \u0441\u0438\u0441\u0442\u0435\u043c\u0443).<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0441 Tuya \u043e\u0431\u043b\u0430\u043a\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0447\u0438\u043f\u043e\u043c CBU-IPEX, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043d\u0438\u0436\u0435. \u041d\u0430 \u0431\u043e\u0440\u0442\u0443 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u0435\u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 ESP32 (\u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e), \u0447\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u0439 \u00ab\u0430\u0434\u0430\u043f\u0442\u0435\u0440\u00bb \u0432 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 IoT \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u0438 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438.<\/p>\n<p>  ESP32 Tuya IoT adapter \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442:<\/p>\n<ul>\n<li>\u041c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 ESP32-WROOM-32UE<\/li>\n<li>SMA \u0440\u0430\u0437\u044a\u0451\u043c \u0438 \u0430\u043d\u0442\u0435\u043d\u043d\u0443 \u0434\u043b\u044f ESP32<\/li>\n<li>\u041a\u043d\u043e\u043f\u043a\u0438 DOWNLOAD \u0438 RESET<\/li>\n<li>\u0420\u0430\u0437\u044a\u0451\u043c \u0441 7-\u044e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u043c\u0438 GPIO ESP32<\/li>\n<li>\u0414\u0436\u0430\u043c\u043f\u0435\u0440 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u0432 RS232\/RS485<\/li>\n<li>Tuya \u0447\u0438\u043f CBU-IPEX<\/li>\n<li>SMA \u0440\u0430\u0437\u044a\u0451\u043c \u0438 \u0430\u043d\u0442\u0435\u043d\u043d\u0443 \u0434\u043b\u044f CBU-IPEX<\/li>\n<li>\u041a\u043d\u043e\u043f\u043a\u0443 S1<\/li>\n<li>5 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432<\/li>\n<li>\u0420\u0430\u0437\u044a\u0451\u043c RS232 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/li>\n<li>\u0420\u0430\u0437\u044a\u0451\u043c RS485 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/li>\n<li>USB Type-C \u0440\u0430\u0437\u044a\u0451\u043c<\/li>\n<li>\u0420\u0430\u0437\u044a\u0451\u043c \u0438 \u043a\u043e\u043b\u043e\u0434\u043a\u0443 \u043f\u0438\u0442\u0430\u043d\u0438\u044f 9-24 \u0412<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0438 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u043b\u0430\u0442\u044b ESP32 Tuya IoT adapter, \u0434\u0432\u0443\u0445 \u0430\u043d\u0442\u0435\u043d\u043d \u0438 \u0434\u0432\u0443\u0445 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 DIN-\u0440\u0435\u0439\u043a\u0443. \u041f\u043b\u0430\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 DIN-\u0440\u0435\u0439\u043a\u0443, \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u0439 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u00ab\u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c\u00bb \u043d\u0430 \u0440\u0430\u0437\u044a\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 RS232 (\u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0439, \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0442\u044c \u0440\u0430\u0437\u044a\u0451\u043c).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/uo\/ei\/zg\/uoeizghjmkm3n9c6qtwyeztg5v0.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/uo\/ei\/zg\/uoeizghjmkm3n9c6qtwyeztg5v0.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412\u0438\u0434 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 DIN-\u0440\u0435\u0439\u043a\u0443. SMA \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u044d\u0442\u0438 \u043a\u0430\u0431\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u043b\u0438\u043d\u0438\u0442\u044c \u0438 \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0430\u043d\u0442\u0435\u043d\u043d\u044b \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0448\u043a\u0430\u0444\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/cv\/fb\/wr\/cvfbwr_wm5oop9uuidhawjabrr4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/cv\/fb\/wr\/cvfbwr_wm5oop9uuidhawjabrr4.jpeg\" data-blurred=\"true\"\/><\/p>\n<h2>\u0421\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0430<\/h2>\n<p>  \u0412\u0438\u0434 ESP32 Tuya IoT adapter \u0441\u0432\u0435\u0440\u0445\u0443. \u041d\u0430 \u043f\u043b\u0430\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u2014 KC868-ATC.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/md\/gq\/nu\/mdgqnu-gtlqnspvqbduag6vivww.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/md\/gq\/nu\/mdgqnu-gtlqnspvqbduag6vivww.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043f\u043b\u0430\u0442\u044b, \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0434\u043b\u044f Kincony, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0440\u0430\u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u0435\u043c \u0438 \u0441\u043c\u044b\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0444\u043b\u044e\u0441\u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u0445 \u0440\u0430\u0437\u044a\u0451\u043c\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ha\/so\/hz\/hasohzz6f76b9nlt-npg2bgvsnm.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ha\/so\/hz\/hasohzz6f76b9nlt-npg2bgvsnm.jpeg\" data-blurred=\"true\"\/><\/p>\n<h3>\u041f\u0438\u0442\u0430\u043d\u0438\u0435<\/h3>\n<p>  \u041f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u043f\u043e\u043d\u0438\u0436\u0430\u044e\u0449\u0435\u0433\u043e DC-DC \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f XL1509-5 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0439 12 \u0412 \u0438 5 \u0412 \u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430 LM117-3V3 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f 3,3 \u0412. \u0417\u0430\u043f\u0438\u0442\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c 9-24 \u0412 \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u0440\u0443\u0433\u043b\u044b\u0439 \u0440\u0430\u0437\u044a\u0451\u043c \u00ab\u0430-\u043b\u044f Arduino\u00bb, \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430 \u043a\u043e\u043b\u043e\u0434\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ex\/rf\/1-\/exrf1-6umr8d-hz4-last7alzty.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ex\/rf\/1-\/exrf1-6umr8d-hz4-last7alzty.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0438\u0442\u0430\u043d\u0438\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/of\/ca\/in\/ofcain8g6fnqe0azotssj7_jh2i.png\" data-src=\"https:\/\/habrastorage.org\/webt\/of\/ca\/in\/ofcain8g6fnqe0azotssj7_jh2i.png\"\/><\/p>\n<h3>ESP32<\/h3>\n<p>  ESP32 Tuya IoT adapter \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043e\u0434\u0443\u043b\u044c ESP32-WROOM-32UE \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u00ab\u043c\u043e\u0437\u0433\u0430\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0441\u0432\u044f\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0445\u0430\u0431\u0430 \u043c\u0435\u0436\u0434\u0443 \u0435\u0451 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a ESP32 (\u043f\u043e UART3 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d Tuya \u0447\u0438\u043f CBU-IPEX, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043f\u043e UART2, \u00ab\u0437\u0430\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0435\u043d\u043d\u044b\u0435\u00bb RS232 \u0438 RS485 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b.<\/p>\n<p>  \u041f\u043e\u0434 \u00ab\u0437\u0430\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e\u00bb RS232 \u0438 RS485 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0438\u0445 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a ESP32 \u0432\u043d\u0443\u0442\u0440\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0438 \u0432\u044b\u0431\u043e\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435 (\u044d\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043b\u0438\u0431\u043e \u0441 RS232, \u043b\u0438\u0431\u043e \u0441 RS485, \u043d\u043e \u043d\u0435 \u0441 \u043e\u0431\u043e\u0438\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e).<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0441\u0432\u044f\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0432\u0435\u043d\u0430 \u043c\u0435\u0436\u0434\u0443 \u0447\u0430\u0441\u0442\u044f\u043c\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430, ESP32 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u0435\u0449\u0451 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0434\u0430\u0447: \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0438 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e Wi-Fi \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0441\u0442\u043e\u043c Wi-Fi-Tuya, \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 GPIO, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0442.\u00a0\u0434. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0438\u0437 ESP32 Tuya IoT adapter \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u0435 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/dr\/tf\/j4\/drtfj4zitawgbi-_imfjydhm2xg.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/dr\/tf\/j4\/drtfj4zitawgbi-_imfjydhm2xg.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0438 \u0440\u0430\u0441\u043f\u0438\u043d\u043e\u0432\u043a\u0430 \u044f\u0434\u0440\u0430 (ESP32) \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/pb\/-3\/gu\/pb-3gu3h_eaew31wmp8eu-d0wra.png\" data-src=\"https:\/\/habrastorage.org\/webt\/pb\/-3\/gu\/pb-3gu3h_eaew31wmp8eu-d0wra.png\"\/><\/p>\n<h3>Tuya CBU-IPEX<\/h3>\n<p>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u043e CBU-IPEX \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0448\u044c \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0446\u0438\u0442\u0430\u0442\u0430:<\/p>\n<p>  <i>CBU-IPEX is a low-power embedded Wi-Fi module that Tuya has developed. It consists of a highly integrated RF chip BK7231N and a few peripherals, and not only supports the AP and STA dual-network-connection manner but supports the Bluetooth LE network connection manner.<\/p>\n<p>  CBU-IPEX is built-in with a 32-bit MCU with a running speed of up to 120 MHz, 2Mbyte flash, and 256-KB RAM, to support the Tuya IoT cloud connection. The MCU\u2019s specially extended instructions for processing signals can effectively implement audio encoding and decoding. Besides, it has rich peripherals, such as PWM, UART, and SPI. The five 32-bit PWM output makes the chip very suitable for high-quality LED control.<\/i><\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438: CBU-IPEX \u2014 \u044d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Tuya \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043c\u0435\u0435\u0442 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 Tuya \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0430\u043a \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u0438 \u0441 Tuya \u043e\u0431\u043b\u0430\u043a\u043e\u043c (\u0441\u0430\u043c\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439).<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043b\u0438\u0442\u044c \u0432 ESP32 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443, \u0438 \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u00ab\u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u043c\u00bb \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c Tuya, \u043b\u0438\u0431\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043a\u0430\u0447\u0430\u0442\u044c SDK (\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443) \u0434\u043b\u044f Arduino \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 CBU-IPEX (Tuya) \u0434\u043b\u044f ESP32 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0420\u0430\u0437\u0431\u043e\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Tuya \u0438 \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u2014 \u044d\u0442\u043e, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e, \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u043e\u0434\u043d\u043e\u0439).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/0t\/zi\/2s\/0tzi2si0uh_t8wcloyiqcgqdkr8.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/0t\/zi\/2s\/0tzi2si0uh_t8wcloyiqcgqdkr8.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b Tuya CBU-IPEX:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/65\/xg\/y8\/65xgy8lirf0bkrq_-47spimwise.png\" data-src=\"https:\/\/habrastorage.org\/webt\/65\/xg\/y8\/65xgy8lirf0bkrq_-47spimwise.png\"\/><\/p>\n<h3>USB-UART<\/h3>\n<p>  \u041f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 USB-UART \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 CH340C \u0438 \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u044a\u0451\u043c USB Type-C. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u2014 RESET \u0438 DOWNLOAD \u043f\u043e\u0434 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u0430\u043c\u0438 \u00abRST\u00bb \u0438 \u00abD.L.\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ad\/mi\/sg\/admisgc5_4s7soeujkpstwcl4ie.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ad\/mi\/sg\/admisgc5_4s7soeujkpstwcl4ie.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b USB-UART:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/vp\/gb\/17\/vpgb17494mtskund3lakplxegdm.png\" data-src=\"https:\/\/habrastorage.org\/webt\/vp\/gb\/17\/vpgb17494mtskund3lakplxegdm.png\"\/><\/p>\n<h3>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 RS232<\/h3>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 RS232 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 SP232EEN, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a \u0431\u0443\u0444\u0435\u0440\u0430\u043c 74LVC1G08 \u0438 74AHCT1G125 (\u0441\u043c. \u0441\u0445\u0435\u043c\u0443 RS485 \u043d\u0438\u0436\u0435) \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a ESP32 \u043f\u043e UART2 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 (GPIO16 \u0438 GPIO17).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/1p\/ij\/wu\/1pijwub6zu8ljsjy70ivret3_us.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/1p\/ij\/wu\/1pijwub6zu8ljsjy70ivret3_us.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 RS232:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/v4\/r5\/cp\/v4r5cpb1ytzccdb7tsm6fagwn-i.png\" data-src=\"https:\/\/habrastorage.org\/webt\/v4\/r5\/cp\/v4r5cpb1ytzccdb7tsm6fagwn-i.png\"\/><\/p>\n<h3>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 RS485<\/h3>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 RS485 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 MAX13487EESA, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a \u0431\u0443\u0444\u0435\u0440\u0430\u043c 74LVC1G08 \u0438 74AHCT1G125 \u0438 \u00ab\u0437\u0430\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0435\u043d\u00bb \u0441 RS232 (\u0441\u043c. \u0432\u044b\u0448\u0435). \u0412\u044b\u0431\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0435\u043c \u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e (\u043e\u0431 \u044d\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/yu\/ch\/kw\/yuchkwfg2fxx_nev15ib5gfytms.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/yu\/ch\/kw\/yuchkwfg2fxx_nev15ib5gfytms.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 RS485:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qj\/tw\/0a\/qjtw0ahgzjhpufjhtpendil4qkq.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qj\/tw\/0a\/qjtw0ahgzjhpufjhtpendil4qkq.png\"\/><\/p>\n<h3>\u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u044b<\/h3>\n<p>  \u0421\u0431\u043e\u043a\u0443 \u043f\u043b\u0430\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0431\u043b\u043e\u043a \u0438\u0437 5-\u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432. \u0418\u0437 \u043d\u0438\u0445 \u043e\u0434\u0438\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f (D6), \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a ESP32 \u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/0l\/to\/ul\/0ltoulb5nnc8vofafzi0wxhwdmo.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/0l\/to\/ul\/0ltoulb5nnc8vofafzi0wxhwdmo.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mm\/ta\/nc\/mmtancr88b386ologmyayuvf_lw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mm\/ta\/nc\/mmtancr88b386ologmyayuvf_lw.png\"\/><\/p>\n<h3>\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 GPIO \u0438 \u0434\u0436\u0430\u043c\u043f\u0435\u0440 RS232\/RS485<\/h3>\n<p>  \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Kincony \u0432\u043d\u044f\u043b\u0430 \u043d\u0430\u0448\u0438\u043c \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u043c \u0438 \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 GPIO \u0432 \u0440\u0430\u0437\u044a\u0451\u043c\u044b. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b ESP32 Tuya IoT adapter \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u043e\u0435 \u0432\u0430\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u041f\u043b\u0430\u0442\u0430 \u0438\u043c\u0435\u0435\u0442 7 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 GPIO \u0438 \u043e\u0434\u0438\u043d \u0434\u0436\u0430\u043c\u043f\u0435\u0440 GPIO23-GND \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b RS232\/RS485.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/1a\/o_\/yw\/1ao_ywo-7jsg5yeprd9shitmfdm.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/1a\/o_\/yw\/1ao_ywo-7jsg5yeprd9shitmfdm.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 GPIO:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/pj\/9h\/hs\/pj9hhs6bku6lpbv_4lwtpx6ayqc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/pj\/9h\/hs\/pj9hhs6bku6lpbv_4lwtpx6ayqc.png\"\/><\/p>\n<h2>\u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/h2>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0437\u044a\u0451\u043c\u043e\u0432, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f Kincony. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0435 \u0432\u0435\u0449\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432, \u0434\u0430\u043d\u044b \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u2014 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0445 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0451\u043c \u0441\u043a\u0435\u0442\u0447\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/uz\/-t\/zs\/uz-tzsmsjrxv0zi8ol9oyzr7_h8.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/uz\/-t\/zs\/uz-tzsmsjrxv0zi8ol9oyzr7_h8.jpeg\" data-blurred=\"true\"\/><\/p>\n<h2>\u0420\u0430\u0441\u043f\u0438\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>  \u0415\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u044f\u0441\u043d\u043e\u0441\u0442\u0438 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e ESP32 Tuya IoT adapter \u043c\u043e\u0436\u0435\u0442 \u0432\u043d\u0435\u0441\u0442\u0438 \u0440\u0430\u0441\u043f\u0438\u043d\u043e\u0432\u043a\u0430, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043d\u0438\u0436\u0435. \u041d\u0435\u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e GPIO2 \u0438 GPI34, 35, 36, 39.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wl\/ru\/ba\/wlrubarvoj_rmjhpck-iz9ga3he.png\" data-src=\"https:\/\/habrastorage.org\/webt\/wl\/ru\/ba\/wlrubarvoj_rmjhpck-iz9ga3he.png\"\/><\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0421 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0438 \u0441\u0445\u0435\u043c\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u043e\u0439 ESP32 Tuya IoT adapter \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0435\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0441 \u0441\u0430\u043c\u0438\u043c \u043e\u0431\u043b\u0430\u043a\u043e\u043c Tuya, \u043d\u043e \u044d\u0442\u043e, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u2026 (\u041e\u0441\u0442\u0430\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438.)<\/p>\n<p>  <a href=\"https:\/\/cloud.timeweb.com\/vds-vps?utm_source=habr&amp;utm_medium=banner&amp;utm_campaign=vds-promo-6-rub\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/p-\/u9\/l2\/p-u9l27ynelxi92bcmdxhu76ma8.png\" data-src=\"https:\/\/habrastorage.org\/webt\/p-\/u9\/l2\/p-u9l27ynelxi92bcmdxhu76ma8.png\"\/><\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/company\/timeweb\/blog\/694642\/\"> https:\/\/habr.com\/ru\/company\/timeweb\/blog\/694642\/<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/post\/694642\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/qz\/d7\/vb\/qzd7vbxeavprmpqqfgkknc8qsso.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/qz\/d7\/vb\/qzd7vbxeavprmpqqfgkknc8qsso.jpeg\" data-blurred=\"true\"\/><\/a><\/p>\n<p>  \u041f\u043e\u043f\u0430\u043b\u043e\u0441\u044c \u0442\u0443\u0442 \u043c\u043d\u0435 \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435 \u0438\u0437\u0434\u0435\u043b\u0438\u0435 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u00abESP32 Tuya IoT adapter\u00bb, \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043d\u0435\u043e\u0440\u0434\u0438\u043d\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432\u044b\u0448\u0435. \u041c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u044d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u043c, \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0448\u0438\u043c\u0441\u044f \u043e\u0442 \u043b\u0435\u0442\u0430\u044e\u0449\u0435\u0439 \u0442\u0430\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u0438 \u043d\u0435\u0443\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0440\u0435\u0437\u043a\u043e\u043c \u043c\u0430\u043d\u0451\u0432\u0440\u0435 \u0432 500 g, \u0438 \u0442\u043e\u0440\u0441\u0438\u043e\u043d\u043d\u044b\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>  \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 ESP32, \u0430 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u0434\u0435\u0432\u0430\u0439\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 ESP32, \u0442\u043e \u044d\u0442\u043e, \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e, \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u0438 \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u044f \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<p>  \u041d\u0443 \u0438 Tuya \u043c\u0435\u043d\u044f \u0442\u043e\u0436\u0435 \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0430, \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043e\u0431\u0449\u0438\u0442\u044c\u0441\u044f \u043a \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u043e\u0439 \u043c\u044b\u0441\u043b\u0438 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-340180","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340180","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=340180"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340180\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}