{"id":1455,"date":"2018-03-14T01:22:50","date_gmt":"2018-03-13T22:22:50","guid":{"rendered":"http:\/\/arduinolab.pw\/?p=1455"},"modified":"2020-07-14T15:35:34","modified_gmt":"2020-07-14T12:35:34","slug":"analogovyj-datchik-temperatury-tmp36-podklyuchenie-k-arduino","status":"publish","type":"post","link":"https:\/\/arduinolab.pw\/index.php\/2018\/03\/14\/analogovyj-datchik-temperatury-tmp36-podklyuchenie-k-arduino\/","title":{"rendered":"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b TMP36, \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Arduino"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\n\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0426\u0435\u043b\u044c\u0441\u0438\u044f. \u0414\u0430\u0442\u0447\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u0445\u043e\u0436 \u0441 <a href=\"https:\/\/arduinolab.pw\/index.php\/2017\/06\/13\/vysokotochnyj-analogovyj-datchik-temperatury-lm35\/\" target=\"_blank\" rel=\"noreferrer noopener\">LM35<\/a> \u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u044b\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u043c.\n\n<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\"> \u0425\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0430: <\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440:<\/strong> \u221240\u00b0C &#8212; +125\u00b0C<\/li><li><strong>\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b:<\/strong> \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f, \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 -40\u00b0C \u2026 +125\u00b0C, \u00b12\u00b0C , \u043f\u0440\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 25\u00b0C: \u00b11\u00b0C.<\/li><li><strong>\u041b\u0438\u043d\u0435\u0439\u043d\u043e\u0441\u0442\u044c:<\/strong> \u00b10.5\u00b0C.<\/li><li><strong>\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> 10.0 mV\/\u00b0C<\/li><li><strong>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u0440\u0438 25\u00b0C: <\/strong>750\u043c\u0412.<\/li><li><strong>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f:<\/strong> 2,7\u0412 &#8212; 5,5\u0412. <\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u0443\u043f\u0438\u0442\u044c: <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"> \u043d\u0430 \u0410\u043b\u0438: <a href=\"https:\/\/buyeasy.by\/cashback\/view\/pwz0jwwafgqtwwc4gef9lngo882c5v98\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u0442\u0443\u0442 (\u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435)\">\u0442\u0443\u0442<\/a>. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0438 \u0443 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 LM35, \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0426\u0435\u043b\u044c\u0441\u0438\u044f, \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 10.0 mV \u043d\u0430 1\u00b0C, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 LM35, \u0433\u0434\u0435 \u043e\u0442\u0441\u0447\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0442 0\u00b0C \u0438 \u043f\u0440\u0438 25\u00b0C \u0434\u0430\u0442\u0447\u0438\u043a \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 250mV, <strong>TMP36<\/strong> \u0432\u0435\u0434\u0435\u0442 \u043e\u0442\u0441\u0447\u0435\u0442 \u043e\u0442 -50\u00b0C, \u0430 \u043f\u0440\u0438 25\u00b0C \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 750mV.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TMP36 \u043b\u0438\u0448\u0435\u043d \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430 LM35 \u043f\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 \u0441 Arduino, \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440, \u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043f\u0440\u0438\u0441\u0442\u0443\u043a\u0438\u0432\u0430\u044e\u0442. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f 1,1 \u0432\u043e\u043b\u044c\u0442, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0430 60\u00b0C \u043d\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0435\u0449\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u043e \u0434\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0438\u043b\u0438 \u0443\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0410\u0426\u041f, \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043e\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0430 3,3 \u0432\u043e\u043b\u044c\u0442\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434 AREF, \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0445 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0439 \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0438\u0437\u043a\u0430\u044f, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0434\u0430\u0442\u0447\u0438\u043a\u0430. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e, \u0430 \u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0432&nbsp;60\u00b0C \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430, \u043b\u0438\u0431\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/www.youtube.com\/watch?v=_YE0zi9P7uI\" target=\"_blank\" rel=\"noreferrer noopener\">MAX6125<\/a>, \u043b\u0438\u0431\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439, \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"> \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430: <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 LM35.\n\n<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"729\" src=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2017\/06\/lm35.jpg\" alt=\"\" class=\"wp-image-941\" srcset=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2017\/06\/lm35.jpg 981w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2017\/06\/lm35-300x223.jpg 300w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2017\/06\/lm35-768x571.jpg 768w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2017\/06\/lm35-624x464.jpg 624w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u043e\u0444\u0442:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n\u0414\u0430\u0442\u0447\u0438\u043a \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043a\u043e\u0434 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u043d\u0438\u0436\u0435. \u041a\u043e\u0434 \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d \u0434\u043b\u044f \u043f\u043b\u0430\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 ATmega328.\n\n<\/p><div class=\"rhtyv6ab45163b49f3\" ><hr>\n<!-- Yandex.RTB R-A-1793072-2 -->\n<div id=\"yandex_rtb_R-A-1793072-2\"><\/div>\n<script>window.yaContextCb.push(()=>{\n  Ya.Context.AdvManager.render({\n    renderTo: 'yandex_rtb_R-A-1793072-2',\n    blockId: 'R-A-1793072-2'\n  })\n})<\/script><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.rhtyv6ab45163b49f3 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.rhtyv6ab45163b49f3 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.rhtyv6ab45163b49f3 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.rhtyv6ab45163b49f3 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.rhtyv6ab45163b49f3 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n\n\n\n\n<pre> <span style=\"color: #434f54;\">\/\/\/ \u0438\u0441\u0442\u043e\u043a\u0438 \u0442\u0443\u0442 <\/span><u><span style=\"color: #434f54;\">https:\/\/learn.adafruit.com\/tmp36-temperature-sensor\/using-a-temp-sensor<\/span><\/u>\n \n<span style=\"color: #000000;\">#define<\/span> <span style=\"color: #000000;\">sensorPin<\/span> <span style=\"color: #000000;\">A0<\/span>                            <span style=\"color: #434f54;\">\/\/ \u0432\u0445\u043e\u0434 \u0434\u0430\u0442\u0447\u0438\u043a\u0430<\/span>\n \n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>\n<span style=\"color: #000000;\">{<\/span>\n  <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>   \n  <span style=\"color: #434f54;\">\/\/ \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e 1,1 \u0432\u043e\u043b\u044c\u0442<\/span>\n  <span style=\"color: #d35400;\">analogReference<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">INTERNAL<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>         \n<span style=\"color: #000000;\">}<\/span>\n \n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>                      \n<span style=\"color: #000000;\">{<\/span>\n <span style=\"color: #434f54;\">\/\/\u0437\u0430\u0431\u0435\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430<\/span>\n <span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">reading<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">sensorPin<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>  \n \n <span style=\"color: #434f54;\">\/\/ \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 \u0432\u043e\u043b\u044c\u0442\u044b \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e<\/span>\n <span style=\"color: #00979c;\">float<\/span> <span style=\"color: #d35400;\">voltage<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">reading<\/span> <span style=\"color: #434f54;\">*<\/span> <span style=\"color: #000000;\">1.1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">\/<\/span> <span style=\"color: #000000;\">1024.0<\/span><span style=\"color: #000000;\">;<\/span> \n \n <span style=\"color: #434f54;\">\/\/ \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u044b<\/span>\n <span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">temperatureC<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #d35400;\">voltage<\/span> <span style=\"color: #434f54;\">-<\/span> <span style=\"color: #000000;\">0.5<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">*<\/span> <span style=\"color: #000000;\">100<\/span> <span style=\"color: #000000;\">;<\/span>  \n                                                \n  <span style=\"color: #434f54;\">\/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430<\/span>\n <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #d35400;\">voltage<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \n <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\" volts\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>                                              \n <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">temperatureC<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \n <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\" degrees C\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \n \n <span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>                                 <span style=\"color: #434f54;\">\/\/\u0436\u0434\u0435\u043c \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/span>\n<span style=\"color: #000000;\">}<\/span>\n\n<\/pre>\n\n\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\u043a\u043e\u0434 \u0438\u0437 \u0432\u0438\u0434\u0435\u043e \u0441 \u0434\u0432\u0443\u043c\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438.<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<pre><span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">tempC<\/span><span style=\"color: #000000;\">;<\/span>\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">reading<\/span><span style=\"color: #000000;\">;<\/span>\n \n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>\n<span style=\"color: #000000;\">{<\/span>\n &nbsp;<span style=\"color: #d35400;\">analogReference<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">INTERNAL<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #434f54;\">\/\/ \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u043f\u043e\u0440\u043d\u043e\u0433\u043e 1,1 \u0432\u043e\u043b\u044c\u0442<\/span>\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n<span style=\"color: #000000;\">}<\/span>\n\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>\n<span style=\"color: #000000;\">{<\/span>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #434f54;\">\/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 A0<\/span>\n &nbsp;<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">reading<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">A0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;\n &nbsp;<span style=\"color: #00979c;\">float<\/span> <span style=\"color: #d35400;\">voltage<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">reading<\/span> <span style=\"color: #434f54;\">*<\/span> <span style=\"color: #000000;\">1.1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">\/<\/span> <span style=\"color: #000000;\">1024.0<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;<span style=\"color: #00979c;\">float<\/span> <span style=\"color: #000000;\">temperatureC<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #d35400;\">voltage<\/span> <span style=\"color: #434f54;\">-<\/span> <span style=\"color: #000000;\">0.5<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">*<\/span> <span style=\"color: #000000;\">100<\/span> <span style=\"color: #000000;\">;<\/span>\n &nbsp;\n &nbsp;<span style=\"color: #000000;\">tempC<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">A1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">\/<\/span> <span style=\"color: #000000;\">9.31<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #434f54;\">\/\/ \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 \u0446\u0435\u043b\u044c\u0441\u0438\u0438 <\/span>\n &nbsp;\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\" LM35: \"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">tempC<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #434f54;\">\/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430<\/span>\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\" &nbsp;TMP36: \"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">temperatureC<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n &nbsp;&nbsp;&nbsp;\n &nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #434f54;\">\/\/ \u0436\u0434\u0435\u043c \u0441\u0435\u043a\u0443\u043d\u0434\u0443<\/span>\n<span style=\"color: #000000;\">}<\/span>\n\n\n<\/pre>\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u0438\u0434\u0435\u043e:<\/h2>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b TMP36, \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Arduino\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/8Ucp0uG7jtE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0426\u0435\u043b\u044c\u0441\u0438\u044f. \u0414\u0430\u0442\u0447\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u0445\u043e\u0436 \u0441 LM35 \u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u044b\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u043c.<\/p>\n","protected":false},"author":1,"featured_media":1456,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[7],"tags":[95,69],"class_list":["post-1455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-video","tag-tmp36","tag-datchik-temperatury"],"_links":{"self":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":0,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media\/1456"}],"wp:attachment":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}