{"id":182,"date":"2019-04-07T18:11:12","date_gmt":"2019-04-07T08:41:12","guid":{"rendered":"https:\/\/sighmon.com\/says\/?p=182"},"modified":"2019-04-07T18:16:22","modified_gmt":"2019-04-07T08:46:22","slug":"power-battery-management","status":"publish","type":"post","link":"https:\/\/sighmon.com\/says\/power-battery-management\/","title":{"rendered":"Power &#038; battery management"},"content":{"rendered":"\n<p>Until now I&#8217;ve been powering the water quality sensors via a USB cable either to an external power supply, or directly to my laptop for debugging.<\/p>\n\n\n\n<p>For the sensors to work in the real world they&#8217;ll need to have at least a day&#8217;s battery life if not a week to be useable. I can imagine going for a walk every weekend to replace rechargeable batteries would be fine, but any shorter than that might get a bit tedious.<\/p>\n\n\n\n<p>I have a few friends in the mobile phone repair business, and they gave me a supply of phone batteries that were past their prime for supplying high amp outputs, but seem to be fine for a regular trickle like this project. So I&#8217;m hoping that maybe I can make use of a bunch of those 3.7v 1050mAh batteries and give them a new life.<\/p>\n\n\n\n<p>To get their 3.7v up to 5v that The Things Uno uses, I&#8217;ll need a boost converter &#8211; so have been playing with this <a href=\"https:\/\/core-electronics.com.au\/powerboost-1000-charger-rechargeable-5v-lipo-usb-boost-at-1a-1000c.html\">Adafruit 1000c<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/DBA1014B-814F-47B9-98D7-76AB2BCFD20C-1024x768.jpg\" alt=\"\" class=\"wp-image-183\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/DBA1014B-814F-47B9-98D7-76AB2BCFD20C-1024x768.jpg 1024w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/DBA1014B-814F-47B9-98D7-76AB2BCFD20C-300x225.jpg 300w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/DBA1014B-814F-47B9-98D7-76AB2BCFD20C-768x576.jpg 768w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/DBA1014B-814F-47B9-98D7-76AB2BCFD20C-1568x1176.jpg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Adafruit 1000C boost converter &amp; recycled Nokia 3.7v 1050mAh battery.<\/figcaption><\/figure>\n\n\n\n<p>This setup works very nicely, but given that these batteries are quite old I&#8217;d expect to only get about 85% of their original capacity from them. So let&#8217;s do a little test.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"235\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1-1024x235.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1-1024x235.png 1024w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1-300x69.png 300w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1-768x176.png 768w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1-1568x360.png 1568w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/water-quality-sensor-battery-life-1.png 1786w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Battery life calculations.<\/figcaption><\/figure>\n\n\n\n<p>To my utter surprise, I actually got ~5 hours out of the old Nokia battery or about 90% of it&#8217;s original life. And that&#8217;s including the boost converter efficiency loss too. So things are looking good.<\/p>\n\n\n\n<p>Clearly 5 hours is not equal to 1 week. So next I&#8217;ll have to go back to the Arduino code, and perhaps only measure once a minute instead of once a second, and see if I can get it to sleep in between to save battery life. &#x1f91e;&#x1f3fc;<\/p>\n\n\n\n<p>But in the meantime, it&#8217;s nice to see it all fit in the <a href=\"https:\/\/www.jaycar.com.au\/ip65-sealed-polycarbonate-enclosure-with-mounting-flange-115-w-x-65-d-x-40-h-mm\/p\/HB6249\">water-proof case<\/a>, and transmit for 5 hours without a problem!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/9DE8B039-8251-4676-BF42-65F71AE323FA-1024x768.jpg\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/9DE8B039-8251-4676-BF42-65F71AE323FA-1024x768.jpg 1024w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/9DE8B039-8251-4676-BF42-65F71AE323FA-300x225.jpg 300w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/9DE8B039-8251-4676-BF42-65F71AE323FA-768x576.jpg 768w, https:\/\/sighmon.com\/says\/wp-content\/uploads\/2019\/04\/9DE8B039-8251-4676-BF42-65F71AE323FA-1568x1176.jpg 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>All of the components fit snugly in this water-proof enclosure.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Until now I&#8217;ve been powering the water quality sensors via a USB cable either to an external power supply, or directly to my laptop for debugging. For the sensors to work in the real world they&#8217;ll need to have at least a day&#8217;s battery life if not a week to be useable. I can imagine &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sighmon.com\/says\/power-battery-management\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Power &#038; battery management&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":186,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[40,11,35,39,37,38,36,14,34],"class_list":["post-182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-adafruit","tag-arduino","tag-battery","tag-boost","tag-mobile-phone","tag-nokia","tag-recycled","tag-sensors","tag-water-quality","entry"],"_links":{"self":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":1,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/posts\/182\/revisions\/187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/media\/186"}],"wp:attachment":[{"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sighmon.com\/says\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}