I'm looking to use a P-channel high-side MOSFET to enable/disable some sensors and peripherals connected to an ESP32. The peripherals use 3.3V and the ESP32 runs on a 3.3V logic level.
I'm not an electrical engineer, and I'm probably a bit out of depth on selection of the parts in this schematic. I could see a few different circuits to enable me to use a P-Channel MOSFET. Some circuits use a general-purpose NPN transistor to pull down the MOSFET gate to ground when signal is applied to the base of the transistor, while other circuits directly connect the MCU GPIO pin to the MOSFET gate.
Could someone help me understand when this transistor is needed, and if the transistor will be needed for this particular case (3.3V MCU, turning on/off a 3.3V supply using an AO3401A MOSFET. An alternative part number available easily is SI2301DS. I'm unfortunately constrained to these 2 part numbers because JLCPCB use these in their basic parts library.
Edit: I have added a few jumpers (JP6/JP8) to be able to bypass the MOSFET and transistor, should the need arise. The peripherals consume upto 200mA current based on the max current consumption as specified in the datasheets. The "average" consumption is under 50mA. I'm unusure if this matters, since the specific part numbers seem to support current in a low single digit Ampere.
.