{"id":413,"date":"2013-03-10T01:34:17","date_gmt":"2013-03-09T23:34:17","guid":{"rendered":"http:\/\/wp.oktay.com\/?p=413"},"modified":"2013-03-10T03:24:34","modified_gmt":"2013-03-10T01:24:34","slug":"ethersex-netio-dht11-dht22-not-working-yet","status":"publish","type":"post","link":"https:\/\/wp.oktay.com\/?p=413","title":{"rendered":"ethersex &#8211; netio &#8211; dht11 (dht22 not working yet)"},"content":{"rendered":"<p>yes, ethersex has included now dht11 (cheap humidity and temperature sensor &#8211; 1 wire similar digital protocol)<\/p>\n<p>&nbsp;<\/p>\n<p>here are some task I needed to do in order to get that working:<\/p>\n<p>&#8211;\u00a0scripts\/add-hardware netio_local<\/p>\n<p>then edit the newly created user file:\u00a0pinning\/hardware\/user_netio_local.m4<\/p>\n<p>for my lcd hd47780, yours maybe different pins:<\/p>\n<p style=\"text-align: left;\"><code><br \/>\n<strong>dnl<\/strong><br \/>\n<strong> dnl user_netio_local.m4<\/strong><br \/>\n<strong> dnl<\/strong><br \/>\n<strong> dnl Pin Configuration for 'user_netio_local'. Edit it to fit your needs.<\/strong><br \/>\n<strong> dnl<\/strong><\/code><\/p>\n<p style=\"text-align: left;\"><strong>\/* onewire port range *\/<\/strong><br \/>\n<strong> ONEWIRE_PORT_RANGE(PA6, PA6)<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>\/* port the enc28j60 is attached to *\/<\/strong><br \/>\n<strong> pin(SPI_CS_NET, SPI_CS_HARDWARE)<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>\/* DHT 11\/22 humidity and temperature sensors *\/<\/strong><br \/>\n<strong> pin(DHT, PA7, INPUT)<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>pin(HD44780_RS, PD3)<\/strong><br \/>\n<strong> pin(HD44780_EN1, PB0)<\/strong><br \/>\n<strong> pin(HD44780_D4, PD4)<\/strong><br \/>\n<strong> pin(HD44780_D5, PD5)<\/strong><br \/>\n<strong> pin(HD44780_D6, PD6)<\/strong><br \/>\n<strong> pin(HD44780_D7, PD7)<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>pin(HD44780_RW, PD2)<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>pin(HD44780_BL, PB1, OUTPUT)<\/strong><\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">then<\/p>\n<p style=\"text-align: left;\">make menuconfig<\/p>\n<p style=\"text-align: left;\">then make<\/p>\n<p style=\"text-align: left;\">then you have your hex file ethersex.hex<\/p>\n<p style=\"text-align: left;\">upload this file to your avr \/ netio .<\/p>\n<p style=\"text-align: left;\">I have a atmega32 inside, and it is filled up to the top. so space is an issue here.<\/p>\n<p style=\"text-align: left;\">99.8% full \ud83d\ude42<\/p>\n<p style=\"text-align: left;\">I have activated i2c, 1wire, dht, hd44780, vfs, httpd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>yes, ethersex has included now dht11 (cheap humidity and temperature sensor &#8211; 1 wire similar digital protocol) &nbsp; here are some task I needed to do in order to get that working: &#8211;\u00a0scripts\/add-hardware netio_local then edit the newly created user file:\u00a0pinning\/hardware\/user_netio_local.m4 for my lcd hd47780, yours maybe different pins: dnl dnl user_netio_local.m4 dnl dnl Pin&hellip; <a class=\"more-link\" href=\"https:\/\/wp.oktay.com\/?p=413\">Continue reading <span class=\"screen-reader-text\">ethersex &#8211; netio &#8211; dht11 (dht22 not working yet)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-413","post","type-post","status-publish","format-standard","hentry","category-avr","entry"],"_links":{"self":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=413"}],"version-history":[{"count":6,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/413\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/413\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}