How to calculate the life of battery in a battery powered application
Generally, in a battery powered application, the processor will be put to sleep and will wake up regularly to perform certain tasks and will go back to sleep after performing the tasks.Following parameters are required to calculate the life of the battery in a battery powered application.
Sleep Current: The current drawn from the battery when the processor is asleep.
Time in Sleep: The time the processor spends in sleep mode in a second.
Active Current: The current drawn from the battery when the processor is awake and is performing the required tasks.
Time in Active Mode: The time the processor spends in active mode in a second.
Capacity of the battery in mAH
Using the values #1 to #4, the average current consumption per second is calculated. Using this average current and the capacity of the battery, the life of the battery is calculated.
The VB application attached to this article can be used to calculate the battery life. Key in the On Time, Sleep Time, Active Current, Sleep Current and Battery Type or Capacity, click “Calculate” and the application will calculate the approximate battery life expected.