# Power switch between two sources using mosfets

A new problem I have is to create an automatic switch between two sources, only one of the sources should be active at a time. There is a "backup" source (5V battery), as well as another source. Once this source drops below a 3V threshold it should stop (and go back to the battery).

We wish to use a power (N- type)mosfets (with a $V_{gs-th}$ of 2V) to do the switching. The best circuitry that goes into the direction I've come up to is as following:

simulate this circuit – Schematic created using CircuitLab

(Notice the diode above the mosfet is to emulate a power mosfet)

Now the gate voltage is simply the $\frac{2}{3} \cdot \left(V_{bat} - V_{var}\right)$. (PS: I know this 2/3rd is not correct, it is currently included in the schematic so I have a point where I can edit the exact voltage difference)

Now this works for the battery: it is disabled as long as the variable source is above the threshold. However this isn't the case for when the variable source becomes too low. Then the variable source should be "disconnected" (so it can charge up again).

But I can't seem to add such a feature without breaking the current way.

• I would consider using some IC to help with controlling the mosfets, like linear.com/product/LTC4353 (or similar) and then wiring up the enable inputs to do the prioritizing if a simple "power-OR" is not sufficient Dec 17, 2013 at 2:00
• Some how i didn't get your schematic properly. How the voltage of Vgate is 2/3(vbat-vvar), both sources doesn't have same reference to just substract it directly nor they are in series... 1N4148 has reverse breakdown at min 20v specified, if current has to go through MOSFET, it has to flow from Drain to Source and D2 should be reverse biassed.... Dec 17, 2013 at 9:23
• @user19579 The two sources have the same reference, their positive pole is connected and R1, R2 form a voltage divider between the two source negative pole Dec 17, 2013 at 22:42
• Yes, i agree with you regarding reference, voltages of the sources will be added/subtracted when they are in series, regarding 2nd question, D2 reverse bias voltage is around 20V, how can current will flow through MOSFET without passing through D2(Reverse voltage of 20V can't be geenrated in this circuit) Dec 21, 2013 at 6:34
• What about having a large capacitor to discharge current during the switch? The capacitor could keep the current running, I think. (disclaimer: only once tried this, and with very low voltages.) May 4, 2014 at 19:11