
{"id":398,"date":"2017-08-06T18:32:30","date_gmt":"2017-08-06T08:32:30","guid":{"rendered":"http:\/\/bakke.online\/?p=398"},"modified":"2022-01-22T20:10:55","modified_gmt":"2022-01-22T09:10:55","slug":"solar-powered-esp8266","status":"publish","type":"post","link":"https:\/\/www.bakke.online\/index.php\/2017\/08\/06\/solar-powered-esp8266\/","title":{"rendered":"Solar powered ESP8266"},"content":{"rendered":"<p>Recently, I added solar power to one of my ESP8266 weather stations.<\/p>\n<p>With the right hardware, this was actually remarkably easy to do. \u00a0To make things nice and easy, I ordered an <a href=\"https:\/\/www.adafruit.com\/product\/390\">Adafruit USB\/DC\/Solar Li-Ion\/Li-Poly charger<\/a>. \u00a0(Top-right in the photo) \u00a0These boards can take DC input from USB, a 2.1mm power jack or from wires soldered directly onto the board. \u00a0It will then both charge a Li-poly battery and power a load. \u00a0Whatever power is left over from powering the load will be used to charge the battery, and if the load draws more than what the solar panel can provide, the\u00a0rest will be drawn from the battery.<\/p>\n<p><a href=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170806_163421.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-400\" src=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170806_163421-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" \/><\/a><\/p>\n<p><!--more-->The charger is designed for 6V solar panels, but unfortunately I didn&#8217;t have access to any 6 volt panels. \u00a0I did, however, have a few <a href=\"https:\/\/www.jaycar.com.au\/hobby-solar-module\/p\/ZM9012\">1.5V, 500mA panels<\/a>, and connected 4 of them in series to get a 6 volt array.<\/p>\n<p><a href=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170702_193112.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-401\" src=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170702_193112-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" \/><\/a><\/p>\n<p>The panels were mounted on some spare plywood, with all holes covered and wiring protected by epoxy glue. \u00a0I&#8217;ll give the plywood some coats of clear as well, before I start leaving this outside, to reduce the chances of water getting in behind the panels.<\/p>\n<p><a href=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170805_122838.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-402\" src=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170805_122838-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" \/><\/a><\/p>\n<p>I ran the wires through a hole in the side of the weather station enclosure, with a grommet inserted to reduce wear and tear on the insulation.<\/p>\n<p>I will be changing solar panels in the future as I experiment with different panel sizes (frankly, this one is too huge, and looks like something only its creator might love) so the wires are terminated in a screw terminal, from where I run a short set of hookup wires to the charger board.<\/p>\n<p>The battery is connected to the board through a JST connector marked BATT, and the weather station board is connected through another JST connector marked LOAD. \u00a0The battery itself is just loosely held in place by a cable tie, so I can easily remove and replace it, as I experiment with different battery sizes. \u00a0(Loose enough that the battery is not damaged)<\/p>\n<p><a href=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170805_123926.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-403\" src=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/20170805_123926-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" \/><\/a><\/p>\n<h3>So, how does it perform?<\/h3>\n<p>With a panel like that, I&#8217;d expect it to perform quite well, and indeed it does. \u00a0Even when the weather station is configured to wake up and report over WiFi every 30 seconds, the panel is still able to keep the battery topped up every day. \u00a0It will struggle a bit after a week of rain and overcast, so I have reduced the reporting rate to once every 2 minutes. \u00a0That&#8217;s still a lot more frequent than my other weather stations which report every 5 minutes. \u00a0This graph shows the measured supply voltage over 6 days.<\/p>\n<p><a href=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/1200mah_500ma-panel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-404\" src=\"https:\/\/www.bakke.online\/wp-content\/uploads\/2017\/08\/1200mah_500ma-panel-1024x427.png\" alt=\"\" width=\"840\" height=\"350\" \/><\/a><\/p>\n<p>Unfortunately, the 180K\u03a9\/56K\u03a9 voltage divider I had on this particular board was not particularly suited for a solar panel and Li-Poly battery scenario. \u00a0The resulting ~4.2x divider was meant for 3xNiMH cells.\u00a0 During bright sunshine, the supply voltage will reach 6V, but you can seethis detail is being clipped in the graph above, with the reported voltage topping out at 4.2V.<\/p>\n<p>I have replaced the high-side resistor with a 330K\u03a9, which gives a new division ratio of ~6.9x and will update this post when I have a few days of new readings.<\/p>\n<h3>A word of caution<\/h3>\n<p>Batteries containing lithium need to be treated carefully. \u00a0If they are damaged, short circuited, overcharged, overheated, frozen, or even just sweared at, they are likely to catch fire.<\/p>\n<p>Before you use such batteries, make sure your batteries will be treated properly, i.e. your circuits are safe, that the batteries are not overcharged or overheated, etc.<\/p>\n<p>What I have shown here worked for me, but you&#8217;ll need to do your own due dilligence on your own setup.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I added solar power to one of my ESP8266 weather stations. With the right hardware, this was actually remarkably easy to do. \u00a0To make things nice and easy, I ordered an Adafruit USB\/DC\/Solar Li-Ion\/Li-Poly charger. \u00a0(Top-right in the photo) \u00a0These boards can take DC input from USB, a 2.1mm power jack or from wires &hellip; <a href=\"https:\/\/www.bakke.online\/index.php\/2017\/08\/06\/solar-powered-esp8266\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Solar powered ESP8266&#8221;<\/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":[7,14,25,1],"tags":[15,9,23,24,30],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-arduino","category-electronics","category-the-notwork","category-uncategorized","tag-electronics","tag-esp8266","tag-internet-of-things","tag-notwork","tag-solar-power"],"_links":{"self":[{"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":1,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":1329,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/posts\/398\/revisions\/1329"}],"wp:attachment":[{"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bakke.online\/index.php\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}