I'm working on a device that sleeps for most of the time and occasionally wakes up and takes some sensor readings. This device will be battery powered so I'm trying to calculate how long it will run on a 2,000 mAh battery. A typical hour of application looks like this:
It's easy for me to calculate how long each stage would take by itself (for example sleep could run for (2,000 mAh/.05 mA) = 40,000 hours) but I'm confused on how I would calculate every stage together and get an accurate calculation of how long the battery would last.
Thanks!