Electronic – Driving a fan using a mosfet, do I need a diode

3.3vback-emfmosfetpower electronicspwm

I am using this BS170 MOSFET to drive a fan using a pwm signal generated by a 3.3V MCU according to the following schematics:

enter image description here

(I know about the wrong symbol it's just for the packaging on the PCB)

So my gate gets connected to ground using the pulldown resistor and to the PWM signal.

I have two questions:

  1. Should i still use the D1 diode for back EMF protection or i can relay on the internal one in my transistor.
  2. Is my transistor is suitable for a fan using 0.32A. It should handle 0.5A so it should work right?

Best Answer

For your first question, yes keep the diode - if it isn't needed because of something special about the fan, it will do no harm. If it is needed then leaving it out will damage the reliability of your circuit. The diode in your MOSFET is not useful to do the same thing.

For the second question, personally, I wouldn't use this MOSFET for this job - it's a 'small signal' MOSFET, and you would almost certainly be much better with a power MOSFET of some kind:

  • The Rdson is too high - at 0.32A, you'd be dissipating 0.32*0.32*5 = 512mW which is more than the device is rated to dissipate. And that's before you start to think about switching losses caused by your PWM switching.

  • There are no characteristic graphs for Vgs as low as 3.3V - although you're above the threshold at 3.3V, you're clearly not operating the device in the way the designers intended.

Additionally you should almost always add a resistor in series with the gate of a MOSFET, to control the turn on speed/gate current.

Here's a post about choosing a FET: Selecting a MOSFET for driving load from logic