TL;DR: in the picture below, what P-channel MOSFET can I use?
In my project I use an ESP8266 board (specifically Sparkfun ESP8266 Thing Dev) which has 3.3V Vcc.
Normally the device is powered with 3 AA batteries (i.e. 4.5V), but occasionally a USB power adapter may be plugged in, in order to do things that are more power-consuming and would otherwise drain the batteries too quickly.
If I do nothing, I have checked that even when USB power is connected, the device still gets its power from the batteries if they are connected. So, I need to disconnect the batteries when USB power is plugged in, and of course I don't want to rely on the user switching off a physical switch to do that, because they may forget to do so.
So, I have this circuit that uses a MOSFET as a switch:
This is the design that I came up with some time ago and it works.
The MOSFET is connected between the positive of the batteries and the positive power-in end of the device. The mosfet's gate is connected to the "5V" output of the device, which outputs 5V when USB is connected, and zero otherwise.
So, when operating without USB power, the gate is at GND level; the MOSFET is conducting, and current flows from the batteries through the mosfet to the device.
When USB is connected, the MOSFET's gate goes to 5V, the mosfet becomes an open switch, and it cuts off the batteries from the circuit, as expected.
So far I've been using a SUP90P06-09L because at the time it was the one I was able to find that had the combination of parameters that I thought I needed.
The problem is, it's expensive (around $7) and also not super-easy to find.
My gut feeling is that this is overkill and there are way cheaper and more readily available ones that I can use instead. As you can probably already tell I know nothing about MOSFETs.
Basically the requirements are:
- small voltage drop when "on" and when the load is consuming current (I guess that's a given for mostly any mosfet in this context)
- that it turns "completely on" when G goes to 5V and "completely off" when G goes to ground in the circuit above (I don't remember how that translated to the relevant parameters in the form they are normally provided)
- very very low "leakage" currents of any kind when the mosfet is in "on" status but the load is draining almost zero current, that is, that the mosfet doesn't add significant power consumption when the ESP8266 is asleep (the ESP's consumption in sleep mode is supposedly in the order of 10 uA), which BTW is most of the time.
I think what I had trouble finding was the combination of 2 and 3.
What other MOSFET can I use instead of the SUP90P06-09L?



