{"id":75998,"date":"2020-02-27T10:40:01","date_gmt":"2020-02-27T04:40:01","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=75998"},"modified":"2022-01-08T20:41:48","modified_gmt":"2022-01-08T14:41:48","slug":"stm32-max6675-%d1%82%d0%b5%d1%80%d0%bc%d0%be%d1%80%d0%b5%d0%b3%d1%83%d0%bb%d1%8f%d1%82%d0%be%d1%80-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=75998","title":{"rendered":"STM32 + MAX6675 &#8212; \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 (Arduino)"},"content":{"rendered":"<div class=\"entry-meta-top\">\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0418\u041c\u0421 MAX6675 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0438\u0442 \u0422\u042d\u0414\u0421 \u0442\u0435\u0440\u043c\u043e\u043f\u0430\u0440\u044b \u0442\u0438\u043f\u0430 \u041a (\u0425\u0410), \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445 \u0426\u0435\u043b\u044c\u0441\u0438\u044f, \u0442\u0430\u043a \u0436\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 MAX6675 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0439 \u0441\u0440\u0435\u0434\u044b.<\/div>\n<div class=\"entry-content\">\n<p>MAX6675 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0442\u0435\u0440\u043c\u043e\u043f\u0430\u0440\u043e\u0439 \u0442\u0438\u043f\u0430 \u041a \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e 1024\u00a0\u00ba\u0421, \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 0.25\u00a0\u00ba\u0421. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f\u00a0SPI \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 MAX6675 \u0438 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b STM32 (\u0431\u0430\u0437\u0435 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 STM32F103C8T6) \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 (0&#8230;999.0 \u00b0\u0421). \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 <strong><a href=\"http:\/\/rcl-radio.ru\/?p=68974\">ky-040<\/a>.\u00a0<\/strong>\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<div id=\"marketWidget\"><\/div>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103755.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-76000\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103755.png\" alt=\"\" width=\"268\" height=\"154\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103755.png 268w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103755-200x115.png 200w\" sizes=\"auto, (max-width: 268px) 100vw, 268px\" \/><\/a><\/td>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103743.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-76001\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103743.png\" alt=\"\" width=\"290\" height=\"150\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103743.png 290w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103743-200x103.png 200w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/a><\/td>\n<td style=\"width: 33.3333%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103808.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75999\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103808.png\" alt=\"\" width=\"723\" height=\"336\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103808.png 723w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103808-200x93.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/02\/Screenshot-27.02.2020-103808-500x232.png 500w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#define pinA PB6<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define pinB PB5<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define SO   PB7<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define CS   PB9<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define CLK  PB8<\/span>\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;STM32_MAX6675.h&gt; \/\/http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=410&amp;download=1<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;STM32_TM1637.h&gt; \/\/ http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=403&amp;download=1<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;EEPROM.h&gt;       \/\/ \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/12\/Arduino_STM32-master.zip\">Arduino_STM32-master.zip<\/a><\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;STM32_Encoder.h&gt; \/\/ http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/STM32_Encoder.zip<\/span>\r\n  STM32_Encoder encoder<span style=\"color: #66cc66;\">(<\/span>pinA, pinB<span style=\"color: #66cc66;\">)<\/span>;\r\n  STM32_TM1637 tm<span style=\"color: #66cc66;\">(<\/span>PB0,PB1<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ CLK, DIO<\/span>\r\n  STM32_MAX6675 max6675<span style=\"color: #66cc66;\">(<\/span>CLK, CS, SO<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">int<\/span> <span style=\"color: #0066cc;\">position<\/span> = -<span style=\"color: #cc66cc;\">999<\/span>;\r\nbyte w,i;\r\n<span style=\"color: #0066cc;\">int<\/span> reg;\r\nconst float gis = <span style=\"color: #cc66cc;\">1.0<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441<\/span>\r\nunsigned long times;\r\nfloat celsius,sum;\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  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  tm.<span style=\"color: #006600;\">brig<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">7<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u042f\u0420\u041a\u041e\u0421\u0422\u042c 0...7<\/span>\r\n  EEPROM.<span style=\"color: #006600;\">init<\/span><span style=\"color: #66cc66;\">(<\/span>0x801F000,0x801F800,0x400<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ 1024 byte<\/span>\r\n  encoder.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;                                                         \r\n  attachInterrupt<span style=\"color: #66cc66;\">(<\/span>digitalPinToInterrupt<span style=\"color: #66cc66;\">(<\/span>pinA<span style=\"color: #66cc66;\">)<\/span>,Read,CHANGE<span style=\"color: #66cc66;\">)<\/span>;  \r\n  attachInterrupt<span style=\"color: #66cc66;\">(<\/span>digitalPinToInterrupt<span style=\"color: #66cc66;\">(<\/span>pinB<span style=\"color: #66cc66;\">)<\/span>,Read,CHANGE<span style=\"color: #66cc66;\">)<\/span>; \r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PB7,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0445\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u043b\u0435<\/span>\r\n  reg = EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/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>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-times<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">3000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n   <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span>i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">3<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n   celsius = max6675.<span style=\"color: #006600;\">readCelsius<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n   sum = sum + celsius;\r\n   delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>celsius = sum<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">3<\/span>;sum=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n    <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">position<\/span> <span style=\"color: #66cc66;\">!<\/span>= encoder.<span style=\"color: #006600;\">getPosition<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #0066cc;\">position<\/span> = encoder.<span style=\"color: #006600;\">getPosition<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    reg = reg + encoder.<span style=\"color: #006600;\">getPosition<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;encoder.<span style=\"color: #006600;\">setPosition<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #0066cc;\">position<\/span> = <span style=\"color: #cc66cc;\">0<\/span>;\r\n    w=<span style=\"color: #cc66cc;\">1<\/span>;times = millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">999<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg=<span style=\"color: #cc66cc;\">999<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg=<span style=\"color: #cc66cc;\">0<\/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>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-times<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">3000<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>tm.<span style=\"color: #006600;\">print_float<\/span><span style=\"color: #66cc66;\">(<\/span>reg,<span style=\"color: #cc66cc;\">0<\/span>,  0b01010000,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n    <span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>tm.<span style=\"color: #006600;\">print_float<\/span><span style=\"color: #66cc66;\">(<\/span>celsius,<span style=\"color: #cc66cc;\">1<\/span>,  <span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n    <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>celsius<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">999<\/span><span style=\"color: #66cc66;\">||<\/span>celsius<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>tm.<span style=\"color: #006600;\">print_float<\/span><span style=\"color: #66cc66;\">(<\/span>celsius,<span style=\"color: #cc66cc;\">0<\/span>,  0b01000000,0b01000000,0b01000000,0b01000000<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>reg <span style=\"color: #66cc66;\">&gt;<\/span>= celsius + gis<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>digitalWrite<span style=\"color: #66cc66;\">(<\/span>PB7,HIGH<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n    <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg <span style=\"color: #66cc66;\">&lt;<\/span>= celsius - gis<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>digitalWrite<span style=\"color: #66cc66;\">(<\/span>PB7,LOW<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>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-times<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>w==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w=<span style=\"color: #cc66cc;\">0<\/span>;EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>, reg<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> Read<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>encoder.<span style=\"color: #006600;\">readAB<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0412 \u0441\u043a\u0435\u0442\u0447\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c:<\/p>\n<p>const float gis = <span style=\"color: #cc66cc;\">1.0<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441<\/span><\/p>\n<p>\u041f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 1 %<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0431\u043e\u0440\u0430, \u00b0\u0421<\/td>\n<td style=\"width: 50%; height: 21px;\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u00b0\u0421<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">100<\/td>\n<td style=\"width: 50%; height: 21px;\">100.3<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">200<\/td>\n<td style=\"width: 50%; height: 21px;\">201.5<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">300<\/td>\n<td style=\"width: 50%; height: 21px;\">302.5<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">400<\/td>\n<td style=\"width: 50%; height: 21px;\">400.3<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">500<\/td>\n<td style=\"width: 50%; height: 21px;\">497.8<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">600<\/td>\n<td style=\"width: 50%; height: 21px;\">595.2<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">700<\/td>\n<td style=\"width: 50%; height: 21px;\">690.5<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">800<\/td>\n<td style=\"width: 50%; height: 21px;\">790.3<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">900<\/td>\n<td style=\"width: 50%; height: 21px;\">892.8<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 50%; height: 21px;\">990<\/td>\n<td style=\"width: 50%; height: 21px;\">985.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0424\u043e\u0440\u0443\u043c &#8212; <a href=\"http:\/\/forum.rcl-radio.ru\/viewtopic.php?pid=1031#p1031\">http:\/\/forum.rcl-radio.ru\/viewtopic.php?pid=1031#p1031<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0418\u041c\u0421 MAX6675 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0438\u0442 \u0422\u042d\u0414\u0421 \u0442\u0435\u0440\u043c\u043e\u043f\u0430\u0440\u044b \u0442\u0438\u043f\u0430 \u041a (\u0425\u0410), \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445 \u0426\u0435\u043b\u044c\u0441\u0438\u044f, \u0442\u0430\u043a \u0436\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 MAX6675 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0439 \u0441\u0440\u0435\u0434\u044b. MAX6675 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0442\u0435\u0440\u043c\u043e\u043f\u0430\u0440\u043e\u0439 \u0442\u0438\u043f\u0430 \u041a \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 0 \u0434\u043e 1024\u00a0\u00ba\u0421, \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 0.25\u00a0\u00ba\u0421. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f\u00a0SPI \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u041f\u0440\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":76001,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,19,201],"tags":[],"class_list":["post-75998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-19","category-201"],"views":7667,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75998","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=75998"}],"version-history":[{"count":3,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75998\/revisions"}],"predecessor-version":[{"id":111268,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75998\/revisions\/111268"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/76001"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75998"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}