Electrical – STM32F4 host powering USB device using VBUS

stm32usbusb-host

I am trying to design an STM32F411 USB host. I will be connecting it to a USB MIDI device. The USB MIDI device I am using is AKAI Professional MPK Mini MKII which only has 1 USB port both for power and data which means that I need to power the device through USB.

From the STM32F411 datasheet, I have found some relevant circuit schematics:

enter image description here

However, I am unsure about the VBUS part. How am I supposed to power my USB device with microcontroller? My microcontroller logic is +3.3V and USB required +5V. Do I need to power USB device through VBUS pin on the microcontroller?

I have read somewhere that VBUS is used for sensing:

The USB device is bus-powered, VBUS sensing is not mandatory (USB is always connected when the device is powered)

For my application, the microcontroller is going to be host only therefore I assume I don't even need to use the VBUS? Can I just connect the external +5V source to the USB VBUS pin instead?

Best Answer

You are mixing statements that apply when STM32 is USB device and when it is USB host. Yes, as a USB host, you need to have 5V supply at the connector for the USB device. The datasheet schematic is correct, the VDD is 5V and there is a switch component so MCU can control the port power and safely determine overcurrent situation. But the MCU is the host so it does not need to monitor the 5V supply at the connector with MCU VBUS pin. The 5V at USB connector just happens to be also named as VBUS.