Electronic – Is it a best option to use IRF9540N P Channel Enhancement mode MOSFET for switching 3.3V to the WiFi chip

microcontrollermosfetwifi

I am using IRF9540N P channel enhancement mode MOSFET for switching 3.3V to the power pin of the WiFi chip. The connection is as follows
Source ——— 3.3V
Drain ———- WiFi chip power
Gate ———- Ground

So now the Vgs is -3.3V which is lesser than the Vgs(th). If i connect the drain to WiFi chip power, the voltage is getting switched but my WiFi module is not getting ON.
I tried connecting an 12V motor to just check whether the MOSFET is switching the power or not. Instead of switching 3.3V my MOSFET is switching only 2.7V and my motor is rotating very slowly.
My WiFi chip works fine with 2.5V also. I have no idea what could be the issue? Why is my WiFi chip not powering up?
If i connect directly without MOSFET then my WiFi works fine.
I dont think so the current should be the problem because the WiFi chip consumes only 300mA and the MOSFET can switch upto 30A. Any help would be appreciated

Best Answer

The IRF9540N is unsuitable for the task.
You may have misunderstood the parameter Vgsth To turn on Vs - Vg needs to be comfortably greater in magnitude than Vgsth.
Your available Vgs max is -3.3V.

The IRF9540N - data sheet here needs about -4.5V before it considers getting out of bed and would really like 7 V or more drive at higher currents.

While figs 1 and 2 suggest the 3.3V is too low, fig 3 suggests that if you extrapolate off the graph (and holdyour breath AND don't wonder if this seems unwise) then the 25C curve MAY get down to about 3V - but MAY curve down too steeply.

However, the graphs are for typical values.

On page 2 of the data sheet it says Vgsth is -2V min and -4V max.
When designing you MUST ALWAYS use the "WORST CASE values.
Here 'worst case' is -4v to get 250 uA and Vds = Vgs.
ie even if you had a best case FET it would have 2V Vds with 2V Vgs.
This would not be good.
If you pick through a bin of these you MAY find some that work somewhat better than others and some that MAY work well enough for you - but maybe not, and this cannot be guaranteed.

Best likelihood, based on all evidence and the data sheet, is that even though your load current needed is tiny - the Vgsth value is so far above your drive voltage that it just sits and grins at you.


... using darlington I got 1.2V drop and
then I used Sziklai Darlington(PNP) and I got 0.7v drop but was able to power up the WiFi module.

For low saturation voltage both Darlington pair and Sziklai pair are bad because they "steal their own drive" as they turn. With DP you get 1++ Vbe minimum drop and SP can be slightly lower but still > 1 x Vbe

Better is an independent NPN and PNP where the on voltage drop is the saturation voltage of the PNP (in this case) transistor. See below:

A logic level P Channel FET will drop into this circuit at a later date.
R4 then not needed but does no harm.

Q2 can be a single adequately rated PNP or several smaller ones in parallel.
A wide range of small bipolar PNPs will work. A very good small bipolar is the BC807-40/BC327-40 which has the current rating you need but beta (current gain) will drop somewhat at higher currents and saturation voltage rises with current.
BCxx7 data sheet here
See Fig 9. BCxx7-40 has a typical saturation voltage of about 0.07V at 100 mA rising to maybe 0.125V at 300 mA.

The -40 part has a beta of 400 typical (250-600 range). Lower beta transistors can be used with smaller values of R4. Ideally if N x Q2 are used then also equip N x R4 from Q1-c to each Q2 base BUT as shown will probably work OK. Resistor values are liable to be about right - play as required. R2 not required if input is always driven high or low and never floats. R3 is 'or safety' to ensure Q2 turns off. Lower values of R4 may be needed to get low enoughy saturation voltage. The data sheet saturation curve is at forced beta = 10 !!! ie 30 mA base drive for 300 mA Ic. A FET becomes attractive :-).

schematic

simulate this circuit – Schematic created using CircuitLab