{"id":66450,"date":"2019-09-10T18:43:30","date_gmt":"2019-09-10T12:43:30","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=66450"},"modified":"2022-01-09T16:24:55","modified_gmt":"2022-01-09T10:24:55","slug":"l-c-%d0%bc%d0%b5%d1%82%d1%80-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=66450","title":{"rendered":"L\/C \u043c\u0435\u0442\u0440 (Arduino)"},"content":{"rendered":"<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/65683492.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-66452 alignright\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/65683492.png\" alt=\"\" width=\"243\" height=\"277\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/65683492.png 243w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/65683492-200x228.png 200w\" sizes=\"auto, (max-width: 243px) 100vw, 243px\" \/><\/a>\u041d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 Arduino \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u0438\u0431\u043e\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u043a\u0413\u043d \u0434\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0413\u043d \u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432 \u043e\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u0424 \u0434\u043e 0,5 \u043c\u043a\u0424 \u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e. \u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440\u0435 LM311 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445, \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 Arduino \u0441\u043e\u0431\u0440\u0430\u043d \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440 (\u0434\u043e 6,5 \u041c\u0413\u0446).<\/p>\n<p>\u0418\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u0430\u043a \u043a\u0430\u043a L\/C \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043b\u0435\u0431\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0443\u0440, \u0442\u043e \u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u043a\u043e\u043b\u0435\u0431\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443, \u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440 \u043d\u0430 Arduino \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u0438. \u0412 \u0443\u0441\u0442-\u0432\u0435 \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f L\/C, \u0432\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0430 \u043d\u0443\u043b\u044f. \u0418\u0437 \u0441\u0445\u0435\u043c\u044b \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0443\u0441\u0442-\u0432\u0435 \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u044c, \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0435\u043c\u043a\u043e\u0441\u0442\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043c\u0430\u043b\u044b\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u0415\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0440\u0438\u0431\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u0431\u0435\u0433 \u0432 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0435, \u0430 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u044b\u043c, \u043e\u0442 \u043d\u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u0431\u043e\u0440\u0430. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0440\u0438\u0431\u043e\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043a\u043e\u0440\u043e\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b &#171;\u22a5&#187; \u0438 &#171;L&#187;, \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0438 \u043d\u0443\u043b\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0440\u0438\u0431\u043e\u0440, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e \u0432 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u043a\u0430\u0442\u0443\u0448\u043a\u0443 \u0438\u043b\u0438 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (L\/C) \u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 L\/C, \u0437\u0430\u043a\u043e\u0440\u043e\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b &#171;\u22a5&#187; \u0438 &#171;L&#187;, \u0430\u00a0 \u0435\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c &#171;\u22a5 \u0438\u043b\u0438 L&#187; \u0438 &#171;C&#187;.<\/p>\n<p>\u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (L1 C1), \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0447\u0442\u0435\u043d\u044b \u0438\u0437 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 LCD \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 1602 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0435\u0437\u043e\u043d\u0430\u043d\u0441\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66453\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482.png\" alt=\"\" width=\"802\" height=\"237\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482.png 802w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482-200x59.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482-500x148.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/765734678639482-768x227.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/lc.gif\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66451\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/lc.gif\" alt=\"\" width=\"1052\" height=\"500\" \/><\/a><\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;FreqCount.h&gt; \/\/ <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/freqcount.zip\">freqcount<\/a>.zip<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;LiquidCrystal.h&gt;<\/span>\r\nLiquidCrystal lcd<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">8<\/span>, <span style=\"color: #cc66cc;\">7<\/span>, <span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">3<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ RS,E,D4,D5,D6,D7<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;EEPROM.h&gt;<\/span>\r\nunsigned long f;\r\nconst float c = <span style=\"color: #cc66cc;\">1000.0<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,-<span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nfloat l_pop=<span style=\"color: #cc66cc;\">0.00<\/span>;\r\nfloat l,c_iz;\r\n<span style=\"color: #0066cc;\">int<\/span> l_int;\r\nbyte lc,w;\r\n\u00a0\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>Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">16<\/span>, <span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ LCD 16X2<\/span>\r\n  FreqCount.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">13<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;\r\n  l_pop = float<span style=\"color: #66cc66;\">(<\/span>EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">256<\/span> + EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span>; \r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>float<span style=\"color: #66cc66;\">(<\/span>EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">256<\/span> + EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/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    lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"F = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>FreqCount.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>w==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>f = FreqCount.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>f<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" Hz      \"<\/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;\">13<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n   l_pop = float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>c<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" calibration  0 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n   l_int=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>l_pop<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,highByte<span style=\"color: #66cc66;\">(<\/span>l_int<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>,lowByte<span style=\"color: #66cc66;\">(<\/span>l_int<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <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;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>lc==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lc=<span style=\"color: #cc66cc;\">1<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;w=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span> <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>lc==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lc=<span style=\"color: #cc66cc;\">0<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;w=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  l = float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>c<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>-l_pop;\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"L = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">&lt;<\/span>=<span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>l,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" uH       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>,<span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" mH       \"<\/span><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>lc==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nc_iz=float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>l_pop<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,-<span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>-c<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,<span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"C = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">&lt;<\/span>=<span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" pF       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>,<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" nF       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\nw=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span><\/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 \u0442\u043e\u0447\u043d\u0443\u044e \u0435\u043c\u043a\u043e\u0441\u0442\u044c \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u0430:<\/p>\n<p>const float c = <strong><span style=\"color: #cc66cc;\">1000.0<\/span><\/strong><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,-<span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>; \/\/ == 1000 \u043f\u0424<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 233px;\">\n<td style=\"width: 50%; text-align: center; height: 233px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/72637687342.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66454\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/72637687342.png\" alt=\"\" width=\"636\" height=\"211\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/72637687342.png 636w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/72637687342-200x66.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/72637687342-500x166.png 500w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/a><\/td>\n<td style=\"width: 50%; text-align: center; height: 233px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/234732098.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66455\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/234732098.png\" alt=\"\" width=\"499\" height=\"285\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/234732098.png 499w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/234732098-200x114.png 200w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><\/td>\n<\/tr>\n<tr style=\"height: 252px;\">\n<td style=\"width: 50%; text-align: center; height: 252px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/2734692.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66456\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/2734692.png\" alt=\"\" width=\"721\" height=\"262\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/2734692.png 721w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/2734692-200x73.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/2734692-500x182.png 500w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/a><\/td>\n<td style=\"width: 50%; text-align: center; height: 252px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/74368768927.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66457\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/74368768927.png\" alt=\"\" width=\"494\" height=\"307\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/74368768927.png 494w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/74368768927-200x124.png 200w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/a><\/td>\n<\/tr>\n<tr style=\"height: 254px;\">\n<td style=\"width: 50%; text-align: center; height: 254px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6459636238.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66458\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6459636238.png\" alt=\"\" width=\"548\" height=\"209\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6459636238.png 548w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6459636238-200x76.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6459636238-500x191.png 500w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/a><\/td>\n<td style=\"width: 50%; text-align: center; height: 254px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6239682376987.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66459\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6239682376987.png\" alt=\"\" width=\"497\" height=\"284\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6239682376987.png 497w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6239682376987-200x114.png 200w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/a><\/td>\n<\/tr>\n<tr style=\"height: 150px;\">\n<td style=\"width: 50%; height: 150px;\">\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/643796237.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66467\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/643796237.png\" alt=\"\" width=\"722\" height=\"244\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/643796237.png 722w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/643796237-200x68.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/643796237-500x169.png 500w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u041a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 0,1 \u043c\u043a\u0424<\/p>\n<\/td>\n<td style=\"width: 50%; height: 150px;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6437868329623-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66461\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6437868329623-1.png\" alt=\"\" width=\"590\" height=\"208\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6437868329623-1.png 590w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6437868329623-1-200x71.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6437868329623-1-500x176.png 500w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u041a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 82 \u043f\u0424<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\" colspan=\"2\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-66462 \" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/6436736287923-e1568119339261.png\" alt=\"\" width=\"96\" height=\"122\" \/><\/p>\n<p style=\"text-align: center;\">\u042d\u0442\u0430\u043b\u043e\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0422\u0430\u043a \u043f\u0440\u0438\u0431\u043e\u0440 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e 0,5 \u043c\u043a\u0424, \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0443\u0441\u0442-\u0432\u043e. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u043a\u043b\u0435\u043c\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432 \u0435\u043c\u043a\u043e\u0441\u0442\u044c\u044e \u043e\u0442 0,1 \u0434\u043e 10000 \u043c\u043a\u0424 \u0438 \u043f\u0430\u0440\u0430 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u043e\u0432.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/lcx.gif\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66470\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/lcx.gif\" alt=\"\" width=\"1104\" height=\"500\" \/><\/a><\/p>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442, \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u043c 1 \u043a\u041e\u043c \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 5 \u0412 \u043d\u0430 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440, \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0445\u043e\u0434 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u043d\u0430 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 63% \u043e\u0442 5 \u0412, \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0440\u044f\u0434\u0430 \u0438 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435: T = RC. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0438 \u043d\u0443\u043b\u044f, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0430.<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;FreqCount.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;LiquidCrystal.h&gt;<\/span>\r\nLiquidCrystal lcd<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">8<\/span>, <span style=\"color: #cc66cc;\">7<\/span>, <span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">3<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ RS,E,D4,D5,D6,D7<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;EEPROM.h&gt;<\/span>\r\n\u00a0\r\nunsigned long f,time0,time1,time2;\r\nconst float c = <span style=\"color: #cc66cc;\">1000.0<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,-<span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nfloat l_pop=<span style=\"color: #cc66cc;\">0.00<\/span>;\r\nfloat l,c_iz,c_uf,null0;\r\n<span style=\"color: #0066cc;\">int<\/span> l_int;\r\nbyte lc,w;\r\n\u00a0\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>Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">16<\/span>, <span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ LCD 16X2<\/span>\r\n  FreqCount.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 1000 \u043c\u0441 - \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440\u0430<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">13<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;pinMode<span style=\"color: #66cc66;\">(<\/span>A0,INPUT<span style=\"color: #66cc66;\">)<\/span>;\r\n  l_pop = float<span style=\"color: #66cc66;\">(<\/span>EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">256<\/span> + EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ eeeprom<\/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: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ F \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"F = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>FreqCount.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>w==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>f = FreqCount.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>f<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" Hz      \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ calib 0 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">13<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">&amp;&amp;<\/span>lc<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n   l_pop = float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>c<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" calibration  0 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n   l_int=<span style=\"color: #0066cc;\">round<\/span><span style=\"color: #66cc66;\">(<\/span>l_pop<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,highByte<span style=\"color: #66cc66;\">(<\/span>l_int<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>,lowByte<span style=\"color: #66cc66;\">(<\/span>l_int<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ button L\/C\/Cuf \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ <\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lc++;lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;w=<span style=\"color: #cc66cc;\">1<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lc=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ L \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  l = float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>c<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>-l_pop;\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"L = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">&lt;<\/span>=<span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>l,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" uH       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>l<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>,<span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" mH       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ C pF nF \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span>\r\n    <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nc_iz=float<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000000000000<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">PI<\/span><span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>f<span style=\"color: #66cc66;\">*<\/span>l_pop<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,-<span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>-c<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #0066cc;\">pow<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>,<span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"C = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">&lt;<\/span>=<span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" pF       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>c_iz<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>,<span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" nF       \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ C uF \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span>\r\n      <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>lc==<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n    lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">15<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>; lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"*\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9<\/span>,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9<\/span>,HIGH<span style=\"color: #66cc66;\">)<\/span>;    \r\n  time0=micros<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">while<\/span><span style=\"color: #66cc66;\">(<\/span>analogRead<span style=\"color: #66cc66;\">(<\/span>A0<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">644<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>time2=micros<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time0;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>time2<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">10000000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #b1b100;\">break<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>time1=micros<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time0; \r\n  <span style=\"color: #b1b100;\">while<\/span><span style=\"color: #66cc66;\">(<\/span>analogRead<span style=\"color: #66cc66;\">(<\/span>A0<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9<\/span>,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9<\/span>,LOW<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;c_uf=time1;c_uf=c_uf<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">1000<\/span>-null0;c_uf=<span style=\"color: #0066cc;\">abs<\/span><span style=\"color: #66cc66;\">(<\/span>c_uf<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n   <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>time1<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">10000000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" TEST uF   \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" C = \"<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>c_uf<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" uF       \"<\/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;\">13<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>null0=c_uf;lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" calibration  0 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>w=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/loop<\/span><\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/78974990348.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66471\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/78974990348.png\" alt=\"\" width=\"384\" height=\"222\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/78974990348.png 384w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/78974990348-200x116.png 200w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/243779208.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66472\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/243779208.png\" alt=\"\" width=\"527\" height=\"134\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/243779208.png 527w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/243779208-200x51.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/243779208-500x127.png 500w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/279623786823.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66473\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/279623786823.png\" alt=\"\" width=\"184\" height=\"221\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/28746879628.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66474\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/28746879628.png\" alt=\"\" width=\"499\" height=\"132\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/28746879628.png 499w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/09\/28746879628-200x53.png 200w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u0424\u043e\u0440\u0443\u043c &#8212; <a href=\"http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=61\">http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=61<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 Arduino \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u0435\u043b\u044c \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u0438\u0431\u043e\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0442\u0443\u0448\u0435\u043a \u043e\u0442 \u0435\u0434\u0438\u043d\u0438\u0446 \u043c\u043a\u0413\u043d \u0434\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043c\u0413\u043d \u0438 \u0435\u043c\u043a\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432 \u043e\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u0424 \u0434\u043e 0,5 \u043c\u043a\u0424 \u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e. \u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440\u0435 LM311 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445, \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 Arduino \u0441\u043e\u0431\u0440\u0430\u043d \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u043c\u0435\u0440 (\u0434\u043e 6,5 \u041c\u0413\u0446). \u0418\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0438\u043d\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":66458,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,15],"tags":[],"class_list":["post-66450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-15"],"views":45493,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/66450","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=66450"}],"version-history":[{"count":8,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/66450\/revisions"}],"predecessor-version":[{"id":111338,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/66450\/revisions\/111338"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/66458"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66450"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}