Electronic – How to power from among several sources and monitor which sources are active

microcontrollerschottkyvoltage divider

I have a microcontroller circuit that uses voltage dividers to monitor presence of 5V DC power from several sources, but the circuit is currently powered from a separate 5V DC source.

I've seen Schottky diodes used to control power from multiple sources, but typically when they are at different voltage levels (e.g., a switching supply and a battery).

Questions:

  1. How is reverse current from the Schottky diodes not a problem to the other supplies in the traditional use case?
  2. Can Schottky diodes be used to direct DC power in cases where the supply voltages are all the same?
  3. If yes to #2, is there a simple setup to power the circuit in this way and monitor which supplies are active (connecting to typical MCU GPIO digital input pins)?
  4. If no to #2, what is a simple and cost-effective way to power from, and monitor, several similar sources?

EDIT: I don't need to know which (or multiple) supplies are powering the circuit, I just need: (1) stable power to the circuit, and; (2) to know which of the sources are active / powered on.

Best Answer

1) Generally no. The currents may be high in comparison to normal diodes but they are still fairly low. Most power supplies act nicely and go to sleep if the output voltage is pulled a little above their set output voltage. Just about any resistance to ground from the output (e.g. the voltage sense feedback network) will sink enough current to prevent the reverse bias current from pulling the output voltage high enough to cause damage. Some switchers may possibly have problems if their output current drops to zero, normally the worst case is their output goes out of regulation and is higher than specified. Since you're not using the output this isn't an issue, as soon as it gets high enough to start to use it the current will increase and it'll fall back into regulation.

edit - As noted by neonzeon batteries are a different matter.

2) Yes. While in theory all the same the supplies outputs will end up being very slightly different so one supply will generally provide most if not all of the power.

3/4) You can easily tell which supplies are on, simply connect each one to a GPIO with sufficient voltage scaling and protection as required by the CPU. Generally this means either two resistors as a potential divider or a single series resistor to reduce the voltage and protect against excess current and then a clamping diode to the CPU VCC rail to prevent any potential over voltage issues as power supplies come up.

Telling which one you are taking power from is a little trickier. If the voltages are different then you can assume you are using the highest voltage one of the ones that are on. If voltages on each rail can vary then you can either use an ADC to monitor the voltage on each rail or use a comparator to tell you which is higher.

If the voltages are all very similar then a straight voltage comparison may not be reliable, you could be taking power from multiple sources. You would need to monitor the current from each power source. This generally involves putting a low value resistor in series with the power supply and then using a differential amplifier to measure the voltage drop across it. You could either feed this into an ADC and get the current for each source or into a comparator to tell you which source has the most current or which ones are over a certain threshold.