I am working on a project where I have to communicate between an Android phone and a microcontroller through USB and continuously charge the phone. I have very limited experience with USB and would like some advice in my PCB design process.
The Android device has a type USB-C connector and is using USB 2.0 specification. The device will charge passively the vast majority of the time and I have no critical time constraints so the most simple solution that is robust is my goal.
My questions/considerations are the following:
I have been considering using STM32F446xC/E, the datasheet (page 36) says "For OTG/Host modes, a power switch is needed in case bus-powered devices are connected" Is it possible to use a usb-c to micro usb-b cable and design the pcb/mcu as a host like the application note from the same datasheet?
Alternatively, if there is a problem with the solution that I do not realize, do I have to design it according to the dual mode like this ?
I have not started the design yet so I am flexible in my solution, if you have any other suggestion I would very much like to hear them!