I am using an ESP8266 NodeMCU to drive 4 outputs. Software all works perfectly as they drive 4 test LEDs on a breadboard perfectly.
Now I come to start wiring the device to the MOSFETs that will be used to drive long runs of (monochrome) LED strips.
I have RFP30N06LE MOSFETs
To test I know what I am doing with the MOSFET I connected one up on the breadboard.
The ESP8266 is powered by a USB connection. It is a 3.3V device.
I connect an output pin to the gate.
I connect the ground of a 5V DC supply to the source pin.
I connect a test LED with resistor to the drain
I bind the 5V ground with the ground of the ESP8288
I connect the output pin to ground with 10K Ohm Pull down resistor
It works. I can switch on and dim the LED through the MOSFET.
Now, I remove the LED and its resistor.
I remove the 5V Power supply
I replace the 5V supply with a 12 V supply (this is what my LED strips use)
I connect the drain of the MOSFET to the negative side of the LED strip.
The LED strip does not light up.
If I connect the strip to the 12V supply they all light up. LED strips works.
I cannot fathom why the 12V + LED strip circuit does not work and the single test LED setup does. Granted the single LED draws much less power....
I have checked the polarity - the ground of the 12V supply is at the same level as the ESP8266 ground.
With no LED strip connected, my voltmeter reads 12.00 Volts between the MOSFET drain and the positive. If I plug in the LED strip, it drops to 7.00 Volts
The 12V power supply has plenty of current to drive the 5m strip of lights. They light up if plugged in directly.
Any suggestions on what might be going wrong? It seems that something is sucking up exactly 5 Volts.
I get the same results with different MOSFETs and LED strips.
I have attached what is essentially the same wiring scheme.