{"id":53367,"date":"2018-11-25T13:50:21","date_gmt":"2018-11-25T07:50:21","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=53367"},"modified":"2022-01-11T19:51:32","modified_gmt":"2022-01-11T13:51:32","slug":"%d0%bf%d1%80%d0%be%d1%81%d1%82%d0%be%d0%b9-%d1%81%d0%b5%d0%ba%d1%83%d0%bd%d0%b4%d0%be%d0%bc%d0%b5%d1%80-%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-%d0%b8%d0%bd%d0%b4%d0%b8%d0%ba%d0%b0%d1%86%d0%b8%d0%b8-74","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=53367","title":{"rendered":"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440 (\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 74\u041d\u0421595) (Arduino)"},"content":{"rendered":"<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <strong><a href=\"http:\/\/rcl-radio.ru\/?p=53350\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a><\/strong>\u00a0\u0431\u044b\u043b\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f\u00a0\u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0433\u043e 7-\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u043d\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 74\u041d\u0421595. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u044b\u0448\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0427\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440 \u0441\u043e\u0441\u0442\u0440\u043e\u0438\u0442 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 74\u041d\u0421595, \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u043f\u043b\u0430\u0442\u044b Arduino Nano. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f 00,00, \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442\u0441\u0447\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 0,01 \u0441 \u0434\u043e 99,99 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e 0,1 \u0441\u0435\u043a. \u0441 100,0 \u0434\u043e 999,9 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0434\u0430\u043b\u0435\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u0430 \u0440\u0430\u0432\u043d\u043e 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0435.\u00a0 \u041f\u0440\u0438 \u0432\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0441\u0447\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u0440\u0435\u0442\u044c\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u0430 9999 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53368\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/69123687231.png\" alt=\"\" width=\"625\" height=\"323\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/69123687231.png 625w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/69123687231-200x103.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/69123687231-500x258.png 500w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;MsTimer2.h&gt;<\/span>\r\n\u00a0\r\nbyte razr<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0x08, 0x04, 0x02, 0x01, 0x00<span style=\"color: #66cc66;\">}<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 0123         <\/span>\r\nbyte digit<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span> = <span style=\"color: #66cc66;\">{<\/span>0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90, 0xFF<span style=\"color: #66cc66;\">}<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 0123456789 <\/span>\r\nbyte point = 0x80; <span style=\"color: #808080; font-style: italic;\">\/\/\u0442\u043e\u0447\u043a\u0430<\/span>\r\nfloat k=<span style=\"color: #cc66cc;\">0.000<\/span>;\r\n<span style=\"color: #0066cc;\">int<\/span> k1,t,n;\r\nbyte a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\nunsigned long <span style=\"color: #0066cc;\">time<\/span>,time1;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">set<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>, to_Timer<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434 10...20 \u043c\u0441<\/span>\r\n  MsTimer2::<span style=\"color: #0066cc;\">start<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u0442\u0430\u0440\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ RCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ SCLK<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ DIO<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u0442\u0430\u0440\u0442 \/ \u0441\u0442\u043e\u043f<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> to_Timer<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>n==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #0066cc;\">time<\/span>++;<span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>n==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time1<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>n=<span style=\"color: #cc66cc;\">1<\/span>;time1=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>n==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time1<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>n=<span style=\"color: #cc66cc;\">2<\/span>;<span style=\"color: #0066cc;\">time<\/span>=<span style=\"color: #0066cc;\">time<\/span>;time1=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>n==<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time1<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #0066cc;\">time<\/span>=<span style=\"color: #cc66cc;\">0<\/span>;n=<span style=\"color: #cc66cc;\">0<\/span>;time1=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>k1=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>k<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;t=<span style=\"color: #cc66cc;\">2<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>k1=k;t=<span style=\"color: #cc66cc;\">4<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">%<\/span>10;\r\n  a<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">]<\/span>=k1<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">%<\/span>10;\r\n  <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">5<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>i==t<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span> ^ point<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, digit<span style=\"color: #66cc66;\">[<\/span>a<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  shiftOut<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, MSBFIRST, razr<span style=\"color: #66cc66;\">[<\/span>i<span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>, HIGH<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  k=<span style=\"color: #66cc66;\">(<\/span>float<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #0066cc;\">time<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span>;\r\n  delay(5); \/\/ \u043f\u0430\u0443\u0437\u043e\u0439 \u043e\u0442 1 \u0434\u043e 10 \u043c\u0441 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0441\u0432\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 1 - \u043c\u0430\u043a\u0441. \u044f\u0440\u043a\u043e\u0441\u0442\u044c, 10 - \u043c\u0438\u043d\u0438\u043c.\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u043a\u0435\u0442\u0447 \u0441 \u043a\u0435\u0442\u0447\u0430\u043c\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 &#171;<a href=\"http:\/\/rcl-radio.ru\/?p=53350\">\u041c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 74\u041d\u0421595 (Arduino)<\/a>&#187; , \u0442\u043e \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043a\u043e\u0434 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u043d \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<strong>to_Timer()<\/strong> \u0438 \u043f\u043e\u043c\u0435\u0449\u0435\u043d \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>loop()<\/strong>\u00a0, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0442\u043e\u0447\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 10 \u043c\u0441, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e millis().<\/p>\n<p>\u0421\u043a\u0435\u0442\u0447\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\u00a0&#171;<a href=\"http:\/\/rcl-radio.ru\/?p=53350\">\u041c\u043e\u0434\u0443\u043b\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 74\u041d\u0421595 (Arduino)<\/a>&#187; \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u043f\u0440\u043e\u0441\u0430 (\u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u0440.), \u0432 \u044d\u0442\u0438\u0445 \u0441\u043a\u0435\u0442\u0447\u0430\u0445 \u043a\u043e\u0434 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u043c\u0435\u0449\u0435\u043d \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0442\u0430\u0439\u043c\u0435\u0440\u0430 \u0438 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>loop()<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76536873429.png\" width=\"352\" height=\"263\" \/><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/762136876219.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-53370\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/762136876219.png\" alt=\"\" width=\"306\" height=\"150\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/762136876219.png 382w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/762136876219-200x98.png 200w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53371\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76586912.png\" alt=\"\" width=\"321\" height=\"168\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76586912.png 321w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/11\/76586912-200x105.png 200w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/><strong>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 MsTimer2.h &#8212; <a class=\"urllink\" href=\"http:\/\/playground.arduino.cc\/uploads\/Main\/MsTimer2.zip\" rel=\"nofollow\">MsTimer2.zip<\/a><\/strong><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u00a0\u0431\u044b\u043b\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f\u00a0\u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 4-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0433\u043e 7-\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u043d\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 74\u041d\u0421595. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u044b\u0448\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438. \u0427\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440 \u0441\u043e\u0441\u0442\u0440\u043e\u0438\u0442 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438 74\u041d\u0421595, \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u043f\u043b\u0430\u0442\u044b Arduino Nano. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u043e\u043c\u0435\u0440\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f 00,00, \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":53371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17,18],"tags":[],"class_list":["post-53367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17","category-18"],"views":8692,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53367","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=53367"}],"version-history":[{"count":11,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53367\/revisions"}],"predecessor-version":[{"id":111470,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/53367\/revisions\/111470"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/53371"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53367"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}