Author Topic: Li-on charging ICs  (Read 4623 times)

0 Members and 1 Guest are viewing this topic.

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Li-on charging ICs
« on: January 06, 2017, 12:50:10 am »
I have a system that runs on 3.3V and I want to run it off a single 3.7V Li-on cell. I am planning to use a 3.3V LDO such as the BU33SD5 to lower the battery voltage. However I also want to charge the battery in-circuit from USB. My current plan is to use a MCP73811 to charge the Li-po at 85mA. So I would connect the VDD (power in) pin to the VBUS pin on the USB port, and connect the battery AND system-load (ie the LDO) to the VBAT pin (const current/oltage out). The obvious downside of this is that when charging, if you use the system then you may be stealing some of the 85mA charging current.

USB -> MCP73811 -> battery in parallel with LDO -> system

As this is my first rechargeable battery project, I just want to be careful that I don't do anything stupid - so is this a reasonable solution?

Is there a more elegant way to do this? Perhaps some kind of integrated solution that separates the battery from the system load and generates the 3.3V either from the battery or the USB voltage (depending on the situation).
Read about my stuff at: projects.matthollands.com
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1246
  • Country: nz
Re: Li-on charging ICs
« Reply #1 on: January 06, 2017, 01:09:17 am »
This is what I do...
Excuse the rush job of the schematic.

Edit:
Battery is isolated from load while charging and the USB 5v supplies the load as well.
When USB 5v is removed, uninterrupted power is supplied by the battery.
« Last Edit: January 06, 2017, 01:11:57 am by Mr.B »
Where are we going, and why are we in a handbasket?
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #2 on: January 06, 2017, 01:02:18 pm »
This is what I do...
Excuse the rush job of the schematic.

That's something like I was imagining actually! Think I might borrow it  ;)

I have a question about the choice of FET. Normally for a P-channel FET datasheet I would expect to see the Vds/Id curves with Vds and Id negative (because p-channels normally conduct from source to drain). But the datasheet for this transistor has positive Vds and Id. is that because they're just ignoring the polarity? Or is it known that the relationship is symmetrical? ie flipping the polarity of Vds flips the polarity of Id (assuming Vgs stays constant) but keeps the same magnitude. Or maybe this transistor is designed to be connected "backwards"?

Link to datasheet:
http://www.vishay.com/docs/70833/70833.pdf
Read about my stuff at: projects.matthollands.com
 

Offline vealmike

  • Regular Contributor
  • *
  • Posts: 192
  • Country: gb
Re: Li-on charging ICs
« Reply #3 on: January 06, 2017, 01:47:39 pm »
All good, but you can't ever turn it off...

How about:
    a 2nd PFET back to back with the battery PFET. Couple the gates together.
    Add a 2nd diode with resistor with anode to the battery and cathode to the FETs gate.
    Put a switch to GND or GPIO where your 10K resistor is GNDed.

 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #4 on: January 06, 2017, 03:04:32 pm »
All good, but you can't ever turn it off...

How about:
    a 2nd PFET back to back with the battery PFET. Couple the gates together.
    Add a 2nd diode with resistor with anode to the battery and cathode to the FETs gate.
    Put a switch to GND or GPIO where your 10K resistor is GNDed.

Is this what you're suggesting?

If so, the main issue I see is that you cannot use the system when USB is plugged in as both transistors will be off.

My counter suggestion would be this: This is basically same as original but added an extra transistor which is held on or turned off by the switch or a GPIO.
Read about my stuff at: projects.matthollands.com
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #5 on: January 06, 2017, 03:13:22 pm »
Even better, add a diode and the switch can also be used as an input to the microcontroller
Read about my stuff at: projects.matthollands.com
 

Offline vealmike

  • Regular Contributor
  • *
  • Posts: 192
  • Country: gb
Re: Li-on charging ICs
« Reply #6 on: January 06, 2017, 03:40:31 pm »
Almost... Try running this in LTSpice.

If USB power is applied, M1 / M2 gate is always at 5V less a diode drop. Battery is always disconnected.

If USB power is not applied and cathode of D4 is pulled to GND, (as shown) cct is powered from battery.

If USB power is not applied and cathode of D4 is not pulled to GND, cct is off.

You can play games with switches / pushbuttons and GPIOs on D4 cathode to create a cct. that comes on when a button is pressed then stays on until SW drives the GPIO high.
 

Offline vealmike

  • Regular Contributor
  • *
  • Posts: 192
  • Country: gb
Re: Li-on charging ICs
« Reply #7 on: January 06, 2017, 03:45:15 pm »
Even better, add a diode and the switch can also be used as an input to the microcontroller
Yep, I think that works. Elegant too.

