I've run out of pins on a connector that, for various complicated reasons i can't go into here, can not be now changed.
Currently, the device with this connector takes USB power (5v) from a host device (pc/laptop etc) abd sends out that 5v to a pin that powers the target microprocessor.
However, i've been asked if there is a way of making the device "standalone" and be powered by the system that the target microprocessor is in. That means accepting anywhere from 12 to 28Vdc back in that same pin and using that to power the device.
So, can anyone think of a nice way of doing this?
normal diodes are out, because i've only got a 5v source, so the voltage drop would mean significantly less than 5v out, so i'm wondering about using FETS or something as a low drop diode?
The 12 to 28V coming in would need to go via a voltage regulator to be dropped to 5v to power the device of course as well
