hiuintahs
(hiuintahs)
7
Lightbringer brings up an interesting solution. Mosfets shouldn’t have their gates floating or at high impedance if they are being used as an on/off switch. Most of the time you can count on the active device (ie: microcontroller) being adequate. But I have seen some situations where you do need a pull down resistor (ie: about 20K resistor from gate to source pin). The value of the resistor isn’t critical. I just like to use a fairly large resistor such that I’m not wasting much power when controlling the gate.
To verify that this is the problem, I’d just hold a resistor with leads from the gate to the source and see if the problem goes away. If it does, then I’d obtain a small surface mount part and solder between those two pins.