Electronic – Mosfet behaving differently with other power supply and same voltage

led stripmosfetpower supply

I have this very basic circuit featuring:

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

Schematics

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):
preview image

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.

Best Answer

You need a commmon ground between the two. Probably your bench supply (-) output is grounded and the other ones are not, and you are getting a ground through the USB cable and your PC, so the grounds are connected through the 3-pin wall plug when you use the bench supply. If you unplug the PC it will probably stop working. You may wish to use a 1K resistor between the two grounds, just in case.

Also (and this is not the cause of your proximate problem), your BUZ11 is really an inappropriate part for that service. It's not a logic-level MOSFET and is only guaranteed to fully turn on with 10V Vgs. You should use a MOSFET that has an acceptable specified Rds(on) with 3.3V or lower Vgs. The particular sample of BUZ11 you happen to have may sort of turn on enough typically, but that is not good engineering at all.