Author Topic: P channel mosfet body diode question.  (Read 6733 times)

0 Members and 1 Guest are viewing this topic.

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
P channel mosfet body diode question.
« on: April 07, 2015, 07:00:04 pm »
Hi, I want to switch between two power supplies on the high side. (Battery and PSU with common ground)

When the battery is too low I want my Arduino to switch to the PSU.

I found a diagram using an NPN transistor and two resistors to switch the gate of a P Channel mosfet on and off.

Now if I connect the two mosfets together on the load side, will the body diode allow current to flow backwards from the battery to the psu and the other way around?? I dont want to use diodes in the circuit because of the voltage drop.

Thanks.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: P channel mosfet body diode question.
« Reply #1 on: April 07, 2015, 07:08:20 pm »
Yes
You can get around this by using two P-ch mosfets back to back.  It will double your Rds(on), but if you use devices with a reasonably low Rds(on) it shouldn't be a big issue, and will still be significantly better than a diode.
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #2 on: April 07, 2015, 07:28:30 pm »
Okay thanks.
So power + D S - S D load Gnd?
 

Offline JohnnyBerg

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: de
Re: P channel mosfet body diode question.
« Reply #3 on: April 07, 2015, 10:10:24 pm »
Have a look at the schematic of the Arduino UNO, it has a circuit that switches power between the barrel jack and USB.

AFAIK It uses 1 P channel mosfet and a LM358 as a comparator.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: P channel mosfet body diode question.
« Reply #4 on: April 07, 2015, 10:41:23 pm »
Okay thanks.
So power + D S - S D load Gnd?

Yes

Here's an example:

From this page:
http://www.electronic-products-design.com/geek-area/electronics/mosfets/using-mosfets-as-general-switches

When the control is high, current can flow in either direction through the switch.  When the control is low, current can not flow in either direction.
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #5 on: April 08, 2015, 06:35:33 am »
Thanks. I'll have a play.
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #6 on: April 08, 2015, 11:49:57 am »
What kind of voltage drop should I expect? I quickly bread boarded the circuit and had a 0.5 volt drop? 
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: P channel mosfet body diode question.
« Reply #7 on: April 08, 2015, 12:44:36 pm »
What was the current flowing through?
What was the supply voltage?
Which FETs did you use?
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: P channel mosfet body diode question.
« Reply #8 on: April 08, 2015, 01:34:17 pm »
Okay thanks.
So power + D S - S D load Gnd?

Yes

Here's an example:

From this page:
http://www.electronic-products-design.com/geek-area/electronics/mosfets/using-mosfets-as-general-switches

When the control is high, current can flow in either direction through the switch.  When the control is low, current can not flow in either direction.

but the turn off will be slow, will that make the fet overheat?
you have to make sure this arrangement is protected from a shorted load, a lot of the power will be absorbed by the not fully turned on FETs, but I guess you would have had to protect against this anyway.

 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3237
  • Country: gb
Re: P channel mosfet body diode question.
« Reply #9 on: April 08, 2015, 02:24:43 pm »
but the turn off will be slow, will that make the fet overheat?
you have to make sure this arrangement is protected from a shorted load, a lot of the power will be absorbed by the not fully turned on FETs, but I guess you would have had to protect against this anyway.

Switching speed is usually only a concern where you are turning the FET on and off very quickly, e.g. PWM, or where the expected currents are very large.  In this case the power dissipation is going to be negligible for single switching events.

Of rather more concern in that circuit is the absolute maximum Vgs is specified as 20v, so those MOSFETs are just waiting to go pop with a 20v input.  Clamping Vgs with e.g. a Zener would fix this.
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #10 on: April 08, 2015, 05:50:14 pm »
IRF9510 and between 12 and 14.4 volts.

Cheers

Oh and the draw is around 650ma.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: P channel mosfet body diode question.
« Reply #11 on: April 08, 2015, 05:55:30 pm »
Yikes - that FET has an Rds(on) of 1.2 ohms.  Find one of the many, many options with a more reasonable Rds(on) and that voltage drop will all but disappear.

For example, I'm using the IPP80P03P4L in one of my systems.  Vgs max of -16 (if your system runs at 14.4, you may want to use a voltage divider or zener as mikerj suggested to keep away from that limit), and an Rds(on) of .0037 ohms at Vgs=-10.
« Last Edit: April 08, 2015, 06:00:59 pm by suicidaleggroll »
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #12 on: April 08, 2015, 05:56:28 pm »
I admit they're the first ones I saw on ebay.
 

Offline SounduserTopic starter

  • Contributor
  • Posts: 33
Re: P channel mosfet body diode question.
« Reply #13 on: April 08, 2015, 06:38:20 pm »
Could anyone recommend a good low rds on fet for me? Not worried about package too much. But I'll want about 20 so don't want to pay too much  for each one.

Something around 20 volts and 5 amps.

Thanks.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: P channel mosfet body diode question.
« Reply #14 on: April 08, 2015, 06:40:41 pm »
digikey and mouser both have good search functions that allow you to specify your desired max Vgs, Vds, Rds(on), package type, etc.  Filter it to "in stock", sort by price, and pick your favorite one.
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: P channel mosfet body diode question.
« Reply #15 on: April 09, 2015, 01:14:05 am »
Did a quick sim and the peak power was 18W on turn off and this power averaged for maybe around a 10ms turn off time.
Sure it's probably not an issue in this case, but I wouldn't call it negligible.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: P channel mosfet body diode question.
« Reply #16 on: April 09, 2015, 01:48:41 am »
470k is a bit much for the gate pull up, I'd change that to maybe 50k.  Should help accelerate the shut off without wasting significantly more power.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf