High side mosfet as a switch

Thread Starter

pcbenthusiast

Joined Mar 24, 2017
62
47kΩ is fine.
Sounds like you have the MOSFET's source and drain connections interchanged.
With that, the substrate diode will continually conduct the current, independent of whether the MOSFET is biased on or off.
see attached pin diagram for the FETs if they look correct. i have the the following connected:
nmos: S-ground, G-series resistor to uC's output, D-gate of p-mos and 47kohm resistor.
pmos: S-+12V and other side of 47kohm resistor, G-drain of n-mos and 47kohm resistor, D-LED positive side (high side of load)

the flipped the s & d of p-mos per your previous message and now, lights do not turn on at all even after uC's input.
 

crutschow

Joined Mar 14, 2008
38,529
see attached pin diagram for the FETs if they look correct. i have the the following connected:
nmos: S-ground, G-series resistor to uC's output, D-gate of p-mos and 47kohm resistor.
pmos: S-+12V and other side of 47kohm resistor, G-drain of n-mos and 47kohm resistor, D-LED positive side (high side of load)

the flipped the s & d of p-mos per your previous message and now, lights do not turn on at all even after uC's input.
No attachment.

If you flipped s & d and it doesn't light, then it does seem that you had the s & d interchanged.
But if it still doesn't work, then you apparently have another wiring error.
Can you post a picture of the circuit?
 

crutschow

Joined Mar 14, 2008
38,529
i have attached another "mosfet pinouts" image here to make sure i have the pins wired correctly
That all looks okay, so there would still appear to be a wiring error.

Can you post a picture of your actual circuit, showing the wiring?

Measure the voltage at all the nodes for both low and high signal input and post those also.
 

Thread Starter

pcbenthusiast

Joined Mar 24, 2017
62
That all looks okay, so there would still appear to be a wiring error.

Can you post a picture of your actual circuit, showing the wiring?

Measure the voltage at all the nodes for both low and high signal input and post those also.
i'm wondering if the pmos i picked is larger than i need? is the n-mos not able to turn the p-mos on and off? whats the theory behind this? i was told to get a pmos based on the current draw from the load (which is 0.5A) , but i ended up buying a bigger one than i needed... did this affect anything?
 

Thread Starter

pcbenthusiast

Joined Mar 24, 2017
62
That all looks okay, so there would still appear to be a wiring error.

Can you post a picture of your actual circuit, showing the wiring?

Measure the voltage at all the nodes for both low and high signal input and post those also.
this is what i measured:

at nmos-
vgs=3.3v->0->3.3v keeps going back and forth between 3.3 and 0v like the way i programmed.
vdg-=same as vgs
vds=0.8v->0->0.8v keeps going back and forth between 3.3 and 0v

at pmos-
vdg=0v
vgs=12v
vsd=12v; vds=-12v
no +12v at the load Vdrain
 

Alec_t

Joined Sep 17, 2013
15,121
The bigger PMOS shouldn't be a problem.

Edit: "vdg-=same as vgs" indicates either a wiring error or a faulty FET with gate and drain shorted.
 
Last edited:

Thread Starter

pcbenthusiast

Joined Mar 24, 2017
62
you guys are genius!!! my N-mos was broken! I was messing with this circuit on friday and must have blown this n-mos. after your advise, i replaced thr components and they work amazing. thanks a lot.
 

crutschow

Joined Mar 14, 2008
38,529
I was messing with this circuit on friday and must have blown this n-mos.
The gates of MOSFETs are quite static sensitive and will blow if they see a voltage above their maximum (typically 20V), so you need to be careful when handling them.
Shorting the gate to the source until they are soldered in the circuit provides good protection.
 

Thread Starter

pcbenthusiast

Joined Mar 24, 2017
62
The gates of MOSFETs are quite static sensitive and will blow if they see a voltage abo ve their maximum (typically 20V), so you need to be careful when handling them.
Shorting the gate to the source until they are soldered in the circuit provides good protection.
oh ok. so just run a whire between gate-source of nmos & pmos?
 
Top