I have different designs that can be powered either by the USB port or an external 5v power supply.
I want to avoid blowing up something and think I have solved it using two different strategies:
- By using two diodes
- By using a MOSFET
Both solutions seem to work and do its 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?