Hmmn. Simulate it and look at the current through the discrete diode attached to 5V... I think you may see something interesting.
« Last Edit: January 06, 2017, 03:48:48 pm by vealmike »
 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: Li-on charging ICs
« Reply #8 on: January 06, 2017, 03:47:53 pm »
I'd suggest using something from texas instrumets with integrated MOSFET e.g. BQ24079 Or any other from that collection. AFAIR there are some that also support USB PD 1.2
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #9 on: January 06, 2017, 04:12:48 pm »
Even better, add a diode and the switch can also be used as an input to the microcontroller
Hmmn. Simulate it and look at the current through the discrete diode attached to 5V... I think you may see something interesting.

I'm not seeing any issues in my simulation. But what I can kind of see is that if the lower FET is off, then the top FET may be slightly on and some current may flow through the diode from the usb to the battery. Is this what you're hinting at?
Read about my stuff at: projects.matthollands.com
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #10 on: January 06, 2017, 04:32:13 pm »
Here is my simulation

[Edit] Wait, did it again and I'm getting massive current spikes through the diode.... Why? [/Edit]
« Last Edit: January 06, 2017, 07:03:17 pm by MattHollands »
Read about my stuff at: projects.matthollands.com
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3327
  • Country: gb
Re: Li-on charging ICs
« Reply #11 on: January 06, 2017, 07:06:51 pm »
Here is my simulation

[Edit] Wait, did it again and I'm getting massive current spikes through the diode.... Why? [/Edit]

Because you added C1. When the MOSFET switches on the diode see's a discharged capacitor, virtually a short circuit.
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #12 on: January 06, 2017, 07:08:59 pm »
Nope! I added the cap to get rid of the voltage spikes that came along with the current spikes. Here it is without cap.

But maybe there is some capacitance on the FETs.....
Read about my stuff at: projects.matthollands.com
 

Online ali_asadzadeh

  • Super Contributor
  • ***
  • Posts: 1931
  • Country: ca
Re: Li-on charging ICs
« Reply #13 on: January 06, 2017, 08:15:01 pm »
BQ24160 is a good candidate for your project.
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Offline Koen

  • Frequent Contributor
  • **
  • Posts: 502
Re: Li-on charging ICs
« Reply #14 on: January 06, 2017, 10:26:51 pm »
Linear battery charger + dc/dc converter(s) in a single chip : http://www.linear.com/parametric/Battery_Charger_Plus_DC%7CDC#!1069_Linear|Switching|Shunt!chem_!vmax_!icharge_!bat_bat
 

Offline vealmike

  • Regular Contributor
  • *
  • Posts: 192
  • Country: gb
Re: Li-on charging ICs
« Reply #15 on: January 09, 2017, 08:20:31 am »
[Edit] Wait, did it again and I'm getting massive current spikes through the diode.... Why? [/Edit]
  ;)
Thought you might. I think you'll learn more if you try and work it out for yourself. Sooo, where does the current come from and where does it go to?

There are three components attached to the anode of D1. Plot the current through each and compare with the current through D1.
The cathode is easier, there are only two components to look at.
 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #16 on: January 10, 2017, 01:54:09 pm »
Quote
Sooo, where does the current come from and where does it go to?

Current is flowing from USB to battery and back again. I guess this is due to the reverse recovery of the diode and the PFET not turning off fast enough? But I have no idea how to fix this
« Last Edit: January 10, 2017, 01:59:23 pm by MattHollands »
Read about my stuff at: projects.matthollands.com
 

Offline vealmike

  • Regular Contributor
  • *
  • Posts: 192
  • Country: gb
Re: Li-on charging ICs
« Reply #17 on: January 10, 2017, 02:50:22 pm »
 :-+Bingo!
The diode turns on faster than the fet switches off. This is largely due to gate charge on the FET.

The reason I wasn't sure  you'd see it is that it depends on the exact models you picked.

You can't easily fix it, but a resistor in series with the diode would limit the current through the diode without harming the cct. function.

 

Offline MattHollandsTopic starter

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: gb
    • Matt's Projects
Re: Li-on charging ICs
« Reply #18 on: January 10, 2017, 08:10:57 pm »
:-+Bingo!
The diode turns on faster than the fet switches off. This is largely due to gate charge on the FET.

The reason I wasn't sure  you'd see it is that it depends on the exact models you picked.

You can't easily fix it, but a resistor in series with the diode would limit the current through the diode without harming the cct. function.

Alright sweet! [emoji846] thanks I'll stick in a 10R resistor!
Read about my stuff at: projects.matthollands.com
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf