{"id":29,"date":"2015-10-02T23:50:52","date_gmt":"2015-10-02T23:50:52","guid":{"rendered":"http:\/\/www.beer.org\/beerblog\/?p=29"},"modified":"2016-01-04T02:02:53","modified_gmt":"2016-01-04T02:02:53","slug":"esp8266-esp-12-deep-sleep","status":"publish","type":"post","link":"https:\/\/www.beer.org\/blog\/index.php\/2015\/10\/02\/esp8266-esp-12-deep-sleep\/","title":{"rendered":"ESP8266 ESP-12 Deep Sleep"},"content":{"rendered":"<p>To address the issue of my temperature reading too high on boards with temperature\/humidity sensors, I opted to deploy the ESP system_deep_sleep(us) call to put the board to sleep after publishing the temperature via MQTT.<\/p>\n<p>Current draw when the board boots is 145mA until it connects to the AP, then it seems to go down to about 77mA and then when it goes to sleep, it draws about 55-60uA&#8230;<\/p>\n<p>Presently I have it configured to wake up, bind to my AP, after it gets an IP, publishes the temperature\/humidity and go to sleep for 30 seconds.<\/p>\n<p>Here is the board:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.beer.org\/blog.old\/images\/wifi_temphum_phrob_v2.png\" alt=\"\" width=\"600\" height=\"800\" \/><\/p>\n<p>Here&#8217;s a thermal video demonstrating this. At 00:04 and 00:35, you can see the LDO heat up when it wakes up from it&#8217;s nap:<\/p>\n<div class=\"youtube\" align=\"center\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/nMYnJ_O-aaE\" width=\"500\" height=\"500\" frameborder=\"0\"><\/iframe><\/div>\n<p>Video was taken using a <a href=\"http:\/\/therm-app.com\/\">Therm-App<\/a> android thermal imaging camera borrowed from <a href=\"http:\/\/ainslies.net\/\">Angus<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To address the issue of my temperature reading too high on boards with temperature\/humidity sensors, I opted to deploy the ESP system_deep_sleep(us) call to put the board to sleep after publishing the temperature via MQTT. Current draw when the board boots is 145mA until it connects to the AP, then it seems to go down&#8230; <a class=\"moretag\" href=\"https:\/\/www.beer.org\/blog\/index.php\/2015\/10\/02\/esp8266-esp-12-deep-sleep\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-phrobs"],"_links":{"self":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":3,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}