{"id":83659,"date":"2020-09-23T20:01:37","date_gmt":"2020-09-23T14:01:37","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=83659"},"modified":"2022-01-08T16:43:55","modified_gmt":"2022-01-08T10:43:55","slug":"%d0%b4%d0%b0%d1%82%d1%87%d0%b8%d0%ba-%d1%82%d0%be%d0%ba%d0%b0-acs758-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=83659","title":{"rendered":"\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u043e\u043a\u0430 ACS758 (Arduino)"},"content":{"rendered":"<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u043e\u043a\u0430 ACS758, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0425\u043e\u043b\u043b\u0430, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b, \u0438 \u043c\u0435\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u0438\u0437\u043a\u043e \u043a \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0443. \u041f\u0440\u0438 \u043f\u0440\u043e\u0442\u0435\u043a\u0430\u043d\u0438\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a, \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0425\u043e\u043b\u043b\u0430 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0430.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192034.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-83660\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192034.png\" alt=\"\" width=\"207\" height=\"177\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192034.png 485w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192034-200x171.png 200w\" sizes=\"auto, (max-width: 207px) 100vw, 207px\" \/><\/a><\/td>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192106.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83661\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192106.png\" alt=\"\" width=\"472\" height=\"334\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192106.png 472w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-192106-200x142.png 200w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0442\u043e\u043a\u0430 \u0438 \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0442\u043e\u0447\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0432\u043d\u0430 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0421\u0438\u043b\u043e\u0432\u044b\u0435 \u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0446\u0435\u043f\u0438 \u0438\u043c\u0435\u044e\u0442 \u0433\u0430\u043b\u044c\u0432\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0440\u0430\u0437\u0432\u044f\u0437\u043a\u0443 \u0434\u043e 3 \u043a\u0412. \u0414\u0430\u0442\u0447\u0438\u043a \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u0435\u0440\u0445\u043d\u0438\u0437\u043a\u043e\u0435 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430, \u043f\u043e\u0440\u044f\u0434\u043a\u0430 100 \u043c\u043a\u041e\u043c. \u0414\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u043e\u043a\u0430 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b, \u043e\u0442 50 \u0434\u043e 200 \u0410. \u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043e\u0442 3,3 \u0434\u043e 5 \u0412. \u0414\u0430\u0442\u0447\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b, \u0442\u0430\u043a \u0438 \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0443\u043b\u044f CJMCU-758.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0443:<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-193236.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83662\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-193236.png\" alt=\"\" width=\"733\" height=\"315\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-193236.png 733w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-193236-200x86.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-193236-500x215.png 500w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0439 \u0442\u043e\u043a, \u0431\u044b\u0432\u0430\u044e\u0442 \u043e\u0434\u043d\u043e \u0438 \u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435, \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u0412\/\u0410 (\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c).<\/p>\n<p>\u0414\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0430\u0442\u0447\u0438\u043a ACS758LCB-050B \u043d\u0430 50 \u0410, \u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439. \u0414\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0430 Arduino Nano, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0435 \u0442\u043e\u043a\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0441\u0435\u043c\u0438\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 (\u043c\u043e\u0434\u0443\u043b\u044c) \u043d\u0430 \u0431\u0430\u0437\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 TM1637. \u041f\u0438\u0442\u0430\u043d\u0438\u0435 (5 \u0412) \u043d\u0430 \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043b\u0430\u0442\u044b Arduino.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195448.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83663\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195448.png\" alt=\"\" width=\"311\" height=\"232\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195448.png 311w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195448-200x149.png 200w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/a><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195605.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83664\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195605.png\" alt=\"\" width=\"266\" height=\"146\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195605.png 266w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195605-200x110.png 200w\" sizes=\"auto, (max-width: 266px) 100vw, 266px\" \/><\/a><\/p>\n<pre><span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">STM32_TM1637<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>  <span style=\"color: #434f54;\">\/\/ <\/span><u><span style=\"color: #434f54;\">http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/STM32_TM1637_V1_3.zip<\/span><\/u>\r\n \u00a0<span style=\"color: #000000;\">STM32_TM1637<\/span> <span style=\"color: #000000;\">tm<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">3<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ CLK, DIO<\/span>\r\n \r\n \u00a0<span style=\"color: #00979c;\">const<\/span> <span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">u_p<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">5.10<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">u_i<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #000000;\">u_sum<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">tm<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">brig<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">5<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #d35400;\">pinMode<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">A0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #00979c;\">INPUT<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">tm<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">print_float<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">50<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">2<\/span> <span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0b01110111<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">tm<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">print_float<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span> <span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0b01000000<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0b01000000<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0b01000000<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0b01000000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #5e6d03;\">for<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #000000;\">10<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">i<\/span><span style=\"color: #434f54;\">++<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">u_i<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">A0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">*<\/span><span style=\"color: #000000;\">u_p<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">1023<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">u_sum<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">u_sum<\/span><span style=\"color: #434f54;\">+<\/span><span style=\"color: #000000;\">u_i<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">50<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0<span style=\"color: #000000;\">u_i<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">u_sum<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">10<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">u_sum<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\r\n \u00a0<span style=\"color: #000000;\">tm<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">print_float<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">u_i<\/span><span style=\"color: #434f54;\">-<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">u_p<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">*<\/span><span style=\"color: #000000;\">25<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n<\/pre>\n<p>\u0412 \u0441\u043a\u0435\u0442\u0447\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430:<\/p>\n<p><span style=\"color: #00979c;\">const<\/span> <span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">u_p<\/span> <span style=\"color: #434f54;\">=<\/span> <strong><span style=\"color: #000000;\">5.10<\/span><\/strong><span style=\"color: #000000;\">;<\/span><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 161px;\">\n<td style=\"width: 50%; height: 161px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195724-e1600869536783.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83668\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195724-e1600869536783.png\" alt=\"\" width=\"250\" height=\"145\" \/><\/a><\/td>\n<td style=\"width: 50%; height: 161px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195735-e1600869530899.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83667\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195735-e1600869530899.png\" alt=\"\" width=\"250\" height=\"136\" \/><\/a><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195742-e1600869525562.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83666\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195742-e1600869525562.png\" alt=\"\" width=\"193\" height=\"110\" \/><\/a><\/td>\n<td style=\"width: 50%; height: 21px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195748-e1600869518885.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83665\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195748-e1600869518885.png\" alt=\"\" width=\"183\" height=\"103\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195651.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83670\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195651.png\" alt=\"\" width=\"458\" height=\"577\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195651.png 458w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195651-200x252.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2020-09-23-195651-397x500.png 397w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u0424\u043e\u0440\u0443\u043c &#8212; <a href=\"http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=203\">http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=203<\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/09\/ACS758.pdf\">ACS758<\/a>.pdf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u043e\u043a\u0430 ACS758, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0425\u043e\u043b\u043b\u0430, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b, \u0438 \u043c\u0435\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u0438\u0437\u043a\u043e \u043a \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0443. \u041f\u0440\u0438 \u043f\u0440\u043e\u0442\u0435\u043a\u0430\u043d\u0438\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a, \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0425\u043e\u043b\u043b\u0430 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0430. \u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0442\u043e\u043a\u0430 \u0438 \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":83661,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,15],"tags":[],"class_list":["post-83659","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-15"],"views":10586,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/83659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83659"}],"version-history":[{"count":3,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/83659\/revisions"}],"predecessor-version":[{"id":111208,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/83659\/revisions\/111208"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/83661"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83659"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}