Author Topic: Rechargeable Battery Solution for MCU Projects  (Read 15088 times)

0 Members and 1 Guest are viewing this topic.

Offline TJ232Topic starter

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Rechargeable Battery Solution for MCU Projects
« on: March 16, 2015, 09:40:10 am »

What are your favourite Rechargeable battery solution for your MCU Projects?

My proposal it's based on a 3.7V Li-ion Cell and a charger/monitor circuit to ensure proper usage for the Li-ion Cell.

See more details : http://www.esp8266-projects.com/2015/03/mailbag-arrival-new-battery-solution.html
ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #1 on: March 16, 2015, 09:54:51 am »
I am also using the TP4056 on my NanoLipo. I am now at REV. C and the REV B. version used the MCP73831/ But this chip was unstable, when no battery was connected.

Do you also have a load separator circuit?
When the battery is charging, the load is decoupled from the battery, so it will not disturb the loading process.

 

Offline TJ232Topic starter

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Re: Rechargeable Battery Solution for MCU Projects
« Reply #2 on: March 16, 2015, 10:10:03 am »
I am also using the TP4056 on my NanoLipo. I am now at REV. C and the REV B. version used the MCP73831/ But this chip was unstable, when no battery was connected.

Do you also have a load separator circuit?
When the battery is charging, the load is decoupled from the battery, so it will not disturb the loading process.



Very nice work  :-+

I was also dissapointed by the MCP Battery Management series, looks like it needs some sort of loading to remain stable.
Separate MOSFET Switch is used in case we want the loading to be done off-line. I know it might not charge fully 100% when load is not decoulped but in my case it's not desirable to have it decoupled.

A compromise must be done, depending also on the application. I have designed also redundant battery charging circuits for 100% 24/7 systems where you have 2 separate Li-ion Cells with charging and monitoring circuits and when one it's charging offline the other one it's powering the circuit.
ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #3 on: March 16, 2015, 10:21:34 am »
I have done it like this:

When USB is connected (VBUS), then the mosfet Q1 decouples the battery from the input of the regulator. The input for the regulator is then coming though diode D2. The relative large capacitor C3 ensures that there are no power glitches when USB is connected or disconnected. Resistor R4 pulls the gate of Q1 to ground when no USB is connected.

The MCU can determine the battery status through D2/D3. This lines are also interrupts, and can wake the CPU from sleep.

The regulators quiescent current is 8 uA, so that is effectively the current drawn from the battery when the mcu is in sleep. If that is to much, the regulator can be left out, and resistor R19 is placed.
Current in sleep is then 160 nA !!



And resitors R13 and R14?
These are part of the "foolproof plan"  :-DD
When a user programs D2 or D3 as outputs, the resistors prevent then that D2/D3 are "hard" shortened to ground.

R2 is the charge current programming resistor.
« Last Edit: March 16, 2015, 10:26:01 am by JohnnyBerg »
 

Online Howardlong

  • Super Contributor
  • ***
  • Posts: 5319
  • Country: gb
Re: Rechargeable Battery Solution for MCU Projects
« Reply #4 on: March 16, 2015, 10:43:46 am »
How are these devices determining the USB host charging capabilities, ie SDP, CDP and DCP (and others like Apple)?

For SDP host ports, is there control of charge and load current pre-enumeration?

The reason I ask is that I have recently been through this pain, and it's frustrating that as yet there doesn't appear to be a reasonable integrated solution covering host port capability detection, separate charge and system load management, and the charging itself, leading to 20 or so BOM parts just for a charging circuit.
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #5 on: March 16, 2015, 10:55:28 am »
How are these devices determining the USB host charging capabilities, ie SDP, CDP and DCP (and others like Apple)?

For SDP host ports, is there control of charge and load current pre-enumeration?

As far as I know, the TP4056 and MCP73831 have no detection what so ever.

For me, it was simple :)
I set the programming current resistor to 2k2, giving 500 mA charge current. That is in fact what SDP can do. I just assumed that there is a modern USB 2.0 or 2.0 capable charger connected.


note: see http://www.maximintegrated.com/en/app-notes/index.mvp/id/4803
 

Offline TJ232Topic starter

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Re: Rechargeable Battery Solution for MCU Projects
« Reply #6 on: March 16, 2015, 11:08:43 am »
How are these devices determining the USB host charging capabilities, ie SDP, CDP and DCP (and others like Apple)?

