# Detect State of Charge of Lithium-ion

**URL:** <https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213>\
**Category:** Factual Questions\
**Created:** [November 16, 2012, 5:06pm UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213 "2012-11-16T17:06:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arzan.irani](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arzan.irani](https://boards.straightdope.com/u/arzan.irani)\
**Post date:** [November 16, 2012, 5:06pm UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/1 "2012-11-16T17:06:47Z")

</div>

I am building a battery pack charger for the iPhone, and need to know a way to detect the state of charge of the iPhone’s internal battery, so that I could stop charging it when it’s completely charged.

---

<div class="post-metadata">

**Author:** ![jz78817](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jz78817/32/1028_2.png) [@jz78817](https://boards.straightdope.com/u/jz78817)\
**Post date:** [November 16, 2012, 5:15pm UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/2 "2012-11-16T17:15:29Z")

</div>

I’m confused why- the iPhone’s internal charging controller will do that by itself.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [November 16, 2012, 5:42pm UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/3 "2012-11-16T17:42:25Z")

</div>

If you are charging the battery inside the phone, then the phone’s internal circuitry will handle the charging algorithm for you. All you need to do is supply it with a constant voltage of 5 volts with a current of up to 1 amp.

If you are charging the battery outside the phone, lithium ion batteries are generally charged with a constant current until the voltage reaches its maximum value. Then a constant voltage is applied and the current is monitored until it drops below a certain threshold. Getting the technical data sheets for the battery from the manufacturer will show you the algorithm and will probably even have a pretty graph in it showing the voltage charge curve and the decreasing current curve.

---

<div class="post-metadata">

**Author:** ![arzan.irani](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arzan.irani](https://boards.straightdope.com/u/arzan.irani)\
**Post date:** [November 18, 2012, 7:38am UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/4 "2012-11-18T07:38:33Z")

</div>

The battery pack charger will connect to the USB. While connected to the USB, there are two batteries that need to get charged. The iPhone’s internal battery, and the battery pack inside the charger.  
When plugged in, I want the current from the USB to first charge the iPhone, and then, once the iPhone is completely charged, direct the current to the battery pack.

Essentially I need a circuit or component that can help me detect whether the iPhone is fully charged or not.

---

<div class="post-metadata">

**Author:** ![Joey\_P](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@Joey\_P](https://boards.straightdope.com/u/Joey_P)\
**Post date:** [November 18, 2012, 7:55am UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/5 "2012-11-18T07:55:52Z")

</div>

When the iPhone is done charging, does it continue to draw current? If it doesn’t could you just set up some circuitry to keep an eye on the current going into the iPhone? When it stops drawing, redirect it to your other battery.

---

<div class="post-metadata">

**Author:** ![arzan.irani](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@arzan.irani](https://boards.straightdope.com/u/arzan.irani)\
**Post date:** [November 18, 2012, 12:30pm UTC](https://boards.straightdope.com/t/detect-state-of-charge-of-lithium-ion/641213/6 "2012-11-18T12:30:54Z")

</div>

> [@Joey\_P](#):
>
> When the iPhone is done charging, does it continue to draw current? If it doesn’t could you just set up some circuitry to keep an eye on the current going into the iPhone? When it stops drawing, redirect it to your other battery.

The iPhone does continue to draw a reduced current when fully charged (100mA instead of 500mA)  
Is there someway to measure this and then cause the switch, like may be using a current comparator?
