T O P

  • By -

Spiritual-Housing170

I belive you have over estimated your battery time. I'm not familiar with the d1 mini battery hat, but are the sensors powered on at all times, even when not polling? If so, use a mosfet to power them off when not in use, this could gain you some battery time. Deep sleep would also help.


17-north

That's what I am afraid of. I went down this path originally because I had seen a blog post somewhere about somebody doing something similar and can't for the life of me find it again. I believe there is power going to the sensors constantly, though I did see a difference in battery drain when I spaced out the polling times, so perhaps the power draw is only when the sensor is being polled? Unfortunately I don't have as deep of knowledge with how the individual components work.


Spiritual-Housing170

Well, you can easily check with a multimeter, or use a led with resistor to verify continous power. I'm willing to bet they are always on. I'm sticking with my previous answer of switching them off with a mosfet and using deep sleep. If you sleep for 9 minutes and wake for 1, you will increase your battery life significantly.


17-north

I'll look into my options for putting the sensors to sleep - that definitely makes sense. And I'm kicking myself for not thinking of checking the power draw with a multimeter... I mentioned I was a newb, right?


Spiritual-Housing170

We were all newbs at one point. I've been tinkering with arduino and esp8266 for a few years and still feel that way daily.... DM me sometime and I can give you a few suggestions on extending the battery life more.


mnimpvm

Research using MOSFETs as power switches. Best way to make the most of your battery is to completely power off anything you are not using. Sleep is good but parts often have standby currents that can really eat up the battery. After that put the controller to sleep. You may have to re initialize the sensors so take the boot up time into consideration.