![usb device - switch between battery and usb power no microcontroller circuit - Electrical Engineering Stack Exchange usb device - switch between battery and usb power no microcontroller circuit - Electrical Engineering Stack Exchange](https://i.stack.imgur.com/iLyQB.png)
usb device - switch between battery and usb power no microcontroller circuit - Electrical Engineering Stack Exchange
![arduino - Power selection circuit for USB or DC Jack - both at 5V - Electrical Engineering Stack Exchange arduino - Power selection circuit for USB or DC Jack - both at 5V - Electrical Engineering Stack Exchange](https://i.stack.imgur.com/EEN0a.jpg)
arduino - Power selection circuit for USB or DC Jack - both at 5V - Electrical Engineering Stack Exchange
![I would like to power my STM32 over USB (5V) and, when connected, a 4-12V power source (P1). I need to drive external devices with this MCU and will be powering the I would like to power my STM32 over USB (5V) and, when connected, a 4-12V power source (P1). I need to drive external devices with this MCU and will be powering the](https://i.redd.it/zfvpxshiga161.jpg)
I would like to power my STM32 over USB (5V) and, when connected, a 4-12V power source (P1). I need to drive external devices with this MCU and will be powering the
![Designed a circuit to automatically switch the power supply from the two power sources (nothing designed to). | kohacraft's blog Designed a circuit to automatically switch the power supply from the two power sources (nothing designed to). | kohacraft's blog](https://kohacraft.com/wp/wp-content/uploads/ScreenShot-2021-03-28-18.48.33.png)