I'm trying to design and simulate a MOSFET load-switch in KiCad. I'm new to that application and I've been tearing my hair out for 4 hours on this simulation. :(
The Vg voltage is being simulated as a flat line with permanent 24 volts.
- I'm simulating a VPULSE square wave voltage source which switches between 0v and 3.3v every 0.5 seconds. That's supposed to drive the gate, and is meant to simulate an ESP32 GPIO pin turning on/off.
- The goal is to turn on/off the
V_OUTvia the P-mosfet by varying theVgvoltage. - But for me, the gate voltage (
Vg) is permanently the same asVs (V_IN_1)... which means there's no voltage differential. SoV_OUTis permanently~0 volts.
I've attached the KiCad project files since that includes the Spice model files, and wonder if someone could please see what's wrong with this simulation?
14 kb: (link removed since the problem was perfectly explained by the accepted answer)
Here's also an image in case the problem is visible on it:


