I’m working on a high-side switch circuit to control a red LED using a P-channel MOSFET (IRF4905). My goal is to turn the LED on and off with a switch in a high-side configuration, but I’ve run into a problem, the MOSFET never seems to turn off.
From my understanding, a P-channel MOSFET turns off when its gate voltage is equal to the source voltage. In my setup, I’ve confirmed that the gate and source are at the same voltage, but the LED still stays lit. I’ve also tried swapping the IRF4905 with several others from the same batch to rule out a defective part—no change.
I’ve attached my schematic and a photo of the circuit under power. If anyone has suggestions on why the MOSFET stays on, or if there’s something I might be missing with the wiring, I’d really appreciate your advice.
I switched out the LED's current limiting resistor with a 675ohm one so that 12V could be applied (see photo). Here Vgs is again equal to 0 and the MOSFET is on so it seems the problem persists
. Also, if you could explain how you know the IRF4905 is not meant for 5V I would appreciate it since I did not know that and looking at the datasheet can't seem to figure out why.
Yes, it should be off with gate and source both at 5V. I believe the pinout, front view, left to right, is GDS. If that's right, you have it wired correctly. So I think that means the mosfet is really something else, or the batch you got is defective. What markings are on the mosfet?
To my understanding the MOSFET is indeed controlled by a negative voltage when I want to turn it on. To do this I would have the gate tied to ground (Vg = 0V) and the source tied to power (Vs = 12V). Thus Vgs = -12V and the MOSFET is conducting. However, the issue I am having is that when the gate and source are both 12V (as shown in reply to Larry), Vgs = 0V and the MOSFET should be off since Vgs = 0V is not yet at the threshold voltage of -4V from the data sheet.
Yes unfortunately it is still on... I have checked my wiring many times and tested each part of the circuit with my multimeter. I guess Mouser it is haha