{"id":297,"date":"2015-12-14T17:38:02","date_gmt":"2015-12-14T14:38:02","guid":{"rendered":"http:\/\/arduinolab.pw\/?p=297"},"modified":"2019-08-29T02:56:17","modified_gmt":"2019-08-28T23:56:17","slug":"podklyuchenie-datchika-temperatury-i-vlazhnosti-dht11-k-arduino","status":"publish","type":"post","link":"https:\/\/arduinolab.pw\/index.php\/2015\/12\/14\/podklyuchenie-datchika-temperatury-i-vlazhnosti-dht11-k-arduino\/","title":{"rendered":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 DHT11 \u043a Arduino"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a, \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0437\u043a\u043e\u0439 \u0446\u0435\u043d\u043e\u044e, \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439. <\/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 \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b:<\/strong> 0 &#8212; +50<strong>\u00b0<\/strong>C,\u00a0 +\/- 2<strong>\u00b0<\/strong>C.<\/li><li><strong>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u0439 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438:<\/strong> 20 &#8212; 80% RH,\u00a0+\/- 5% RH.<\/li><li><strong>\u041f\u0438\u0442\u0430\u043d\u0438\u0435:<\/strong> 3 &#8212; 5,5\u0412<\/li><li><strong>\u041f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u044b\u0439 \u0442\u043e\u043a:<\/strong> 0.3\u043c\u0410, \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f 60\u043c\u043a\u0410<\/li><li><strong>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435:<\/strong> 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/li><li><strong>\u0413\u0430\u0431\u0430\u0440\u0438\u0442\u044b:<\/strong> 12\u044515.5\u04455.5\u043c\u043c <\/li><\/ul>\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:<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"650\" src=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/DHT11-1024x650.jpg\" alt=\"\" class=\"wp-image-312\" srcset=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/DHT11-1024x650.jpg 1024w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/DHT11-300x190.jpg 300w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/DHT11-624x396.jpg 624w, https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/DHT11.jpg 1371w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- arrduinolab_sidebar-right-1_AdSense1_1x1_as -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-8560276033844381\" data-ad-slot=\"4771099356\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\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\">\u0412 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441 <a href=\"http:\/\/ali.arduinolab.pw\/redirect\/cpa\/o\/nz3o2rkheroghnznb7nuz1l7p8pooxg9\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438<\/a>, \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043d\u0430 4,7\u041a \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u043f\u043b\u0430\u0442\u0435, \u0430 \u0441\u0430\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u0448\u0442\u044b\u0440\u044c\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0435\u0433\u043e \u043a \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u0433\u0438\u0431\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c\u0438.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0432 \u0441\u0440\u0435\u0434\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/Dht11.zip\">\u044d\u0442\u0443.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d lcd keypad shield, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0432 <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=D3aKFpwZ4T8\" target=\"_blank\">\u0432\u0438\u0434\u0435\u043e<\/a>. <strong>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e >><\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2015\/12\/Dht11.zip\" target=\"_blank\"><strong>\u0422\u0423\u0422!<\/strong><\/a><strong>&lt;&lt; \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442!<\/strong><\/p><div class=\"ieyja6ab449bce4eee\" ><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.ieyja6ab449bce4eee {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.ieyja6ab449bce4eee {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.ieyja6ab449bce4eee {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.ieyja6ab449bce4eee {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.ieyja6ab449bce4eee {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n\n\n\n\n<pre>#include &lt;<span style=\"color: #cc6600;\">LiquidCrystal<\/span>.h&gt;\n#include &lt;dht11.h&gt;\n\n<span style=\"color: #cc6600;\">LiquidCrystal<\/span> lcd(8, 9, 4, 5, 6, 7);\ndht11 sensor;\n\n#define DHT11PIN 11\n\n<span style=\"color: #cc6600;\">byte<\/span> gradus[8] = {\n  0b00110,\n  0b01001,\n  0b01001,\n  0b00110,\n  0b00000,\n  0b00000,\n  0b00000,\n  0b00000\n};\n\n<span style=\"color: #cc6600;\">void<\/span> <span style=\"color: #cc6600;\">setup<\/span>() {\n  lcd.<span style=\"color: #cc6600;\">createChar<\/span>(1, gradus);\n  lcd.<span style=\"color: #cc6600;\">begin<\/span>(16, 2);\n  lcd.<span style=\"color: #cc6600;\">clear<\/span>();\n  <span style=\"color: #cc6600;\">delay<\/span>(500);  \n}\n\n<span style=\"color: #cc6600;\">void<\/span> <span style=\"color: #cc6600;\">loop<\/span>() {\n  lcd.<span style=\"color: #cc6600;\">setCursor<\/span>(0, 0);\n  <span style=\"color: #cc6600;\">switch<\/span> (sensor.<span style=\"color: #cc6600;\">read<\/span>(DHT11PIN)) {\n    <span style=\"color: #cc6600;\">case<\/span> DHTLIB_OK:\n                lcd.<span style=\"color: #cc6600;\">clear<\/span>();\n                lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"Read OK\"<\/span>);                \n  <span style=\"color: #cc6600;\">              break<\/span>;\n    <span style=\"color: #cc6600;\">case<\/span> DHTLIB_ERROR_CHECKSUM: \n                lcd.<span style=\"color: #cc6600;\">clear<\/span>();\n                lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"Checksum error\"<\/span>);                \n                <span style=\"color: #cc6600;\">return<\/span>;\n    <span style=\"color: #cc6600;\">case<\/span> DHTLIB_ERROR_TIMEOUT: \n                lcd.<span style=\"color: #cc6600;\">clear<\/span>();\n                lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"Time out error\"<\/span>);                 \n                <span style=\"color: #cc6600;\">return<\/span>;\n    <span style=\"color: #cc6600;\">default<\/span>: \n                lcd.<span style=\"color: #cc6600;\">clear<\/span>();\n                lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"Unknown error\"<\/span>);                 \n                <span style=\"color: #cc6600;\">return<\/span>;\n  }\n  \n  lcd.<span style=\"color: #cc6600;\">setCursor<\/span>(0, 1);\n  lcd.<span style=\"color: #cc6600;\">print<\/span>(sensor.temperature);\n  lcd.<span style=\"color: #cc6600;\">write<\/span>(1);\n  lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"C\"<\/span>);  \n  lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"  \"<\/span>);\n  lcd.<span style=\"color: #cc6600;\">print<\/span>(sensor.humidity);\n  lcd.<span style=\"color: #cc6600;\">print<\/span>(<span style=\"color: #006699;\">\"%\"<\/span>); \n  \n  <span style=\"color: #cc6600;\">delay<\/span>(500);   \n}\n\n\n<\/pre>\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=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 DHT11 \u0438 arduino\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/D3aKFpwZ4T8?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>\u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a, \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0437\u043a\u043e\u0439 \u0446\u0435\u043d\u043e\u044e, \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439.<\/p>\n","protected":false},"author":1,"featured_media":347,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[7],"tags":[14,45,70,69],"class_list":["post-297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-video","tag-dht11","tag-lcd-keypad-shield","tag-datchik-vlazhnosti","tag-datchik-temperatury"],"_links":{"self":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/297","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=297"}],"version-history":[{"count":0,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media\/347"}],"wp:attachment":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}