I am struggling to set up the wiring for controlling a LED Strip using MOSFETs.
I have seen a lot of different tutorials. According to this tutorial for example, source and gate are connected with a 10 kΩ resistor, which was working only partially for me. It seemed to create an inversed logic with a simple LED (+ resistor to diminish the 12 V current). When I then used the LED-strip (without resistor) it turned on and off but wasn't bright enough.
This one didn't use any resistors. I even tried reproducing it with an additional 10 kΩ resistor from gate to ground.
simulate this circuit – Schematic created using CircuitLab
Provided the ESP32 GPIO is turned on, everything seems right. The problem is that turning off the GPIO, or even unplugging it, doesn't change anything; the red LED stays turned on.