# Mosfet behaving differently with other power supply and same voltage

I have this very basic circuit featuring:

• 12V LED strip
• N-Channel Mosfet BUZ 11
• 12V Power supply
• NodeMCU (ESP8266 wifi dev. board)

I'm trying to use the NodeMCU for dimming or simply turning off the LED strip.

It works just fine, even with PWM (Video, 1.6MB):

But as soon as I use a different 12V power supply (I have tested 3, from old routers and other devices), it doesn't work anymore. The LED usually stays on but on one other power supply it always flickers.

Even more strange the negative pin of the power supplies sometimes seem to work as the gate pin of the MOSFET as when I touch it without a resistor, the light flickers or turns off.

## I have tested:

• 3 different power supplies, it only works on my lab bench power supply
• 3 different NodeMCU controllers (just in case)
• With or without the 10kΩ resistor between the NodeMCU and the Gate
• Changing all cables I used
• Using a 12V voltage regulator before the MOSFET
• Using different MOSFETs (2N7002, IRFZ24NPBF, BS170, BUZ11)

I'm fairly new to electronics as I've always been a "software guy" so it could be that I'm missing something very basic here.

• You need to go into troubleshoot mode. That means testing one thing at a time. Start with the simplest setup and work your way up. 1) Test that the 12 V LED string works with each power supply. So put the MOSFET and the MCU aside for the moment. Test that each supply can make the LEDs light up. 2) same as 1) but now add the MOSFET with the gate resistor. When the gate is connected to GND the LEDs should be off. When gate to 12 V they should be on. Again test for all supplies. 3) add the MCU and repeat. If you're wirelessly controlling on/off try to program a blinking function first. – Bimpelrekkie Oct 21 '16 at 9:15
• It sounds like a 'current' problem. Measure the actual voltage you get with the other supplies. – JIm Dearden Oct 21 '16 at 9:15

• Good to hear. Virtually all the MOSFETs rated for 3.3V or less drive are surface-mount parts. One inexpensive power part is the TO-252 AOD476 79m$\Omega$ with 2.5V drive and will easily switch a couple A without much concern about heating. – Spehro Pefhany Oct 21 '16 at 10:00