{"id":45072,"date":"2018-07-02T23:37:28","date_gmt":"2018-07-02T17:37:28","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=45072"},"modified":"2022-01-14T21:22:15","modified_gmt":"2022-01-14T15:22:15","slug":"%d0%b4%d0%b2%d1%83%d1%85%d0%ba%d0%b0%d0%bd%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d0%b9-%d0%b2%d0%be%d0%bb%d1%8c%d1%82-%d0%b0%d0%bc%d0%bf%d0%b5%d1%80%d0%bc%d0%b5%d1%82%d1%80-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=45072","title":{"rendered":"\u0414\u0432\u0443\u0445\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u043e\u043b\u044c\u0442-\u0430\u043c\u043f\u0435\u0440\u043c\u0435\u0442\u0440 (Arduino)"},"content":{"rendered":"<p>\u0414\u0432\u0443\u0445\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u043e\u043b\u044c\u0442-\u0430\u043c\u043f\u0435\u0440\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c 30 \u0412 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c \u0442\u043e\u043a\u043e\u043c 3\u0410. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0442\u043e\u043a\u0430, \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0432 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u044b \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0443\u043d\u0442\u0430.<\/p>\n<p>\u041d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u0445\u043e\u0434\u044b \u04100 \u04101 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u0445\u043e\u0434\u044b A2 A3, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0438 \u0448\u0443\u043d\u0442\u0430 0.01 \u041e\u043c \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0442\u043e\u043a\u0435 3 \u0410 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0448\u0443\u043d\u0442\u0435 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442 30 \u043c\u0412 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u041e\u0423 LM358. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0448\u0443\u043d\u0442\u0430 \u0434\u043e 5 \u0412 \u043f\u0440\u0438 \u0442\u043e\u043a\u0435 3 \u0410, \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u043a\u043e\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434\u044b A2 A3.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u0414\u043b\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u041e\u0423\u00a0LM358 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043e\u0442 9 \u0412 \u0434\u043e 12\u0412 , \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0430\u0442\u044c \u0438 5 \u0412, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u041e\u0423 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442 4 \u0412, \u0447\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0430.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45073\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/arduino111.gif\" alt=\"\" width=\"771\" height=\"638\" \/><\/p>\n<pre style=\"background: #0c1021; color: #f8f8f8;\">#include &lt;LiquidCrystal.h&gt;\r\nLiquidCrystal lcd(<span style=\"color: #d8fa3c;\">7<\/span>, <span style=\"color: #d8fa3c;\">8<\/span>, <span style=\"color: #d8fa3c;\">9<\/span>, <span style=\"color: #d8fa3c;\">10<\/span>, <span style=\"color: #d8fa3c;\">11<\/span>, <span style=\"color: #d8fa3c;\">12<\/span>);<span style=\"color: #aeaeae;\">\/\/ RS,E,D4,D5,D6,D7<\/span>\r\n<span style=\"color: #8da6ce;\">void<\/span> setup(){\r\n  lcd.begin(<span style=\"color: #d8fa3c;\">16<\/span>, <span style=\"color: #d8fa3c;\">2<\/span>);<span style=\"color: #aeaeae;\">\/\/ LCD 16X2<\/span>\r\n  <span style=\"color: #aeaeae;\">\/\/\/\/\/\/\/\/\/10 bit 0...1023 \/\/\/\/\/\/\/\/\/<\/span>\r\n  pinMode(A0,INPUT); <span style=\"color: #aeaeae;\">\/\/ U1<\/span>\r\n  pinMode(A1,INPUT); <span style=\"color: #aeaeae;\">\/\/ U2<\/span>\r\n  pinMode(A2,INPUT); <span style=\"color: #aeaeae;\">\/\/ A1<\/span>\r\n  pinMode(A4,INPUT); <span style=\"color: #aeaeae;\">\/\/ A2<\/span>\r\n}\r\n\r\n<span style=\"color: #8da6ce;\">int<\/span> a0,a1,a2,a3,n0,n1;\r\nfloat u0,u1,u2,u3;\r\n\r\n<span style=\"color: #8da6ce;\">void<\/span> loop(){\r\n   \r\n a0 <span style=\"color: #fbde2d;\">=<\/span> analogRead(A0);\r\n a1 <span style=\"color: #fbde2d;\">=<\/span> analogRead(A1);\r\n a2 <span style=\"color: #fbde2d;\">=<\/span> analogRead(A2);\r\n a3 <span style=\"color: #fbde2d;\">=<\/span> analogRead(A3);\r\n  \r\nu0 <span style=\"color: #fbde2d;\">=<\/span> a0<span style=\"color: #fbde2d;\">*<\/span><span style=\"color: #d8fa3c;\">30.0<\/span><span style=\"color: #fbde2d;\">\/<\/span><span style=\"color: #d8fa3c;\">1023<\/span>;\r\nu1 <span style=\"color: #fbde2d;\">=<\/span> a1<span style=\"color: #fbde2d;\">*<\/span><span style=\"color: #d8fa3c;\">30.0<\/span><span style=\"color: #fbde2d;\">\/<\/span><span style=\"color: #d8fa3c;\">1023<\/span>; \r\nu2 <span style=\"color: #fbde2d;\">=<\/span> a2<span style=\"color: #fbde2d;\">*<\/span><span style=\"color: #d8fa3c;\">3.0<\/span><span style=\"color: #fbde2d;\">\/<\/span><span style=\"color: #d8fa3c;\">1023<\/span>;\r\nu3 <span style=\"color: #fbde2d;\">=<\/span> a3<span style=\"color: #fbde2d;\">*<\/span><span style=\"color: #d8fa3c;\">3.0<\/span><span style=\"color: #fbde2d;\">\/<\/span><span style=\"color: #d8fa3c;\">1023<\/span>; \r\n\r\n<span style=\"color: #fbde2d;\">if<\/span>(u0&gt;<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">10<\/span>){n0<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">1<\/span>;}<span style=\"color: #fbde2d;\">else<\/span>{n0<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">2<\/span>;}\r\n<span style=\"color: #fbde2d;\">if<\/span>(u1&gt;<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">10<\/span>){n1<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">1<\/span>;}<span style=\"color: #fbde2d;\">else<\/span>{n1<span style=\"color: #fbde2d;\">=<\/span><span style=\"color: #d8fa3c;\">2<\/span>;}\r\n\r\n  lcd.setCursor(<span style=\"color: #d8fa3c;\">1<\/span>,<span style=\"color: #d8fa3c;\">0<\/span>); \r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(u0,n0);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(<span style=\"color: #61ce3c;\">\" B  \"<\/span>);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(u1,n1);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(<span style=\"color: #61ce3c;\">\" B \"<\/span>);\r\n  \r\n  lcd.setCursor(<span style=\"color: #d8fa3c;\">1<\/span>,<span style=\"color: #d8fa3c;\">1<\/span>); \r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(u2,<span style=\"color: #d8fa3c;\">2<\/span>);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(<span style=\"color: #61ce3c;\">\" A  \"<\/span>);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(u3,<span style=\"color: #d8fa3c;\">2<\/span>);\r\n  lcd.<span style=\"color: #8da6ce;\">print<\/span>(<span style=\"color: #61ce3c;\">\" A \"<\/span>);\r\n  delay(<span style=\"color: #d8fa3c;\">500<\/span>);\r\n}\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45074\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/73462923.png\" alt=\"\" width=\"437\" height=\"160\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/73462923.png 437w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/73462923-200x73.png 200w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/p>\n<p>\u0414\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u043e\u043f\u043e\u0440\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e setup \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre>analogReference(EXTERNAL);\/* \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f, \r\n   \u043f\u043e\u0434\u0430\u0435\u043c +5\u0412 \u043e\u0442 \u0418\u041e\u041d \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 AREF \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 5 \u043a\u041e\u043c.\r\n   \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 AREF \u0432 32 \u043a\u041e\u043c \r\n   \u0438 \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u0432\u043e\u043b\u044c\u0442\u044b *\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0432\u0443\u0445\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u043e\u043b\u044c\u0442-\u0430\u043c\u043f\u0435\u0440\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c 30 \u0412 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c \u0442\u043e\u043a\u043e\u043c 3\u0410. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0442\u043e\u043a\u0430, \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0432 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u044b \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0443\u043d\u0442\u0430. \u041d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u0445\u043e\u0434\u044b \u04100 \u04101 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u0445\u043e\u0434\u044b A2 A3, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45074,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-45072","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":27976,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45072","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=45072"}],"version-history":[{"count":2,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45072\/revisions"}],"predecessor-version":[{"id":111569,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45072\/revisions\/111569"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/45074"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45072"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}