I am working on a project using an ESP8266 nodemcu board, and a reed switch. I need to power the board using batteries, as it will not have easy access to power. I hooked up 3 AA(1.5v) to it, and it was working fine all of yesterday. This morning, it does not work, and it would appear I drained the batteries.
I am looking for a way to run it, and conserve power. I have thought of the following solutions, and would appreciate any feedback: 1) turn off wifi and when a change is detected in the switch turn it back on to log the change. 2) deep sleep, basically the same as the other one but using a deep sleep.
I have done the preliminary searching on the methods, but would also like some feedback as if i am heading in the right direction or not. Is it also possible to get the current power left in the batteries to print out?