Author Topic: Dedicated USB C power deivery to charge Li-Ion  (Read 1724 times)

0 Members and 1 Guest are viewing this topic.

Offline 741Topic starter

  • Frequent Contributor
  • **
  • Posts: 386
  • Country: gb
    • Circuit & PCB Design (small PCB quantities OK)
Dedicated USB C power deivery to charge Li-Ion
« on: November 23, 2021, 09:56:55 am »
I'm looking for an inexpensive chip that will handle both smart (eg Apple) "USB-C power Delivery" or dumb (5V only) chargers at the input.
3A out would be fine.

The target Li-Ion/Li-Poly (4.2V) would be 7 to 12AH.

I'm interested to know about
  • A chip (am considering MAX77757)
  • A good summary (PDF etc) of just the power delivery side of USB-C, [ something not too long hopefully... ;) ]
    That is, the USC-C background required to use chips like MAX77757. I have the USB.org PDF on power delivery and it is probably excess detail for this situation.
  • Any subtle/non-obvious 'gotchas'

This is all new to me, I've only used '4-wire' USB to date.

Looked at TI and their solutions all appear to require an I2C bus to control things, wheras I'm looking for an all-in-one solution.
« Last Edit: November 23, 2021, 11:30:44 am by 741 »
 

Offline jwm_

  • Frequent Contributor
  • **
  • Posts: 319
  • Country: us
    • Not A Number
Re: Dedicated USB C power deivery to charge Li-Ion
« Reply #1 on: December 01, 2021, 01:24:24 am »
you can buy little boards for a couple bucks that do nothing but ask for the most power they can from a USB-C port then pass it on. they are pretty useful. I have usb-pd-ized a lot of projects with them.

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Dedicated USB C power deivery to charge Li-Ion
« Reply #2 on: December 01, 2021, 03:31:56 am »
4V at 3A would be 12W, well within the capabilities of 5V USB-C. No need to do USB-PD unless you want more power or want to use some advanced features like telling the other end to go into OTG mode. Easiest solution would be a buck charger with adjustable current limit and a microcontroller to read the pullup resistor value. The device side pulls down the two CC lines with 5.1k resistors (which tells the other end to start supplying power), then check the voltage to figure out the resistor value.
https://community.infineon.com/t5/Knowledge-Base-Articles/Termination-Resistors-Required-for-the-USB-Type-C-Connector/ta-p/253544
One thing USB-C missed is when using a USB-A (regular USB) to USB-C cable, how to easily tell the difference between USB 2.0 and 3.0. With micro USB 3.0 or USB-A 3.0, it's a simple matter of checking if the USB 3.0 ground is in fact connected to ground. Perhaps it might work to check voltage or impedance on the USB 3.0 data lines?

If you want to detect a dedicated USB-A charger, an easy way is to pull up one data line with a 100k resistor, then have a 1M pulldown on the other data line along with a connection to the microcontroller to check the level. The most basic of dedicated chargers simply bridge the data lines which is easily detected by that circuit.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: 741


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf