Electrical – MOSFETs acting strange on different power supply

led stripmosfetpower supplyvoltage-regulator

I have created a circuit for controlling my 12V RGB LED strip using 3.3V microcontroler (ESP8266). I have used IRLZ44N N-MOSFETs to regulate the colors. The circuit worked great, when the microcontroller was powered by external power supply, but when I added a voltage regulator (LF33CD to drop 12V to 3V) and disconnected the 3.3V source, the MOSFETs started to act strange. The LEDs stays on, and also, the ESP8266 won't connect to WiFi.

//EDIT: I have updated the schematics, I have made the schematic wrong

Schematic with the external PS (this one works)
Schematic with the external PS (this one works)
Schematic with 3.3V regulator
Schematic with 3.3V regulator

I am new to electronics, I was mostly making software before, so please excuse me if I made some stupid mistake.

Best Answer

I may be wrong, but IMHO 78XX needs capacitors to work correctly and as it is switching, it would generate noise until filtered out after. And the ESP also wants capacitors on power/gnd to have no noise and enought reserve in power for short peaks (especially when connecting/transmitting). Maybe your 3V3 source is stabilized enought for ESP to work somehow, but the 78XX so near produce so much noise, that ESP does not work (at all/reliably)