For SDP host ports, is there control of charge and load current pre-enumeration?

The reason I ask is that I have recently been through this pain, and it's frustrating that as yet there doesn't appear to be a reasonable integrated solution covering host port capability detection, separate charge and system load management, and the charging itself, leading to 20 or so BOM parts just for a charging circuit.

More or less the same as JohnnyBerg above, in case of direct USB port charging, I was looking to not exceed 500mA charge current. The approach didn't created any trouble until now. I was doing my best to avoid the SDP, CDP and DCP madness :D
ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: Rechargeable Battery Solution for MCU Projects
« Reply #7 on: March 16, 2015, 02:25:37 pm »
This one is done now, but i have not updated the thread further since noone seemed to be interested:

https://www.eevblog.com/forum/projects/one-lithium-battery-to-rule-them-all/msg624869/

The charging and battery management is complete and works, currently im routing the board.
It will be a sandwich design, two boards, one battery management and one for the voltage regulators.
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #8 on: March 16, 2015, 02:35:24 pm »
It will be a sandwich design, two boards, one battery management and one for the voltage regulators.

Quite a large BOM ..

No idea how big the boards gonna be?
For comparison, my board is 50 x 23 mm .. MCU+Charger+Status+Regulator

Have you measured what current you draw in sleep? Regulators are nasty things, when you trying to sleep :P
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: Rechargeable Battery Solution for MCU Projects
« Reply #9 on: March 16, 2015, 02:45:34 pm »
No idea how big the boards gonna be?
For comparison, my board is 50 x 23 mm .. MCU+Charger+Status+Regulator

It could be quite small, but since i am 0805 components and big IC packages im at about 55x30mm.
But i am more concerned with battery life, i am ok with that.
I dont want to build something small and shiny like a phone, what will only hold a charge for 10 hours.

Quote
Have you measured what current you draw in sleep? Regulators are nasty things, when you trying to sleep :P

<100µA, my meter wont measure currents <100µ reliably.
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #10 on: March 16, 2015, 02:55:13 pm »
<100µA, my meter wont measure currents <100µ reliably.

100 uA is still a lot  8)
Do some math with a 230 mAh battery .. wooh

I am down to 8 uA with 3V3 regulator and 160 nA without. That gives a reasonable time on battery ;)
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: Rechargeable Battery Solution for MCU Projects
« Reply #11 on: March 16, 2015, 03:01:31 pm »
<100µA, my meter wont measure currents <100µ reliably.

100 uA is still a lot  8)

This is designed to run with at least 2Ah batteries, for days at a time without power saving. Months with power saving.
As i said, i do not want to make something like my smartphone that runs flat faster then i can push the buttons.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8275
Re: Rechargeable Battery Solution for MCU Projects
« Reply #12 on: March 16, 2015, 03:52:15 pm »
How about... single-cell battery right across the Vbus with a blocking diode. :P



Before anyone asks, this circuit was used successfully in tens of millions of products...
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #13 on: March 16, 2015, 03:58:32 pm »
Before anyone asks, this circuit was used successfully in tens of millions of products...

Ok, I'l take the bate: where is the charger?

Or is this a "free energy" project ?  8)

Serious, this is just a load share, and the same as mine. D101 = D2, Q101 = Q1, R107 = R4
 

Offline janekm

  • Supporter
  • ****
  • Posts: 515
  • Country: gb
Re: Rechargeable Battery Solution for MCU Projects
« Reply #14 on: March 16, 2015, 04:00:45 pm »
Before anyone asks, this circuit was used successfully in tens of millions of products...

Ok, I'l take the bate: where is the charger?

Or is this a "free energy" project ?  8)

Serious, this is just a load share, and the same as mine. D101 = D2, Q101 = Q1, R107 = R4

I think you missed the bit where Q101 and R107 are NC! So I guess the charger is the combination of current limit through R125 and the over voltage protection on the battery... Scary...
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: Rechargeable Battery Solution for MCU Projects
« Reply #15 on: March 16, 2015, 04:10:06 pm »
I think you missed the bit where Q101 and R107 are NC!

I did  8)

Quote
So I guess the charger is the combination of current limit through R125 and the over voltage protection on the battery... Scary...

 :-DD

Quote
Before anyone asks, this circuit was used successfully in tens of millions of products...

Tjaaa .. I rest my case .. I think  :P
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf