How to properly PWM a N channel MOSFET

mosfetpwm

I want to dim a 5A LED strip, so I am planning to create a PWM circuit, my primary MOSFET is the DMT3006 but since I am driving a fairly high current driving this MOSFET directly with my microcontroller would cause the MOSFET to heat up due to the high Rds on resistance, thus I am adding another MOSFET BSS138. The circuit looks like this:

schematic

simulate this circuit – Schematic created using CircuitLab

Would you consider this circuit a good MOSFET PWM circuit? If not how can I improve it.

I would also like to know what are maximum frequencies I can go with the MOSFETs I have chosen, how do I compute them given the switching characteristics values in the datasheet. The BSS138 has the worst turn off delay of 36 ns of the two MOSFETs. So 27.77 MHz but I have to accomodate for an 8 bit duty cycle so 36 * 256 = about 109 kHz. So am I correct that the highest frequency I can PWM is 109 kHz?

Best Answer

I suggest using a purpose-built gate driver, which is not much more expensive than trying to "roll your own" and will allow you to modulate the MOSFET at a relatively high frequency.

For example, the Microchip MCP1406/07 can sink or source 6A of gate current (well, read the datasheet for details) and is even available in through-hole if that's what you want. It's about $1. There are others, if you do a parametric search you can find many products that will be similarly good.

Your MOSFET has around 27nC of gate charge at 10V. That gate driver should be able to switch the MOSFET as quickly as ~10-20ns. You may actually wish to add some gate resistance to slow it down so as to reduce EMI and ground bounce (perhaps around 15 ohms). That causes more dissipation in the MOSFET so it's a trade-off.


The 1K ohm pullup in your circuit will cause the turn-on time to be around 25-30usec so you probably wouldn't want to PWM faster than a few hundred Hz with that driver.