{"id":489101,"date":"2026-07-30T00:52:56","date_gmt":"2026-07-30T00:52:56","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=489101"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=489101","title":{"rendered":"\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u0443\u0448\u043a\u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0438 \u043e\u043f\u0438\u0441\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0445 \u0428\u0418\u041c-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0449\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<br \/>\u0412\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0434. \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f Arduino Nano\/Uno, \u0434\u0432\u0435 \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, LCD-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u041f\u041a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Arduino IDE.<br \/><strong>\u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0430 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 1.<\/strong><\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ba\/0dc\/382\/8ba0dc382728c0c8220afcded5d9cb1c.jpg\" alt=\"\u0440\u0438\u0441.1\" title=\"\u0440\u0438\u0441.1\" width=\"664\" height=\"975\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/8ba\/0dc\/382\/8ba0dc382728c0c8220afcded5d9cb1c.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ba\/0dc\/382\/8ba0dc382728c0c8220afcded5d9cb1c.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.1<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Arduino Nano \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u043b\u0430\u0442\u0443 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f (\u0440\u0438\u0441. 2). \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u0435\u0441\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f LCD-\u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0438\u043d\u0430 \u0440\u044f\u0434\u043e\u043c \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0438\u043d GND \u0438 +5V.  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e2d\/e4b\/c50\/e2de4bc50150412b7e4e798132959815.jpg\" alt=\"\u0440\u0438\u0441.2\" title=\"\u0440\u0438\u0441.2\" width=\"811\" height=\"816\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/e2d\/e4b\/c50\/e2de4bc50150412b7e4e798132959815.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e2d\/e4b\/c50\/e2de4bc50150412b7e4e798132959815.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.2<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Arduino IDE. \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 LiquidCrystal I2C, \u0430\u0432\u0442\u043e\u0440 Frank de Brabander, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0437\u0430\u0439\u0434\u044f \u0432 Tools &#8212; Manage Libraries\u2026. (\u0440\u0438\u0441.3).  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/80a\/17c\/c8a\/80a17cc8aeaf9e245f5a1d045ad2de8e.jpg\" alt=\"\u0440\u0438\u0441.3\" title=\"\u0440\u0438\u0441.3\" width=\"719\" height=\"835\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/80a\/17c\/c8a\/80a17cc8aeaf9e245f5a1d045ad2de8e.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/80a\/17c\/c8a\/80a17cc8aeaf9e245f5a1d045ad2de8e.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.3<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438: I2C LCD 2004 \u0434\u0438\u0441\u043f\u043b\u0435\u0439, \u0434\u0432\u0435 \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, Arduino Nano \u0438\u043b\u0438 Uno. \u0418 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 Arduino IDE, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 LiquidCrystal I2C.  <\/p>\n<p><strong>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 (\u0440\u0438\u0441.4) \u0438 (\u0440\u0438\u0441.1).<\/strong>  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/378\/f20\/578\/378f20578df9f809ea936be3ffc55ae2.jpg\" alt=\"\u0440\u0438\u0441.4\" title=\"\u0440\u0438\u0441.4\" width=\"1200\" height=\"959\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/378\/f20\/578\/378f20578df9f809ea936be3ffc55ae2.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/378\/f20\/578\/378f20578df9f809ea936be3ffc55ae2.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.4<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041a\u043d\u043e\u043f\u043a\u0430 1<\/strong>. \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 (0,4 \u0441\u0435\u043a) \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438.<br \/><strong>\u041a\u043d\u043e\u043f\u043a\u0430 1<\/strong>. \u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0437\u0430\u0434\u0430\u0451\u0442 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435.<\/p>\n<p><strong>\u041a\u043d\u043e\u043f\u043a\u0430 2<\/strong>. \u041f\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u043c\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u0438\u0434\u0451\u0442 \u0432\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u0438. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u0432 \u043d\u0438\u0437, \u0434\u043e\u0439\u0434\u044f \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0438\u0437\u0430, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u044f\u0447\u0435\u0439\u043a\u0443.<br \/><strong>\u041a\u043d\u043e\u043f\u043a\u0430 2<\/strong>. \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u0438\u043b\u0438 \u043f\u0430\u0447\u043a\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Burst \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 9 Arduino.<\/p>\n<p><strong>Pulse<\/strong>. \u0417\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e 16000 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p><strong>Pause<\/strong>. \u0417\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b \u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e 16000 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p><strong>Mode<\/strong>. \u0417\u0434\u0435\u0441\u044c \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e Burst, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 1.<\/p>\n<p><strong>Burst.<\/strong> \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0449\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0442\u043e\u0438\u0442 1, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b, \u2014 \u044d\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c 2, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0432\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u0434\u0432\u0435 \u043f\u0430\u0443\u0437\u044b. \u0415\u0441\u043b\u0438 3, \u0442\u043e \u0442\u0440\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u0442\u0440\u0438 \u043f\u0430\u0443\u0437\u044b \u0438 \u0442.\u0434. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0442\u0447\u0451\u0442\u043b\u0438\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438\u043c\u0435\u0440: (\u0440\u0438\u0441.6,7).<\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u0433\u0434\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e Mode, \u0438 \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 1. \u0420\u0435\u0436\u0438\u043c Burst \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043d\u0430 <strong>Continuous<\/strong> (\u0440\u0438\u0441.5).<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/018\/977\/c7a\/018977c7ab38f3cef5bbf124fe3579d0.jpg\" alt=\"\u0440\u0438\u0441.5\" title=\"\u0440\u0438\u0441.5\" width=\"1200\" height=\"959\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/018\/977\/c7a\/018977c7ab38f3cef5bbf124fe3579d0.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/018\/977\/c7a\/018977c7ab38f3cef5bbf124fe3579d0.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.5<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 Continuous \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0430\u0443\u0437. \u0418 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b.  <br \/>\u0420\u0435\u0436\u0438\u043c Continuous \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0411\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u043e\u0439.<\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0441 \u0446\u0435\u043b\u044c\u044e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u043b\u0435\u0432\u043e\u043c\u0443 \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0443, \u0430 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u0443 \u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0437\u0430\u0442\u0432\u043e\u0440\u0430. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 6N137 \u0438 TC4420. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f: \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0433\u0434\u0430 MOSFET \u0437\u0430\u043a\u0440\u044b\u0442, \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0435 9 Arduino \u2014 5 \u0432\u043e\u043b\u044c\u0442.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b.<\/strong> \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 1 \u0438\u043c\u043f\u0443\u043b\u044c\u0441 (Pulse) \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e 100 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 (\u0440\u0438\u04416).<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a63\/abb\/65e\/a63abb65ee1a9df22bf4cc1d643a1daa.jpg\" alt=\"\u0440\u0438\u0441.6\" title=\"\u0440\u0438\u0441.6\" width=\"800\" height=\"480\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/a63\/abb\/65e\/a63abb65ee1a9df22bf4cc1d643a1daa.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a63\/abb\/65e\/a63abb65ee1a9df22bf4cc1d643a1daa.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.6<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b.<\/strong> \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 3 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (Pulse) 100 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (Pause) 50 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043f\u0430\u0443\u0437\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f (\u0440\u0438\u0441. 7).  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0ac\/f3e\/51b\/0acf3e51b59db3ff26e54715e7b53319.jpg\" alt=\"\u0440\u0438\u0441.7\" title=\"\u0440\u0438\u0441.7\" width=\"800\" height=\"480\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/0ac\/f3e\/51b\/0acf3e51b59db3ff26e54715e7b53319.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0ac\/f3e\/51b\/0acf3e51b59db3ff26e54715e7b53319.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.7<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b.<\/strong> \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Continuous. 200 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (Pulse) \u0438 450 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (Pause), \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0440\u0435\u0436\u0438\u043c (\u0440\u0438\u0441. 8).  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ee\/4c6\/33d\/8ee4c633d7d44bb991c24594e3ba3b8b.jpg\" alt=\"\u0440\u0438\u0441.8\" title=\"\u0440\u0438\u0441.8\" width=\"800\" height=\"480\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/8ee\/4c6\/33d\/8ee4c633d7d44bb991c24594e3ba3b8b.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8ee\/4c6\/33d\/8ee4c633d7d44bb991c24594e3ba3b8b.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.8<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 Arduino IDE. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Arduino Nano \u0447\u0435\u0440\u0435\u0437 USB-\u043a\u0430\u0431\u0435\u043b\u044c \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443, \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Arduino IDE, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 Arduino Nano\/Uno, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 COM-\u043f\u043e\u0440\u0442 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 Arduino Nano\/Uno. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430 (\u0440\u0438\u0441. 9). \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u0434, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445\u0443 &#171;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430&#187; (Upload).  <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ffe\/143\/60d\/ffe14360d7c639712ac4460a5168a700.jpg\" alt=\"\u0440\u0438\u0441.9\" title=\"\u0440\u0438\u0441.9\" width=\"474\" height=\"792\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/ffe\/143\/60d\/ffe14360d7c639712ac4460a5168a700.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ffe\/143\/60d\/ffe14360d7c639712ac4460a5168a700.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.9<\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0442\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 &#171;0x3F&#187; (\u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a). \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 (\u0440\u0438\u0441. 10).  <\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dda\/00f\/d41\/dda00fd41f498f27743557819effc2f8.jpg\" alt=\"\u0440\u0438\u0441.10\" title=\"\u0440\u0438\u0441.10\" width=\"797\" height=\"100\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/dda\/00f\/d41\/dda00fd41f498f27743557819effc2f8.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dda\/00f\/d41\/dda00fd41f498f27743557819effc2f8.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0440\u0438\u0441.10<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"cpp\">#include &lt;Wire.h&gt;#include &lt;LiquidCrystal_I2C.h&gt;LiquidCrystal_I2C lcd(0x27, 20, 4);  \/\/ \u0410\u0434\u0440\u0435\u0441 I2C \u0434\u0438\u0441\u043f\u043b\u0435\u044f (\u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\/\/ ---------- \u041f\u0438\u043d\u044b ----------const int button1Pin = 3;  \/\/ \u041a\u043d\u043e\u043f\u043a\u0430 1 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b, \u0434\u043b\u0438\u043d\u043d\u043e\u0435: \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0446\u0438\u0444\u0440\u0443)const int button2Pin = 4;  \/\/ \u041a\u043d\u043e\u043f\u043a\u0430 2 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435: \u0432\u044b\u0431\u043e\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0434\u043b\u0438\u043d\u043d\u043e\u0435: \u0437\u0430\u043f\u0443\u0441\u043a Burst)const int outputPin = 9;   \/\/ \u0412\u044b\u0445\u043e\u0434 \u043d\u0430 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u0443 (\u0428\u0418\u041c\/\u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b)\/\/ ---------- \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 ----------unsigned long pulseWidth = 100;  \/\/ \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (\u043c\u043a\u0441)unsigned long pauseWidth = 100;  \/\/ \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (\u043c\u043a\u0441)unsigned long burstCount = 1;    \/\/ \u0427\u0438\u0441\u043b\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u043f\u0430\u0447\u043a\u0435 (Burst)\/\/ \u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 (6 \u0446\u0438\u0444\u0440)char pulseDigits[6] = {'0', '0', '0', '1', '0', '0'};  \/\/ \"000100\" -&gt; 100 \u043c\u043a\u0441char pauseDigits[6] = {'0', '0', '0', '1', '0', '0'};char burstDigits[6] = {'0', '0', '0', '0', '0', '1'};  \/\/ \"000001\" -&gt; 1 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\/\/ ---------- \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 ----------int currentSection = 0;  \/\/ 0 = pulse, 1 = pause, 2 = mode, 3 = burst count (\u0442\u043e\u043b\u044c\u043a\u043e \u0432 Burst-\u0440\u0435\u0436\u0438\u043c\u0435)int currentDigit = 0;    \/\/ \u0418\u043d\u0434\u0435\u043a\u0441 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0446\u0438\u0444\u0440\u044b (0-5)int mode = 1;            \/\/ 0 = Continuous, 1 = Burstvolatile bool generating = false;  \/\/ \u0424\u043b\u0430\u0433 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0447\u043a\u0438\/\/ ---------- \u0414\u0440\u0435\u0431\u0435\u0437\u0433 \u043a\u043d\u043e\u043f\u043e\u043a ----------int button1State = HIGH, lastButton1Reading = HIGH;unsigned long lastDebounceTime1 = 0, button1PressTime = 0;int button2State = HIGH, lastButton2Reading = HIGH;unsigned long lastDebounceTime2 = 0, button2PressTime = 0;const unsigned long debounceDelay = 50;       \/\/ \u043c\u0441const unsigned long longPressThreshold = 400; \/\/ \u043c\u0441 (\u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438)\/\/ ---------- \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 ----------unsigned long getValue(char* digits) {  unsigned long val = 0;  for (int i = 0; i &lt; 6; i++) {    val = val * 10 + (digits[i] - '0');  }  return (val == 0) ? 1 : val;  \/\/ 000000 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a 1 \u043c\u043a\u0441}\/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0428\u0418\u041c (\u0440\u0435\u0436\u0438\u043c Continuous)void configureTimer() {  unsigned long period_us = pulseWidth + pauseWidth;  if (period_us &gt; 1000000) period_us = 1000000;  \/\/ \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 1 \u0441\u0435\u043a  uint16_t prescaler;  uint8_t cs_bits;  double tick_us;  if (period_us &lt;= 4096) {    prescaler = 1;     cs_bits = 0b001; tick_us = 0.0625;  } else if (period_us &lt;= 32768) {    prescaler = 8;     cs_bits = 0b010; tick_us = 0.5;  } else if (period_us &lt;= 262144) {    prescaler = 64;    cs_bits = 0b011; tick_us = 4.0;  } else if (period_us &lt;= 1048576) {    prescaler = 256;   cs_bits = 0b100; tick_us = 16.0;  } else {    prescaler = 1024;  cs_bits = 0b101; tick_us = 64.0;  }  double clock_mhz = 16.0;  double ticks_period = (period_us * clock_mhz) \/ prescaler;  uint16_t icr = round(ticks_period) - 1;  if (icr &lt; 1) icr = 1;  double ticks_high = (pulseWidth * clock_mhz) \/ prescaler;  uint16_t ocr = round(ticks_high) - 1;  if (ocr &gt; icr) ocr = icr;  if (ocr &lt; 0) ocr = 0;  noInterrupts();  TCCR1A = 0;  TCCR1B = 0;  TCNT1  = 0;  ICR1   = icr;  OCR1A  = ocr;  \/\/ \u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 fast PWM (\u0447\u0442\u043e\u0431\u044b HIGH \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 MOSFET)  TCCR1A = (1 &lt;&lt; COM1A1) | (1 &lt;&lt; COM1A0) | (1 &lt;&lt; WGM11);  TCCR1B = (1 &lt;&lt; WGM13) | (1 &lt;&lt; WGM12) | cs_bits;  interrupts();}\/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0441 \u043c\u0438\u0433\u0430\u044e\u0449\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440\u043e\u043cvoid updateDisplay() {  lcd.clear();  lcd.setCursor(0, 0);  lcd.print(\"Pulse: \");  for (int i = 0; i &lt; 6; i++) lcd.print(pulseDigits[i]);  lcd.print(\" us\");  lcd.setCursor(0, 1);  lcd.print(\"Pause: \");  for (int i = 0; i &lt; 6; i++) lcd.print(pauseDigits[i]);  lcd.print(\" us\");  lcd.setCursor(0, 2);  lcd.print(\"Mode: \");  if (mode == 0) lcd.print(\"Continuous\");  else lcd.print(\"Burst\");  if (mode == 1) {    lcd.setCursor(0, 3);    lcd.print(\"Burst: \");    for (int i = 0; i &lt; 6; i++) lcd.print(burstDigits[i]);  }  \/\/ \u041c\u0438\u0433\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441\u043e\u0440  int row, col;  if (currentSection == 0) { row = 0; col = 7 + currentDigit; }  else if (currentSection == 1) { row = 1; col = 7 + currentDigit; }  else if (currentSection == 2) { row = 2; col = 6; }  else { row = 3; col = 7 + currentDigit; }  lcd.setCursor(col, row);  lcd.blink();}\/\/ ---------- \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ----------void setup() {  pinMode(button1Pin, INPUT_PULLUP);  pinMode(button2Pin, INPUT_PULLUP);  pinMode(outputPin, OUTPUT);  \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435: \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u044b \u0433\u043e\u0440\u0438\u0442 -&gt; \u0432\u044b\u0445\u043e\u0434 LOW -&gt; MOSFET \u0437\u0430\u043a\u0440\u044b\u0442  digitalWrite(outputPin, HIGH);  lcd.init();  lcd.backlight();  pulseWidth = getValue(pulseDigits);  pauseWidth = getValue(pauseDigits);  burstCount = getValue(burstDigits);  if (mode == 0) configureTimer();  \/\/ \u0415\u0441\u043b\u0438 Continuous, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440  updateDisplay();}\/\/ ---------- \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b ----------void loop() {  \/\/ \ud83d\udd18 \u041a\u043d\u043e\u043f\u043a\u0430 1 (\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439)  int reading1 = digitalRead(button1Pin);  if (reading1 != lastButton1Reading) {    lastDebounceTime1 = millis();  }  if ((millis() - lastDebounceTime1) &gt; debounceDelay) {    if (reading1 != button1State) {      button1State = reading1;      if (button1State == LOW) {        button1PressTime = millis();  \/\/ \u043d\u0430\u0436\u0430\u043b\u0438      } else {        \/\/ \u041e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443        unsigned long duration = millis() - button1PressTime;        bool paramsChanged = false;        if (currentSection == 0 || currentSection == 1 || (currentSection == 3 &amp;&amp; mode == 1)) {          char* digits = (currentSection == 0) ? pulseDigits :                         (currentSection == 1) ? pauseDigits : burstDigits;          if (duration &lt; longPressThreshold) {            \/\/ \u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435: \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0446\u0438\u0444\u0440\u0443            digits[currentDigit]++;            if (digits[currentDigit] &gt; '9') digits[currentDigit] = '0';            paramsChanged = true;          } else {            \/\/ \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435: \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0446\u0438\u0444\u0440\u0435            currentDigit = (currentDigit + 1) % 6;          }        } else if (currentSection == 2) {          \/\/ \u0420\u0430\u0437\u0434\u0435\u043b Mode: \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 Continuous\/Burst          if (duration &lt; longPressThreshold) {            mode = (mode + 1) % 2;            paramsChanged = true;          }        }        \/\/ \u0415\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440        if (paramsChanged) {          \/\/ \u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c MOSFET          digitalWrite(outputPin, HIGH);          noInterrupts();          TCCR1A = 0;   \/\/ \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0430          TCCR1B = 0;          interrupts();          generating = false;          pulseWidth = getValue(pulseDigits);          pauseWidth = getValue(pauseDigits);          burstCount = getValue(burstDigits);          if (mode == 0) configureTimer();  \/\/ \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Continuous, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e        }        updateDisplay();      }    }  }  lastButton1Reading = reading1;  \/\/ \ud83d\udd18 \u041a\u043d\u043e\u043f\u043a\u0430 2 (\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a Burst)  int reading2 = digitalRead(button2Pin);  if (reading2 != lastButton2Reading) {    lastDebounceTime2 = millis();  }  if ((millis() - lastDebounceTime2) &gt; debounceDelay) {    if (reading2 != button2State) {      button2State = reading2;      if (button2State == LOW) {        button2PressTime = millis();      } else {        unsigned long duration = millis() - button2PressTime;        if (duration &lt; longPressThreshold) {          \/\/ \u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435: \u0432\u044b\u0431\u043e\u0440 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043c\u0435\u043d\u044e          currentSection = (currentSection + 1) % (mode == 0 ? 3 : 4);          currentDigit = 0;        } else {          \/\/ \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0430\u0447\u043a\u0443 (\u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Burst)          if (mode == 1 &amp;&amp; !generating &amp;&amp; burstCount &gt; 0) {            generating = true;            \/\/ \u0417\u0430\u0434\u0430\u0451\u043c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 (6N137 \u0431\u044b\u0441\u0442\u0440\u0430\u044f)            unsigned long pulseEffective = pulseWidth;            unsigned long pauseEffective = pauseWidth;            for (unsigned long i = 0; i &lt; burstCount; i++) {              \/\/ \u0411\u044b\u0441\u0442\u0440\u044b\u0439 LOW: \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0431\u0438\u0442 1 \u043f\u043e\u0440\u0442\u0430 B              PORTB &amp;= ~(1 &lt;&lt; PB1);              delayMicroseconds(pulseEffective);                            \/\/ \u0411\u044b\u0441\u0442\u0440\u044b\u0439 HIGH: \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0431\u0438\u0442 1 \u043f\u043e\u0440\u0442\u0430 B              PORTB |= (1 &lt;&lt; PB1);                            if (i &lt; burstCount - 1) {                delayMicroseconds(pauseEffective);              }            }            generating = false;          }        }        updateDisplay();      }    }  }  lastButton2Reading = reading2;  \/\/ \u0415\u0441\u043b\u0438 \u0440\u0435\u0436\u0438\u043c Continuous \u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u044b\u043b \u0441\u0431\u0440\u043e\u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432),  \/\/ \u043e\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u043d\u043e \u0432 setup() \u0438 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043c\u044b \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c.}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1064696\/\">https:\/\/habr.com\/ru\/articles\/1064696\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0438 \u043e\u043f\u0438\u0441\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432.\u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0445 \u0428\u0418\u041c-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0449\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430.\u0412\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0434. \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f Arduino Nano\/Uno, \u0434\u0432\u0435 \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, LCD-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u041f\u041a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Arduino IDE.\u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0430 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 1.\u0440\u0438\u0441.1\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Arduino Nano \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u043b\u0430\u0442\u0443 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f (\u0440\u0438\u0441. 2). \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u0435\u0441\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f LCD-\u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0438\u043d\u0430 \u0440\u044f\u0434\u043e\u043c \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0438\u043d GND \u0438 +5V.  \u0440\u0438\u0441.2\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Arduino IDE. \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 LiquidCrystal I2C, \u0430\u0432\u0442\u043e\u0440 Frank de Brabander, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0437\u0430\u0439\u0434\u044f \u0432 Tools &#8212; Manage Libraries\u2026. (\u0440\u0438\u0441.3).  \u0440\u0438\u0441.3\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438: I2C LCD 2004 \u0434\u0438\u0441\u043f\u043b\u0435\u0439, \u0434\u0432\u0435 \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, Arduino Nano \u0438\u043b\u0438 Uno. \u0418 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 Arduino IDE, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 LiquidCrystal I2C.  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 (\u0440\u0438\u0441.4) \u0438 (\u0440\u0438\u0441.1).  \u0440\u0438\u0441.4\u041a\u043d\u043e\u043f\u043a\u0430 1. \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 (0,4 \u0441\u0435\u043a) \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438.\u041a\u043d\u043e\u043f\u043a\u0430 1. \u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0437\u0430\u0434\u0430\u0451\u0442 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0435.\u041a\u043d\u043e\u043f\u043a\u0430 2. \u041f\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u043c\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u0438\u0434\u0451\u0442 \u0432\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u0438. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u0432 \u043d\u0438\u0437, \u0434\u043e\u0439\u0434\u044f \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0438\u0437\u0430, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u044f\u0447\u0435\u0439\u043a\u0443.\u041a\u043d\u043e\u043f\u043a\u0430 2. \u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u0432\u044b\u0434\u0430\u0451\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u0438\u043b\u0438 \u043f\u0430\u0447\u043a\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Burst \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 9 Arduino.Pulse. \u0417\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e 16000 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434.Pause. \u0417\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b \u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e 16000 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434.Mode. \u0417\u0434\u0435\u0441\u044c \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e Burst, \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 1.Burst. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0443\u0449\u0438\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0442\u043e\u0438\u0442 1, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b, \u2014 \u044d\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c 2, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0432\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u0434\u0432\u0435 \u043f\u0430\u0443\u0437\u044b. \u0415\u0441\u043b\u0438 3, \u0442\u043e \u0442\u0440\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 \u0438 \u0442\u0440\u0438 \u043f\u0430\u0443\u0437\u044b \u0438 \u0442.\u0434. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0442\u0447\u0451\u0442\u043b\u0438\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438\u043c\u0435\u0440: (\u0440\u0438\u0441.6,7).\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u0433\u0434\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e Mode, \u0438 \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 1. \u0420\u0435\u0436\u0438\u043c Burst \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043d\u0430 Continuous (\u0440\u0438\u0441.5).\u0440\u0438\u0441.5\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 Continuous \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0430\u0443\u0437. \u0418 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b.  \u0420\u0435\u0436\u0438\u043c Continuous \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0411\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u043e\u0439.\u0414\u0430\u043d\u043d\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0441 \u0446\u0435\u043b\u044c\u044e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u043b\u0435\u0432\u043e\u043c\u0443 \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0443, \u0430 \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u0443 \u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0437\u0430\u0442\u0432\u043e\u0440\u0430. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 6N137 \u0438 TC4420. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f: \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0433\u0434\u0430 MOSFET \u0437\u0430\u043a\u0440\u044b\u0442, \u043d\u0430 \u0432\u044b\u0432\u043e\u0434\u0435 9 Arduino \u2014 5 \u0432\u043e\u043b\u044c\u0442.\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 1 \u0438\u043c\u043f\u0443\u043b\u044c\u0441 (Pulse) \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e 100 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 (\u0440\u0438\u04416).\u0440\u0438\u0441.6\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0430\u0451\u0442 3 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0438 \u043f\u0430\u0443\u0437. \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (Pulse) 100 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (Pause) 50 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0430\u0443\u0437\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043f\u0430\u0443\u0437\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f (\u0440\u0438\u0441. 7).  \u0440\u0438\u0441.7\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Continuous. 200 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (Pulse) \u0438 450 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (Pause), \u2014 \u044d\u0442\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0440\u0435\u0436\u0438\u043c (\u0440\u0438\u0441. 8).  \u0440\u0438\u0441.8\u0414\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 Arduino IDE. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Arduino Nano \u0447\u0435\u0440\u0435\u0437 USB-\u043a\u0430\u0431\u0435\u043b\u044c \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443, \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Arduino IDE, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 Arduino Nano\/Uno, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 COM-\u043f\u043e\u0440\u0442 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 Arduino Nano\/Uno. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u043d\u0430 (\u0440\u0438\u0441. 9). \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u0434, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445\u0443 &#171;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430&#187; (Upload).  \u0440\u0438\u0441.9\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0442\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 &#171;0x3F&#187; (\u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a). \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 (\u0440\u0438\u0441. 10).  \u0440\u0438\u0441.10#include &lt;Wire.h&gt;#include &lt;LiquidCrystal_I2C.h&gt;LiquidCrystal_I2C lcd(0x27, 20, 4);  \/\/ \u0410\u0434\u0440\u0435\u0441 I2C \u0434\u0438\u0441\u043f\u043b\u0435\u044f (\u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438)\/\/ &#8212;&#8212;&#8212;- \u041f\u0438\u043d\u044b &#8212;&#8212;&#8212;-const int button1Pin = 3;  \/\/ \u041a\u043d\u043e\u043f\u043a\u0430 1 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b, \u0434\u043b\u0438\u043d\u043d\u043e\u0435: \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0446\u0438\u0444\u0440\u0443)const int button2Pin = 4;  \/\/ \u041a\u043d\u043e\u043f\u043a\u0430 2 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435: \u0432\u044b\u0431\u043e\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0434\u043b\u0438\u043d\u043d\u043e\u0435: \u0437\u0430\u043f\u0443\u0441\u043a Burst)const int outputPin = 9;   \/\/ \u0412\u044b\u0445\u043e\u0434 \u043d\u0430 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u0443 (\u0428\u0418\u041c\/\u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b)\/\/ &#8212;&#8212;&#8212;- \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 &#8212;&#8212;&#8212;-unsigned long pulseWidth = 100;  \/\/ \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430 (\u043c\u043a\u0441)unsigned long pauseWidth = 100;  \/\/ \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0443\u0437\u044b (\u043c\u043a\u0441)unsigned long burstCount = 1;    \/\/ \u0427\u0438\u0441\u043b\u043e \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u043f\u0430\u0447\u043a\u0435 (Burst)\/\/ \u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 (6 \u0446\u0438\u0444\u0440)char pulseDigits[6] = {&#8216;0&#8217;, &#8216;0&#8217;, &#8216;0&#8217;, &#8216;1&#8217;, &#8216;0&#8217;, &#8216;0&#8217;};  \/\/ &#171;000100&#187; -&gt; 100 \u043c\u043a\u0441char pauseDigits[6] = {&#8216;0&#8217;, &#8216;0&#8217;, &#8216;0&#8217;, &#8216;1&#8217;, &#8216;0&#8217;, &#8216;0&#8217;};char burstDigits[6] = {&#8216;0&#8217;, &#8216;0&#8217;, &#8216;0&#8217;, &#8216;0&#8217;, &#8216;0&#8217;, &#8216;1&#8217;};  \/\/ &#171;000001&#187; -&gt; 1 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\/\/ &#8212;&#8212;&#8212;- \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 &#8212;&#8212;&#8212;-int currentSection = 0;  \/\/ 0 = pulse, 1 = pause, 2 = mode, 3 = burst count (\u0442\u043e\u043b\u044c\u043a\u043e \u0432 Burst-\u0440\u0435\u0436\u0438\u043c\u0435)int currentDigit = 0;    \/\/ \u0418\u043d\u0434\u0435\u043a\u0441 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0446\u0438\u0444\u0440\u044b (0-5)int mode = 1;            \/\/ 0 = Continuous, 1 = Burstvolatile bool generating = false;  \/\/ \u0424\u043b\u0430\u0433 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0447\u043a\u0438\/\/ &#8212;&#8212;&#8212;- \u0414\u0440\u0435\u0431\u0435\u0437\u0433 \u043a\u043d\u043e\u043f\u043e\u043a &#8212;&#8212;&#8212;-int button1State = HIGH, lastButton1Reading = HIGH;unsigned long lastDebounceTime1 = 0, button1PressTime = 0;int button2State = HIGH, lastButton2Reading = HIGH;unsigned long lastDebounceTime2 = 0, button2PressTime = 0;const unsigned long debounceDelay = 50;       \/\/ \u043c\u0441const unsigned long longPressThreshold = 400; \/\/ \u043c\u0441 (\u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438)\/\/ &#8212;&#8212;&#8212;- \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;-unsigned long getValue(char* digits) {  unsigned long val = 0;  for (int i = 0; i &lt; 6; i++) {    val = val * 10 + (digits[i] &#8212; &#8216;0&#8217;);  }  return (val == 0) ? 1 : val;  \/\/ 000000 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a 1 \u043c\u043a\u0441}\/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0428\u0418\u041c (\u0440\u0435\u0436\u0438\u043c Continuous)void configureTimer() {  unsigned long period_us = pulseWidth + pauseWidth;  if (period_us &gt; 1000000) period_us = 1000000;  \/\/ \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 1 \u0441\u0435\u043a  uint16_t prescaler;  uint8_t cs_bits;  double tick_us;  if (period_us &lt;= 4096) {    prescaler = 1;     cs_bits = 0b001; tick_us = 0.0625;  } else if (period_us &lt;= 32768) {    prescaler = 8;     cs_bits = 0b010; tick_us = 0.5;  } else if (period_us &lt;= 262144) {    prescaler = 64;    cs_bits = 0b011; tick_us = 4.0;  } else if (period_us &lt;= 1048576) {    prescaler = 256;   cs_bits = 0b100; tick_us = 16.0;  } else {    prescaler = 1024;  cs_bits = 0b101; tick_us = 64.0;  }  double clock_mhz = 16.0;  double ticks_period = (period_us * clock_mhz) \/ prescaler;  uint16_t icr = round(ticks_period) &#8212; 1;  if (icr &lt; 1) icr = 1;  double ticks_high = (pulseWidth * clock_mhz) \/ prescaler;  uint16_t ocr = round(ticks_high) &#8212; 1;  if (ocr &gt; icr) ocr = icr;  if (ocr &lt; 0) ocr = 0;  noInterrupts();  TCCR1A = 0;  TCCR1B = 0;  TCNT1  = 0;  ICR1   = icr;  OCR1A  = ocr;  \/\/ \u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 fast PWM (\u0447\u0442\u043e\u0431\u044b HIGH \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 MOSFET)  TCCR1A = (1 &lt;&lt; COM1A1) | (1 &lt;&lt; COM1A0) | (1 &lt;&lt; WGM11);  TCCR1B = (1 &lt;&lt; WGM13) | (1 &lt;&lt; WGM12) | cs_bits;  interrupts();}\/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0441 \u043c\u0438\u0433\u0430\u044e\u0449\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440\u043e\u043cvoid updateDisplay() {  lcd.clear();  lcd.setCursor(0, 0);  lcd.print(&#171;Pulse: &#171;);  for (int i = 0; i &lt; 6; i++) lcd.print(pulseDigits[i]);  lcd.print(&#187; us&#187;);  lcd.setCursor(0, 1);  lcd.print(&#171;Pause: &#171;);  for (int i = 0; i &lt; 6; i++) lcd.print(pauseDigits[i]);  lcd.print(&#187; us&#187;);  lcd.setCursor(0, 2);  lcd.print(&#171;Mode: &#171;);  if (mode == 0) lcd.print(&#171;Continuous&#187;);  else lcd.print(&#171;Burst&#187;);  if (mode == 1) {    lcd.setCursor(0, 3);    lcd.print(&#171;Burst: &#171;);    for (int i = 0; i &lt; 6; i++) lcd.print(burstDigits[i]);  }  \/\/ \u041c\u0438\u0433\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441\u043e\u0440  int row, col;  if (currentSection == 0) { row = 0; col = 7 + currentDigit; }  else if (currentSection == 1) { row = 1; col = 7 + currentDigit; }  else if (currentSection == 2) { row = 2; col = 6; }  else { row = 3; col = 7 + currentDigit; }  lcd.setCursor(col, row);  lcd.blink();}\/\/ &#8212;&#8212;&#8212;- \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f &#8212;&#8212;&#8212;-void setup() {  pinMode(button1Pin, INPUT_PULLUP);  pinMode(button2Pin, INPUT_PULLUP);  pinMode(outputPin, OUTPUT);  \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435: \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043e\u043f\u0442\u043e\u043f\u0430\u0440\u044b \u0433\u043e\u0440\u0438\u0442 -&gt; \u0432\u044b\u0445\u043e\u0434 LOW -&gt; MOSFET \u0437\u0430\u043a\u0440\u044b\u0442  digitalWrite(outputPin, HIGH);  lcd.init();  lcd.backlight();  pulseWidth = getValue(pulseDigits);  pauseWidth = getValue(pauseDigits);  burstCount = getValue(burstDigits);  if (mode == 0) configureTimer();  \/\/ \u0415\u0441\u043b\u0438 Continuous, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440  updateDisplay();}\/\/ &#8212;&#8212;&#8212;- \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b &#8212;&#8212;&#8212;-void loop() {  \/\/ \ud83d\udd18 \u041a\u043d\u043e\u043f\u043a\u0430 1 (\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439)  int reading1 = digitalRead(button1Pin);  if (reading1 != lastButton1Reading) {    lastDebounceTime1 = millis();  }  if ((millis() &#8212; lastDebounceTime1) &gt; debounceDelay) {    if (reading1 != button1State) {      button1State = reading1;      if (button1State == LOW) {        button1PressTime = millis();  \/\/ \u043d\u0430\u0436\u0430\u043b\u0438      } else {        \/\/ \u041e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443        unsigned long duration = millis() &#8212; button1PressTime;        bool paramsChanged = false;        if (currentSection == 0 || currentSection == 1 || (currentSection == 3 &amp;&amp; mode == 1)) {          char* digits = (currentSection == 0) ? pulseDigits :                         (currentSection == 1) ? pauseDigits : burstDigits;          if (duration &lt; longPressThreshold)&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-489101","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/489101","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=489101"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/489101\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}