Showing posts with label battery. Show all posts
Showing posts with label battery. Show all posts

Wednesday, June 19, 2024

How Is Battery Percentage Measured On My Device?

I get this question often - how is battery percentage measured and calculated by devices like our
phones, leaf blowers, electric cars, etc?  

It turns out most modern Battery Management Systems (BMS) use a combination of four variables to estimate the remaining charge in a battery.

 

1.    Voltage Measurement: Used to provide quick and direct State Of Charge (SOC) estimates  but can be inaccurate due to load variations. There are two measurements typically  considered:

  • Open-Circuit Voltage (OCV): This measures the voltage when the battery is not under load. Each battery type has a characteristic voltage curve that relates voltage to SOC.
  • Under-Load Voltage (ULV): This measures the voltage while the battery is under load. Compensation is required to account for the voltage drop due to internal resistance. 

2.    Coulomb/Charge Counting:  Precise over short periods but can drift over time due to measurement inaccuracies.

  • Coulomb/Charge Counting involves tracking the current flowing in and out of the battery. By integrating the current over time, you can estimate the total charge added or removed. This method needs a known initial state of charge to be accurate.      

3.    Impedance Tracking: Provides additional data to refine SOC estimates but requires complex algorithms and computations.

  • Impedance Tracking uses the battery's internal impedance (reciprocal resistance) which changes with the state of charge. By measuring the impedance, the state of charge can be estimated.

4.    Temperature Compensation: Battery performance and voltage readings can be significantly affected by temperature. 

  • Temperature sensors are used to adjust the SOC calculations.

Battery Capacity


Battery capacity C for a new battery is a given and specified by the battery manufacturer in ampere-hours (Ah) or milliampere-hours (mAh) units, depending on the size of the battery. As an example, the iPhone 15 Pro is equipped with a single battery rated at 3274mAh.  If you are wondering about your Tesla or Prius - batteries are wired in parallel – for example a 2020 Long Range Tesla Model 3 battery pack has 46 cells in parallel with each cell rated at 5 Ah. So that Tesla battery pack has about 46x5 Ah = 230 Ah capacity. Over time, battery capacity will decrease.

 

Some Variables


Let’s look at a couple of simple calculations used by our devices to calculate battery charge/percentage. Before we look at the formulas, let’s identify some variables used in the calculations.

 

Initial Calibration:

  • Battery starts fully charged (100% SOC).
  • OCV is measured to establish a reference point.

Discharge Phase:

  • Voltage is continuously monitored.
  • Coulomb counting tracks the charge removed.
  • Impedance is checked periodically to refine the SOC estimate.
  • Temperature compensation adjusts the readings. 

State of Charge Calculation:

  • Combining the voltage, coulomb count, and impedance data, the BMS computes the SOC.
  • This value is then translated into a percentage to display the remaining battery life. 

Finally - A Couple Formulas


There are two formulas commonly used - the first uses current (Coulomb Counting) and the second voltage (Voltage-Based SOC Estimation)

 

Formula for Coulomb Counting Estimation:



Formula for Voltage-Based SOC Estimation:



Battery percentage calculations rely on sensor measurements that account for the various factors affecting battery performance. Using real time sensor data, BMS algorithms continue to advance, providing estimates of remaining battery charge.

Friday, December 13, 2013

On The Road With A Powerocks Magicstick Extended Battery

Highly Recommended
Just back from a quickie business trip – my first with a Powerocks Magicstick 2800 universal extended battery for my phone. When I travel I’ve always been careful about phone use just in case I need to make an emergency call, check for an important email, text etc.  I never seem to be able to find an electrical outlet when I need one. The Magicstick eliminates these worries. 

I’ve been reading Leander Kahney latest book on Jonathan Ive, the head of Industrial Design at Apple. It’s really opened my eyes to intuitive design, simplicity and absence in clutter. The Magicstick has that Jony Ive / Apple feel. It comes in a bunch of different colors (mine is black) and includes a micro-USB-to-USB cable for charging up the Magicstick and a nice little bag to keep it in. 

It’s a small (sort of reminds me of a BIC cigarette lighter at 3.5” long, and 7/8” in diameter) 2800mAh portable battery that you pre-charge using an included micro-USB-to-USB cable. When it comes time to charging the Magicstick you just plug the charging cable in and charge it up. When you want to charge your phone or other portable device you just plug the cable that came with the phone or other device into the Magicstick standard USB port. On the opposite end of the Magicstick there is a smart push-button LED that shows charge status. Blue light = 70% - 100% full, Green light = 30% - 70% full, Red light = 1% - 30% full. 

I was able to get two charges on my old iPhone 3GS (from approx. 20% to 100% and yes I still have an old iPhone) with one fully charged up Magicstick. It will charge Apple, Samsung, Nokia, Motorola, Blackberry, etc, etc, etc devices - basically anything that will charge using a USB connection.  Simple.

A nice little stocking stuffer, grab bag, office swap gift, birthday present, etc - The Captain and I give it our highest rating of 5 out of 5 Gordoccinos.  

You can get more info on the Powerocks website. 

Wednesday, September 12, 2012

When Will Batteries Last A Week?

Like many of you, I'm constantly on the look-out for wall outlets. Meetings, airports, etc - if there is an outlet, I'm trying to find it. I've always fantasized about not having to carry around a charger. Wouldn't it be nice to get 40 hours out of a battery before having to recharge? It sure would! When will it happen? Lenovo has an interesting infogram out that take a look back and look forward when it comes to battery life technology.

Infographic showing when battery technology will advance far enough that a laptop battery will last a full work week.

Looks like we've got about ten years to go!