There is always a better MOSFET somewhere – but it may be more expensive, it may be from a different supplier with high freight costs, it may be surface mount, it may have a longer switching time (might be better for simple on/off but less good for PWM). I seem to spend large amounts of my electronics design time matching MOSFET characteristics to specific problems. There are so many variables to consider.
Sometimes my research keeps coming back to the same part for project after project, so I conveniently get a “go to” part that I keep using. For example, I like to use a P-channel MOSFET for reverse battery protection as it saves the forward voltage drop of a series protection diode. Time after time I keep coming back to DMP3099L Periodically, I’ll hit the databases and see if something new has shown up. It still shows up well in the price metric but maybe one of the better devices will get cheaper and the optimization might change.
The choice will also depend on what I have on hand. I have a stock of some FDP something-or-other MOSFETs I bought years ago precisely as a general purpose logic level N-channel like we have been discussing. There are obsolete now and you can’t buy them. But if I need something for a simple hack, it will get used because it is what I have and it is adequate for the job. I just won’t use them on something that is going into production.
I must admit I didn’t go and read the rant you linked originally but I did just have a quick scan now.
There is one thing I picked up on.
When you use a logic level MOSFET hooked to a microcontroller for switching power, you should add TWO resistors as a matter of habit.
The first is a high value between the gate and the source (usually ground). This is mentioned in the rant article. This is mandatory because it ensures that the gate is held discharged when nothing else is happening. If the gate pin is left floating, it will develop enough of a voltage by itself to at least partially turn on the MOSFET and that is bad not only because whatever it is switching on will be switched on, but also because it is usually in a partial state so looks like a resistor that is getting hotter by the second. If you think this won’t happen because the output pin from the microcontroller is always set to be output and will be driving either low or high then you need to remember what happens when a microcontroller is put into reset either by a programming tool or by some glitch in the rest of the circuit: the pin will go to a high impedance input state. Depending on who’s chip you are playing with, there may or may not be internal pull up or pull down resistors on the pin enabled by default in reset. A default pull up resistor will help to turn the MOSFET on!
If the micro pin does *not* have default pull up resistors (so is properly floating), or else has internal default pull-downs instead, then I’ll use about 100kOhm for this.
If the micro has pull-ups, then I’ll use 10kOhm or 4.7kOhm to make sure my resistor wins the battle for control over the gate.
The second resistor is in series between the microcontroller pin and the gate.
Without it, the output pin will experience (momentarily) something resembling a dead short to ground when the pin goes high. So for some extremely brief amount of time, the pin *may* experience an output current of many amps.
A series resistor should be sized to ensure the output current into a dead short to ground doesn’t exceed the pin’s rated output current.
For example, the pins on an ESP32 are supposedly rated to max 12mA at 3.3V, so I would use a series resistor of at least 3.3/0.012=275ohm. 270ohm would be close enough but 330ohm would give some safety margin.
These two resistors go on my MOSFETs every single time they are connected to a microcontroller.
The rules are different if the MOSFETs are connected to other devices like switching regulators or specific MOSFET driver chips (designed to handle high gate currents and takes the load of the microcontroller).
Great reading, thanks Andrew. Lots of little points I hadn't considered. I'm on the end of the spectrum nearer "which MOSFET are SparkFun or others currently selling for logic level switching? Right - order that one!". I get more than a little confused trying to square up all those little variables you talk about when looking at the datasheets.
It would be nice if someone (who wasn't trying to sell me something) put together a list of say a dozen good, cheap, available MOSFETs for the most common tasks. And keep that list up to date...
From a current project...
-----Original Message-----
From: sydney-h...@googlegroups.com [mailto:sydney-h...@googlegroups.com] On Behalf Of kris
Sent: Monday, 26 June 2017 10:00 AM
To: sydney-h...@googlegroups.com
Subject: Re: [RnD] do not tip
i think that's the trick, keeping it up to date!
To unsubscribe from this group and stop receiving emails from it, send an email to sydney-hackspa...@googlegroups.com.
To post to this group, send email to sydney-h...@googlegroups.com.