My son and I are working on making a dryer/washer done detector for my wife using the accelerometer on the Hanna board.
We designed it to be fully automatic, so no buttons to press to start it, it is just attached to the dryer, and uses the accelerometer to detect dryer start/dryer done.
When done, it sends a text to my wifes phone. This will run on the 4AA batteries on the Hannah board, and we want to maximize battery life.
We don’t need wifi until the dryer is done and sends the text, so we assume we can shut down wifi using
imp.setpowersave(true);
The text message gets send by the agent, so will the wifi fire up automatically when we call agent.send(), or do we have to turn it back on using imp.setpowersavge(false) ??
Since we are semi-constantly reading the accelerometer to detect movement, I don’t think we can get any benefit from
imp.deepsleepfor(), or can we?
We’ll also watch the battery voltage so we can alert when they need to be replaced. I think that making an active voltage divider for the battery voltage will save battery life here also.
Anything else I need to know about the Hannah board to save battery life?
Any thoughts on best battery practice for this project would be appreciated.
Thanks,
Scott