I'm trying to implement USB OTG design with STM32L4R5ZIT6P .
What's the difference between self-powered and bus-powered? What I'm trying to achieve here is that the board will be able to switch between host and device. When a host device is plugged in, it will detect the host and act as a device, and vice versa. Is this a bus or self powered?
I'm trying to look through their Nucleo board schematic, but it seems like different Nucleo board has difference implementation. It's also different from their USB hardware design training course on their website.
- If you look at both schematic from different nucleo board, it seems like there's a VBUS_DET on the first schematic, what's the purpose of that pin?
- And do I just connect the VBUS pin directly to the VBUS of the USB connector? However, on this page , it shows that I will need a voltage divider at the VBUS pin, is that the same as the "VBUS_DET" pin?