Reduce battery consumption
Posted: Tue Apr 05, 2016 7:21 am
Hi, I have a small project in which an ESP-12 wakes up from deep sleep every 30 minutes, polls an hygrometers and reports the data to a local server. Everything is battery operated, and my aim would be to achieve at least some months of operations without battery charging. However, my best shot at the moment is 2 weeks.
The code is simple, I simply wakeup, connect to the network, and send an HTTP request to the server, then go back to sleep. My guess is that the major consumption is when the ESP is trying to get the IP from the DHCP server, which takes considerable time. I'm wondering if I could put the IP as static, and just associate with the WLAN. Otherwise, I would try not to send the data every 30 minutes, but every hour or so, but this would reduce the number of readings I have.
Does anybody have a "best practice" or ideas on how to reduce the consumption?
The code is simple, I simply wakeup, connect to the network, and send an HTTP request to the server, then go back to sleep. My guess is that the major consumption is when the ESP is trying to get the IP from the DHCP server, which takes considerable time. I'm wondering if I could put the IP as static, and just associate with the WLAN. Otherwise, I would try not to send the data every 30 minutes, but every hour or so, but this would reduce the number of readings I have.
Does anybody have a "best practice" or ideas on how to reduce the consumption?