# Having two variable voltage sources, how drive current only from the larger one at every time?

Suppose I have a circuit I want to power, nominally 6V DC, 500 mA max. The circuit could be modelled as purely resistive (an incandescent bulb, for example).

Let Vx and Vy be two different voltage sources. Each of these sources might oscillate around 6.2V and 0V (just an hypothetical value, meaning "slightly above nominal, but not much").

I would like to drive current only from the highest voltage source at every time, while turning the other off. The switching between them should be transparent to the powered circuit, so as it doesn't get voltage drops.

I have seen similar problems being solved with two diodes, but my proposed circuit could not afford the voltage drop, since most the time the max available voltage would be very near 6V or slightly below it.

I have thought about using an operatioal amplfier, perhaps combined with, say, some Mosfet(s), but I don't know how exactly that would be done, or if this problem has some better solution.

Also I would like a simple solution with "a handful of readily available generic components" instead of some pre-made module.

• (1) What is the output impedance of your two power sources. If it is not zero then switching from one supply to the other will cause voltage droop and may cause switching back and forward between the two. (2) What are you really trying to do? Mar 12, 2016 at 17:19
• It would be good to quantify the allowed voltage drop. Because there are ultra-low forward voltage schottky diodes with only 160mV forward voltage drops (like SPV1512), and ultra-low dropout voltage regulators (e.g. NCP4641, 200mV dropout at 5.5V). With those you might still be able to realize the diode+regulator solution, simpler and cheaper than the alternatives. Mar 12, 2016 at 21:10

simulate this circuit – Schematic created using CircuitLab

Figure 1. Higher voltage power selector.

A relay offers a means of selecting the power source with very low voltage drop across its contacts.

• The comparitor compares V1 and V2 and will energise the relay if V2 > V1. The relay contacts change over and V2 is passed straight through to the output.
• R6 provides a little hysteresis to prevent rapid switching on minor changes in voltage. Increase the value of R6 to reduce the hysteresis.
• You may wish to add 100 uF or so to the output to prevent dips during relay switching.

The LM324 comparitor should do the trick.