I have different designs that can be powered either by the USB port or via external 5v power supply, I want to avoid blowing up something and think I have soled it using two different strategies:
- By using two diodes
- By using a mosfet
Both solutions seem to work and do it's job but ... which one is more reliable avoiding any possible problem if both the USB port and the external power supply are connected at the same time?