I made the following circuit to drive a 12 VDC motor with an IRFI540G MOSFET.
My first plan was to use a cheap Chinese DC/DC buck converter to power my Arduino from 12 V, but after a couple of minutes it burnt out. Somewhere it draws too much current beyond that module's capability. I replaced that module with another, but after a couple of minutes my MOSFET died.
I decided to use another 5 V source similar to following the circuit:
It works for a longer time, but after a couple of minutes that new MOSFET also died. My presumption was since the MOSFET gate looks like a capacitor, it only needs to be charged and doesn't need to bind the 12 V and 5 V grounds together.
Another strange thing, my Arduino pin (9) also goes crazy and doesn't make the correct PWM signal anymore, so I have to switch to another PWM pin, but after a couple of minutes my MOSFET died again for the third time.
Any tips for this crazy behavior and the current sinking hole would be appreciated.
this is picture of setup, notice the PWM pattern
this circuit works for a couple of hours