{"id":45886,"date":"2018-07-27T12:13:45","date_gmt":"2018-07-27T06:13:45","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=45886"},"modified":"2022-01-13T22:08:57","modified_gmt":"2022-01-13T16:08:57","slug":"ds18b20-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=45886","title":{"rendered":"DS18B20 (Arduino)"},"content":{"rendered":"<p>DS18B20 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043e\u0442 9 \u0434\u043e 12\u2013bit, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442<br \/>\n\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0432 EEPROM \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438\u0431\u043e\u0440\u0430. DS18B20 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e 1-Wire \u0448\u0438\u043d\u0435 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442<br \/>\n\u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043d\u0430 \u043b\u0438\u043d\u0438\u0438 \u0442\u0430\u043a \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0433\u0440\u0443\u043f\u043f\u0435. \u0412\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043d\u0430 \u0448\u0438\u043d\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f<br \/>\n\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c.<br \/>\n\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043e\u0442 \u201355\u00b0C \u0434\u043e +125\u00b0C \u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e 0.5\u00b0C \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 \u201310\u00b0C \u0434\u043e +85\u00b0C. \u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435,<br \/>\nDS18B20 \u043c\u043e\u0436\u0435\u0442 \u043f\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c \u043b\u0438\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 (\u201cparasite power\u201d), \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<br \/>\n\u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f.<br \/>\n\u041a\u0430\u0436\u0434\u044b\u0439 DS18B20 \u0438\u043c\u0435\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 64-\u0431\u0438\u0442\u043d\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442, \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0441<br \/>\n\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 DS18B20 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0448\u0438\u043d\u0435. \u0422\u0430\u043a\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d<br \/>\n\u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 DS18B20, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443<br \/>\n\u0443\u0447\u0430\u0441\u0442\u043a\u0443. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0432\u044b\u0433\u043e\u0434\u0443 \u0438\u0437 \u044d\u0442\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f<br \/>\n\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432 \u0437\u0434\u0430\u043d\u0438\u044f\u0445, \u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u043b\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u0445, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043d\u044b\u043c\u0438<br \/>\n\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438.<\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u00a0DS18B20 \u043a Arduino \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443\u00a0 Dallas Temperature, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u0421\u043a\u0435\u0442\u0447 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0430\u043c\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u0441\u0435\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432, \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430:<\/p>\n<pre class=\"cpp\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #339900;\">#include &lt;OneWire.h&gt;<\/span>\r\n<span style=\"color: #339900;\">#include &lt;DallasTemperature.h&gt;<\/span>\r\n\u00a0\r\nOneWire oneWire<span style=\"color: #008000;\">(<\/span>A0<span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span><span style=\"color: #666666;\">\/\/ \u0432\u0445\u043e\u0434 \u0434\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 18b20<\/span>\r\nDallasTemperature t<span style=\"color: #008000;\">(<\/span><span style=\"color: #000040;\">&amp;<\/span>oneWire<span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">void<\/span> setup<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span> <span style=\"color: #008000;\">{<\/span>\r\n  Serial.<span style=\"color: #007788;\">begin<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">9600<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n  t.<span style=\"color: #007788;\">begin<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n<span style=\"color: #008000;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">void<\/span> loop<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span> <span style=\"color: #008000;\">{<\/span>\r\n  t.<span style=\"color: #007788;\">requestTemperatures<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n\u00a0\r\n  <span style=\"color: #0000ff;\">for<\/span> <span style=\"color: #008000;\">(<\/span><span style=\"color: #0000ff;\">int<\/span> i <span style=\"color: #000080;\">=<\/span> <span style=\"color: #0000dd;\">0<\/span><span style=\"color: #008080;\">;<\/span> i <span style=\"color: #000080;\">&lt;<\/span> t.<span style=\"color: #007788;\">getDeviceCount<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> i<span style=\"color: #000040;\">++<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">{<\/span> \r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"Sensor \"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span>i<span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\": \"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span>t.<span style=\"color: #007788;\">getTempCByIndex<\/span><span style=\"color: #008000;\">(<\/span>i<span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \r\n    Serial.<span style=\"color: #007788;\">println<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"C\"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \r\n  <span style=\"color: #008000;\">}<\/span> \r\n  Serial.<span style=\"color: #007788;\">println<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n  delay<span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1000<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n<span style=\"color: #008000;\">}<\/span><\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/?attachment_id=45887\" rel=\"attachment wp-att-45887\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45887\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-115532.png\" alt=\"\" width=\"453\" height=\"355\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-115532.png 453w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-115532-200x157.png 200w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/a><\/p>\n<p>\u0414\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 LCD 1602 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0435\u0442\u0447:<\/p>\n<pre class=\"cpp\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #339900;\">#include &lt;OneWire.h&gt;<\/span>\r\n<span style=\"color: #339900;\">#include &lt;DallasTemperature.h&gt;<\/span>\r\n<span style=\"color: #339900;\">#include &lt;LiquidCrystal.h&gt; <\/span>\r\nLiquidCrystal lcd<span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">7<\/span>, <span style=\"color: #0000dd;\">8<\/span>, <span style=\"color: #0000dd;\">9<\/span>, <span style=\"color: #0000dd;\">10<\/span>, <span style=\"color: #0000dd;\">11<\/span>, <span style=\"color: #0000dd;\">12<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span><span style=\"color: #666666;\">\/\/ RS,E,D4,D5,D6,D7<\/span>\r\nOneWire oneWire<span style=\"color: #008000;\">(<\/span>A0<span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span><span style=\"color: #666666;\">\/\/ \u0432\u0445\u043e\u0434 \u0434\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 18b20<\/span>\r\nDallasTemperature t<span style=\"color: #008000;\">(<\/span><span style=\"color: #000040;\">&amp;<\/span>oneWire<span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">void<\/span> setup<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span> <span style=\"color: #008000;\">{<\/span>\r\n  lcd.<span style=\"color: #007788;\">begin<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">16<\/span>,<span style=\"color: #0000dd;\">2<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n  t.<span style=\"color: #007788;\">begin<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n<span style=\"color: #008000;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">void<\/span> loop<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span> <span style=\"color: #008000;\">{<\/span>\r\n  t.<span style=\"color: #007788;\">requestTemperatures<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    lcd.<span style=\"color: #007788;\">setCursor<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1<\/span>,<span style=\"color: #0000dd;\">0<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"t1 = \"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \r\n    lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span>t.<span style=\"color: #007788;\">getTempCByIndex<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \/\/ \u0434\u0430\u0442\u0447\u0438\u043a \u2116 1\r\n    lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000ff;\">char<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">223<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"C\"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \r\n\u00a0\r\n    lcd.<span style=\"color: #007788;\">setCursor<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1<\/span>,<span style=\"color: #0000dd;\">1<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"t2 = \"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span>t.<span style=\"color: #007788;\">getTempCByIndex<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \/\/ \u0434\u0430\u0442\u0447\u0438\u043a \u2116 2\r\n    lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000ff;\">char<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">223<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> lcd.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\"C\"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span> \r\n\u00a0\r\n  delay<span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1000<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n<span style=\"color: #008000;\">}<\/span><\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/rcl-radio.ru\/?attachment_id=45888\" rel=\"attachment wp-att-45888\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-45888\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-120637.png\" alt=\"\" width=\"288\" height=\"132\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-120637.png 288w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/Screenshot-27.07.2018-120637-200x92.png 200w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/DallasTemperature.zip\"><strong>DallasTemperature.h<\/strong><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/07\/OneWire.zip\"><strong>OneWire.h<\/strong><\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>DS18B20 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043e\u0442 9 \u0434\u043e 12\u2013bit, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0432 EEPROM \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438\u0431\u043e\u0440\u0430. DS18B20 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e 1-Wire \u0448\u0438\u043d\u0435 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043d\u0430 \u043b\u0438\u043d\u0438\u0438 \u0442\u0430\u043a \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0433\u0440\u0443\u043f\u043f\u0435. \u0412\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043d\u0430 \u0448\u0438\u043d\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c. \u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043e\u0442 \u201355\u00b0C \u0434\u043e +125\u00b0C \u0438 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e 0.5\u00b0C \u0432 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45888,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-45886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":10023,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45886","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=45886"}],"version-history":[{"count":3,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45886\/revisions"}],"predecessor-version":[{"id":111544,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/45886\/revisions\/111544"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/45888"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45886"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}