views:

244

answers:

2

Hello all,

I am looking for a way to run an accurate test on an iPhone and find how long it takes for battery percentage to drop. While considering this I thought

  1. Would the temperature of the battery make a difference to my result i.e If I took my iPhone outside and ran the test would it be consistent with the test I ran indoors?

  2. Does the percentage left in the battery when the test is run make a difference i.e Would the battery percentage drop faster if the test was run at 30% when compared with 95%?

My goal is a test which I can run on my device and get the same result (or near enough) every time the app is run.

I have the app logic working, this was just a last thought. Is there any code I could use to factor in the above problems and iron out my inconsistencies? Possibly find the temperature of the battery and do something with this?

Many thanks in advance,

Stuart

+2  A: 
  1. Yes, the temperature could play a role in how fast the battery drains. See: http://chemistry.about.com/od/howthingsworkfaqs/f/coldbattery.htm

  2. Yes, the amount of battery life left does affect how fast the battery drains. It takes much less time to charge a battery to 65% than it does to charge it from 65% to 100%. The same thing happens with discharging.

Chetan
I don't understand (2): do you mean 65% as the meter graphic shows it? Certainly if it runs two hours before it gets to 65% on the meter, and one hour later, it's only one-third charged at a nominal 65%.
David Thornley
I meant that a normal battery takes less time to charge to 65% of the max charge it can hold than to charge from 65% to 100% of the charge it can hold.
Chetan
A: 

The IPhone has a lithium ion battery. There will certainly be technical literature on the web which describes test conditions for such batteries.

John R Doner