Other Parts Discussed in Thread: TPS25751, TPS25730, TPS25751EVM
Tool/software:
looking for a simple solution to the following.
- A 2021 Apple iPad Mini 6 and that it has sink and source capabilities.
- I have the iPad and my device encased in a sealed housing.
- permanent USBC cable runs from iPad to my device to power my device
- a single USBC jack is exposed from the sealed unit which is only required to charge the iPad (no data connection required).
There are reasons to use an iPad instead of a battery pack that aren't relevant, but basically the iPad is acting as a battery that also needs to be recharged.
I am trying to assemble the device so that the iPad can both source and sink power automatically. I am not an USB expert and am really looking for a complete, simple, solution/example to copy. I would like it to be hardware configurable so that no i2c/programming/mcu is required.
Block diagram of the concept. My device requires 5v ~100ma from the iPad. Power can be cut off to my device (or not) while charging if necessary.
- connect an exposed USBC permanently to the USBC on the iPad so that it can be charged
- permanently connect the iPad USBC to my custom pcb and treat the iPad as a power source
- when I plug the charger into the exposed USBC, I want the iPad to switch from being a power source to being the power sink
- that "?" is whatever I need to provide enough intelligence to tell the iPad to switch from source to sink (and sink to source when the power is removed)
- I don't need any data handling, D+/- isn't connected. Power only.
- I tried to solve this already by putting a 5K1 on CC1 and using a P-Channel to disconnect that in the hopes of having the iPad change roles, but that isn't working the way we need it to. It's not switching roles. I think we need a more sophisticated solution.
My problem is being able to dynamically change the iPad from sink to source. Currently I have been manipulating the resistor for testing, but I require the iPad to react solely on whether the charger is plugged or unplugged into the external USBC.