What's wrong with this circuit? The mosfet will turn on just fine with 5v or the gpio 3.3v but i cannot get it to turn off. It will only turn off if I use another external power supply for the Raspberry Pi and connect the GNDs. But with this circuit it just won't turn off. Why is that?
note: there's a 2n3906 pnp transistor between gpio pin and Drain.