Using a MOSFET to turn IC on and off

I'd like to use an ESP8266 to get the actual time from the internet to sync my RTC.

Since that has to be done only, say, once per week, the ESP8266 can be turned off most of the time.

Would it be OK to use an N-channel MOSFET to achieve this? Something like this?

If so, which MOSFET should I use (I am a newbie - up until now I have no idea what kind of MSOFETs are out there).

Maybe it makes sense to buy a few of the most commonly used MOSFETs in advance for future projects? 10-20 each. Which ones would you recommend?

I've not tried this yet, but I would be curious to know if you could just use the CHIP ENABLE pin on the ESP8266 instead of the GND pin. That would allow you to use a cheap 2N7000 to control the pin.

I guess I need to determine what chip enable does for you... power-wise. (maybe not so much)

I could also use a 2N2222 (max. 800mA) instead of the MOSFET, no?

What's the advantage of using a MOSFET instead of a transistor?
(as I said: I'm a newbie - so apologize my question).

I'm going to avoid engineering speak as much as I can.

Don't forget that MOSFETS are transistors... they just have a slightly different behavior.

People like MOSFETS because they are generally better at voltage switching as "ON-OFF" devices due to really low "ON" resistance and that they will not require a base(gate) resistor (which only costs pennies... but still seems to annoy people that it's needed with BJT).

I personally have no bias against BJT as a switching device but what I commented on in the earlier post above is a valid use for an N channel MOSFET that is rated for "logic-level" use.

Note: BJT Transistors only need a small current at the base and only a sip of voltage (for a kludge value... think anything above 1V is enough to make it work). MOSFETs on the other hand require gate "Voltage" above a certain threshold before they will "switch" fully on. That's why you need one that is rated to "switch on" at logic levels such as 5V.

Many commonly available MOSFETS, like the Radio Shack variety IRF510 require at least 10V at the gate to work right, making them impractical to be driven by a pin. So make sure the parts you buy are logic level if you want to drive them with an Arduino pin.

Thanks a lot for your explanation.

So in my use case it would make more sense to use a BJT (new word for me, btw.), like the 2N2222, yes?

The nice thing is... you can use what you have. If you use a 2N2222A, use it.

However you switch your IC you must first ensure that you aren't trying to drive any
signals to it at the wrong voltage, or you will get large protection-diode currents flowing
as the devices self-powers through the signal pins.

Normally you would high-side switch as this doesn't disrupt your groundplane on a PCB.
You then have to ensure all signals to the IC are either LOW or high-impedance before
powering the IC down.

With a low-side switch like you propose you'd need to ensure all signals are either HIGH
(3.3V) or high-impedance before powering it down).

Using a logic-level p-channel MOSFET or PNP transistor is more normal due to the
common ground-plane in typical circuits.

MarkT:
Using a logic-level p-channel MOSFET or PNP transistor is more normal due to the
common ground-plane in typical circuits.

How would you use a PNP transistor in this switching application?

Use a general purpose ~500mA PNP transistor (module draws ~200mA max).

Emitter to the 3.3volt rail.
Collector to +3.3v of the module.
~220ohm resistor (=~10mA base current) between base and Arduino pin.
Leo..

Isn't it easier to just drive the chip enable? It then consumes less than 10 uA.

Russell.