I'm working on an STM32F407 PCB for a flight simulator that has the following conditions:
- Normally powered via 12V and an AMS1117-3.3 to power the MCU.
- Needs to provide 5V for certain peripherals that run off of 5V. This adds an AMS1117-5 connected to 12V.
- Needs to be able to run off of VUSB (5V) for programming, is it needs another AMS1117-3.3 because i dont want to connect the 12V and VUSB together in case i accidentally leave the 12V on when connecting USB.
So a total of 3 LDOs seems a bit overkill, is there a simpler solution? Afaik a diode won't be enough to connect the 12V and VBUS together right? I'm trying to keep it to "basic components" on jlcpcb.com/parts to keep cost down.