Pages: [1]   Go Down
Author Topic: Question: How to accurately calculate battery % left?  (Read 543 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to know how do electronics (ie smartphones,mobilephones,laptops etc) know exactly what % of juice is left in the battery and how long that juice is going to last.

Thank you in advance
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to know how do electronics (ie smartphones,mobilephones,laptops etc) know exactly what % of juice is left in the battery and how long that juice is going to last.

Thank you in advance


Such 'fuel gage' measurements are often pretty inaccurate on many consumer devices. There are two methods commonly used, especially for Li-Po powered devices. The 'low tech' method is to simply measure the battery terminal voltage while in use as LiPo cell has a fairly linear voltage discharge 'curve' of 4.2 at 100% down to 3.0 volts which is the common recommended lowest discharge voltage to use. The more 'higher tech' method is to measure current consumption continuously and integrate the value over time such that one can measure the actual mAH of capacity consumed sense the last full charge.

Lefty
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there another better/more sophisticated way to measure current other than to pass the current through a resistor and measure the voltage drop across it?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34541
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use hall effect current sensors but they only work with heaver currents. What current do you have?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the minimum amount of current that these sensors can sense? The current i would like to measure would be between 5mA to 10A or even more.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34541
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well the 5mA is right out. You should start to get usable readings at about 200mA right up to 10A and beyond.

Have a look at what is on offer with this selection page on current sensors.

http://uk.farnell.com/sensors-transducers_current
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the help Mr.Lefty and Mr.Mike
By the way these sensors are extremely expensive. I guess i ll stick to the good old resistor for measuring current :d 
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 150
Posts: 5656
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a 1 Ohm resistor in the power supply and measure the voltage drop across it.

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or an even smaller value to reduce the power dissipated and increase circuit efficiency
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2086
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a lot of cheap "high side current sense" chips from TI, LT, Maxim, Microchip, AD, ST. That is what you need.  You need a few milliohm resistor (maybe a short pcb trace??) with such HSCS amplifier. Measure the current and voltage with A/D each 10ms and sum it. You'll get roughly the capacity. Just google it..
Reading: http://www.maximintegrated.com/app-notes/index.mvp/id/746
« Last Edit: February 06, 2013, 05:46:02 pm by pito » Logged

Pages: [1]   Go Up
Jump to: