{"id":3453,"date":"2020-01-08T14:53:06","date_gmt":"2020-01-08T12:53:06","guid":{"rendered":"http:\/\/cornay.co.za\/wp\/?p=3453"},"modified":"2020-01-08T14:53:06","modified_gmt":"2020-01-08T12:53:06","slug":"an-esp8266-environmental-monitor-in-your-usb-port","status":"publish","type":"post","link":"http:\/\/cornay.co.za\/wp\/2020\/01\/08\/an-esp8266-environmental-monitor-in-your-usb-port\/","title":{"rendered":"An ESP8266 Environmental Monitor in your USB Port"},"content":{"rendered":"<p>At this point, we&#8217;ve all seen enough ESP8266 &#8220;weather stations&#8221; to know the drill: you just put the ESP and a temperature sensor inside a 3D printed case, and let all those glorious Internet Points<img decoding=\"async\" title=\"\" data-src=\"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72x72\/2122.png\" alt=\"\u2122\" class=\"wp-smiley lazyload\" style=\"height: 1em; max-height: 1em;\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/> flow right on in. It&#8217;s a simple, and perhaps more importantly practical, project that seems to never get old. But that doesn&#8217;t mean there isn&#8217;t room for innovation.<\/p>\n<p>Annoyed by the unnecessary bulk of existing solutions, [cperiod] has come up with <a href=\"https:\/\/github.com\/c-\/ESP-AHT10-Extra\" target=\"_blank\" rel=\"noopener noreferrer\">an ESP8266 temperature and humidity sensor that can plug directly into a standard USB port<\/a>. Slotted into a USB wall charger or power bank, this diminutive board can provide inconspicuous remote environmental monitoring wherever you need it. For extra hacker points, the board was even produced at home on a PCB mill.<\/p>\n<p><a href=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" data-attachment-id=\"393590\" data-permalink=\"https:\/\/hackaday.com\/2020\/01\/08\/an-esp8266-environmental-monitor-in-your-usb-port\/espusb_detail\/\" data-orig-file=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg\" data-orig-size=\"1200,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"espusb_detail\" data-image-description=\"\" data-medium-file=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?w=400\" data-large-file=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?w=800\" class=\"alignright size-medium wp-image-393590 lazyload\" data-src=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?w=400\" alt=\"\" width=\"400\" height=\"256\" data-srcset=\"https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg 1200w, https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?resize=250,160 250w, https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?resize=400,256 400w, https:\/\/hackaday.com\/wp-content\/uploads\/2020\/01\/espusb_detail.jpg?resize=800,512 800w\" data-sizes=\"(max-width: 400px) 100vw, 400px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 400px; --smush-placeholder-aspect-ratio: 400\/256;\" \/><\/a>In addition to the ESP-7 or 12 module (which plugs in via a header, should you need to swap it out), the board features a <a href=\"https:\/\/hackaday.com\/2018\/10\/03\/new-part-day-the-fifty-cent-usb-chip\/\">CH330N USB to UART chip<\/a> and HT7233 voltage regulator. For the sensor itself, [cperiod] has bucked convention a bit and went with the I2C-connected AHT10 over something more common like a member of the BME family.<\/p>\n<p>Unfortunately, this design suffers from the same issue we&#8217;ve seen in other compact environmental monitoring solutions; namely, that the heat generated by the chip itself skews the temperature readings. To combat this, aggressive power saving functions are baked into the firmware to make sure the ESP is in a deep sleep as much as possible. While not a perfect solution, it does prevent the ESP from warming the PCB up so much that it invalidades the reported data.<\/p>\n<p>By now, the particularly astute reader may have realized that all the additional components used for the USB side of this board aren&#8217;t <em>strictly<\/em> necessary. After all, if you can <a href=\"https:\/\/hackaday.com\/2019\/12\/07\/simple-pogo-programmer-for-esp8266-modules\/\">pull the ESP module out of the header and program it separately<\/a>, then you don&#8217;t actually need to include that capability in each sensor node. While true, we&#8217;re hardly the ones to complain when a hacker showboats a bit on their designs.<\/p>\n<p>source <a href=\"https:\/\/hackaday.com\/2020\/01\/08\/an-esp8266-environmental-monitor-in-your-usb-port\/\">https:\/\/hackaday.com\/2020\/01\/08\/an-esp8266-environmental-monitor-in-your-usb-port\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At this point, we&#8217;ve all seen enough ESP8266 &#8220;weather stations&#8221; to know the drill: you just put the ESP and a temperature sensor inside a 3D printed case, and let all those glorious Internet Points flow right on in. It&#8217;s<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"http:\/\/cornay.co.za\/wp\/2020\/01\/08\/an-esp8266-environmental-monitor-in-your-usb-port\/\">Read more <span class=\"screen-reader-text\">An ESP8266 Environmental Monitor in your USB Port<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[],"class_list":["post-3453","post","type-post","status-publish","format-standard","hentry","category-news-2"],"_links":{"self":[{"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/posts\/3453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/comments?post=3453"}],"version-history":[{"count":1,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/posts\/3453\/revisions"}],"predecessor-version":[{"id":3454,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/posts\/3453\/revisions\/3454"}],"wp:attachment":[{"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/media?parent=3453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/categories?post=3453"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cornay.co.za\/wp\/wp-json\/wp\/v2\/tags?post=3453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}