Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

If I know how many millamps I'm drawing, and also for how many milliseconds, how do I calculate this to mAh consumed?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

There are 1000 milliseconds in 1 second. There are 3600 seconds in 1 hour. That gives us 3600000 milliseconds in hour.

Consumed charge will be:

C = I * t / 3600000

where [C] is charge in [mAh] and [I] is current in [mA], and [t] is time in [ms]

If you want to calculate/estimate battery life - keep in mind, that nominal battery capacity applies to some nominal current / load. If your device draws small current - you will have more available capacity, and if current is large - you may get less mAh than nominal capacity.

Battery discharging with pulses may also affect "available" energy.

See battery documentation for more information.

share|improve this answer
    
I chose yours as it was easier to understand, having a formula. thanks. –  Hayden Thring Apr 18 at 23:10
    
Erm, 1 mA over one second equals 1mC, not 1C. –  Shamtam Apr 18 at 23:39
1  
@Shamtam Right. I removed wrong information. –  Kamil Apr 20 at 16:20

That should be easy - each hour lasts 3.6 million milliseconds so each milliampere-hour contains 3.6 million milliampere-milliseconds. You have to multiply the current by the number of milliseconds which will give you milliampere-milliseconds and then divide that by 3.6 million to get milliampere-hours.

share|improve this answer

Integrate the current over time and you have your charge. If you want that in mAh, divide by \$ 3.6 \cdot 10^6 \$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.