Author Topic: Using an N-Channel Mosfet as a reverse polarity protection diode  (Read 19784 times)

0 Members and 1 Guest are viewing this topic.

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Ok, I think I am getting myself turned around here.
I have a circuit that uses 8 18650 lipos in parallel.

I was previously going to use a schottky diode for reverse polarity protection, and reverse current protection on each the battery cells.
However the power losses are pretty substantial for the application.

I was then going to use a p-channel mosfet as high-side reverse polarity protection.
Then I came to believe that if I do this, if one of the cell voltages is higher than the other, the lower cell might have some current flowing into it...

After poking around and asking chat gpt, I now want to use an n-channel mosfet on the high side with the source and drain shorted. I believe this should functionally behave as diode with minimal forward voltage drop, but this seems too good to be true...

Screenshot-2024-05-09-at-11-03-03-AM" border="0

This seems very simplistic, and I cant quite pin down the behaviour of the body diode. Im under the impression the body diode goes from
SOURCE -> DRAIN and therefore will not be backflowing current into the battery cell if a cell is under charged.

I know this should be basic but Ive got my wires crossed before - just hoping a real human being could point me in the right direction on this one  :palm:

 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 17250
  • Country: de
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #1 on: May 09, 2024, 09:43:29 am »
As shown the MOSFETs would never turn on. There are missing the gate voltage higher than the source to turn on. This would need an extra more postive voltage and control circuitry.
For the positive side p-channel MOSFETs are easier, though usually higher R_on.

One could use n-channel FETs on the low side / negative side of the batteries.
 
The following users thanked this post: waymond91

Offline madires

  • Super Contributor
  • ***
  • Posts: 9197
  • Country: de
  • A qualified hobbyist ;)
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #2 on: May 09, 2024, 10:09:53 am »
With that setup you're using just the MOSFET's body diode. It's basically the same as using any other diode. Something like an ideal diode controller could be what you're looking for.
« Last Edit: May 09, 2024, 10:16:15 am by madires »
 
The following users thanked this post: waymond91

Offline youngda9

  • Regular Contributor
  • *
  • Posts: 70
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #3 on: May 09, 2024, 12:13:54 pm »
You state that the power losses using Schottky diodes are substantial...I would think they would be less than using the body diode of a FET.  Please provide part numbers and data.
 
The following users thanked this post: waymond91

Online moffy

  • Super Contributor
  • ***
  • Posts: 3037
  • Country: au
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #4 on: May 09, 2024, 12:19:21 pm »
What you want is something like this, the zener is optional, only needed for voltages exceeding the G-S breakdown.

« Last Edit: May 11, 2024, 12:16:03 pm by moffy »
 
The following users thanked this post: waymond91

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22437
  • Country: gb
  • 0999
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #5 on: May 09, 2024, 12:58:51 pm »
What you want is something like this, the zener is optional, only needed for voltages exceeding the G-S breakdown.

That will work as reverse polarity protection, but isn't safe for connecting two batteries in parallel.

An ideal diode circuit is required. Here's one with a P-MOSFET. The BJTs should be matched pairs, such as the DMMT5401.


* Ideal diode discrete.asc
« Last Edit: May 09, 2024, 01:01:35 pm by Zero999 »
 
The following users thanked this post: HackedFridgeMagnet, moffy, waymond91

Offline PwrElectronics

  • Regular Contributor
  • *
  • Posts: 148
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #6 on: May 09, 2024, 03:10:41 pm »
A PFET on the high side can be used for this but usually my company does not due to lack of low Rds parts and cost.  Usually use a NFET with a ideal diode controller like a LM5050.

I used one of those on a project a few years ago that had to do about 500A in the correct direction but block reverse.  There are some incredible fets out there.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22437
  • Country: gb
  • 0999
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #7 on: May 09, 2024, 08:21:03 pm »
If the positive side can be common, then the circuit will work with N-MOSFETs and NPN transistors.

 
The following users thanked this post: pardo-bsso, PCB.Wiz

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17799
  • Country: fr
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #8 on: May 09, 2024, 08:26:34 pm »
A PFET on the high side can be used for this but usually my company does not due to lack of low Rds parts and cost.  Usually use a NFET with a ideal diode controller like a LM5050.

Uh. Please tell us more about your requirements, because sure in general there are more NMOS with low Rdson and lower cost for similar characteristics, but I have never has any issue finding appropriate PMOS for this for applications from a few mA to a few A, and that would still be cheaper than a NMOS + a LM5050. Of course there are always exceptions, but making this a company-wide rule sounds pretty counter-engineering. Oh well.
 
The following users thanked this post: Someone, waymond91

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 3358
  • Country: au
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #9 on: May 09, 2024, 09:15:30 pm »
If the positive side can be common, then the circuit will work with N-MOSFETs and NPN transistors.
Good example, there are a couple of points to watch
* For single cell use, you need to choose a low threshold fet (sub 2V?) - you need RDS still low at the cell discharge.
eg You do not want a 3.5V threshold fet.

* For higher voltages, watch the reverse VBE rating of the NPN pair.
ROHM and Toshiba make muting transistor pairs with VBE ratings up to 20V, tho they do not define the VBE matching.
 
The following users thanked this post: Zero999, waymond91

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #10 on: May 10, 2024, 07:25:36 pm »
Wow guys, thank you so much for the awesome feedback! I had no idea that there was such a circuit as an "ideal diode" so it was quite interesting to dive in a bit.

Because of my inexperience, anytime I see more than 2 transistors in a sub-circuit, or I get overwhelmed with bias resistors, or I get a spooky feeling my circuit needs hysterisis, I really just start looking for an IC  ;D

So what I landed on was the MAX40200: https://www.analog.com/media/en/technical-documentation/data-sheets/max40200.pdf

It seems like an appropriate choice here. My application draws about 1.5 - 2 watts (but maybe has higher transients...) so the 1.5 max amperage should have me covered.
The input voltage range looks right for a single cell lipo (2.5 - 5)
It lists the quiscient current at 15 uA max which is nice because the device will be "off" for long periods of time.

I guess one of my big concerns besides jsut generally am I doing this right:
1. The device lists a load capacitance of .3 uF -> 100 uF. Is this just referring to the output capacitor? Or do I need to be checking the input capacitance to the switching regulator this all feeds into?
2. My application typically draws about 1.5 watts -> 2 watts. I believe with this 1.5A spec a single battery should suffice, but I am a little confused about how putting some many devices in parallel really plays out. I assume I should be able to draw more than 1.5A from the battery cells in a pinch

Screenshot-2024-05-10-at-9-15-00-PM" border="0
 

Offline Shay

  • Regular Contributor
  • *
  • Posts: 136
  • Country: il
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #11 on: May 10, 2024, 08:29:30 pm »
1. The device lists a load capacitance of .3 uF -> 100 uF. Is this just referring to the output capacitor? Or do I need to be checking the input capacitance to the switching regulator this all feeds into?
2. My application typically draws about 1.5 watts -> 2 watts. I believe with this 1.5A spec a single battery should suffice, but I am a little confused about how putting some many devices in parallel really plays out. I assume I should be able to draw more than 1.5A from the battery cells in a pinch

Maximum output capacitance is literally the maximum capacitance this IC can have on its output before it might become unstable and oscillate due to the internal feedback loop becoming unstable. This means, in general, that you should keep the combined output capacitance under 100uF. I'd even encourage doing a test and observing how the IC behaves in your application.
"In a pinch," for example, in a transient, you have the output capacitance to handle most of those.

From the datasheet: "These capacitors (Input & Output) also improve the surge capability of the power supply. In general, for higher Output Capacitive Loads [e.g., COUT = 10µF], then CIN should be kept to COUT/10 (µF) for optimum transient response."

 
The following users thanked this post: waymond91

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #12 on: May 11, 2024, 07:04:56 am »
Ok thank you for the response.
So in our case, since we have 8 of these diode controllers, putting a 10uF ouput capacitor on each one doesnt seem like a hot idea...
The output bus formed by these diode controllers feeds through a mosfet and then goes into a switching boost converter.
I am assuming the diode controller can "see" the input capacitance of the boost converter (44 uF) but cannot "see" the output capacitance of the boost converter?
Heres my switching regulator below:
Screenshot-2024-05-11-at-8-59-50-AM" border="0

If the above is true and I change the output capacitor to each diode to controller 1uF, this would bring the output capacitance to about 52 uF, so in that case I should add a 5.2uF input capacitor to each diode controller?
 

Offline perdrix

  • Frequent Contributor
  • **
  • Posts: 816
  • Country: gb
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #13 on: May 11, 2024, 08:56:50 am »
Most circuits here for RPP have been over complex.   The circuit in this post is simple and it works very well.

https://www.eevblog.com/forum/beginners/another-reverse-polarity-protection-question/msg5239122/#msg5239122

David
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 5789
  • Country: dk
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #14 on: May 11, 2024, 10:10:12 am »
Most circuits here for RPP have been over complex.   The circuit in this post is simple and it works very well.

https://www.eevblog.com/forum/beginners/another-reverse-polarity-protection-question/msg5239122/#msg5239122

David

it won't work for ORing supplies because once the fet is on it won't act like a diode any more, it'll conduct in both directions

that's the point of the schematic Zero999 posted
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22437
  • Country: gb
  • 0999
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #15 on: May 11, 2024, 04:49:45 pm »
Most circuits here for RPP have been over complex.   The circuit in this post is simple and it works very well.

https://www.eevblog.com/forum/beginners/another-reverse-polarity-protection-question/msg5239122/#msg5239122

David
The MOSFET only turns off when the power supply voltage drops below the threshold. When the battery is connected, it will bias the gate on, allowing current to flow through the MOSFET in both directions. Here's a simulation showing the battery voltage, when a voltage source is connected to the output and swept from 3.3V to 4.3V. The battery voltage simply follows the source voltage, minus the losses due to the MOSFET's on resistance.

Notice how the current through V1 changes direction, when the output voltage rises, indicating it's being charged. LTSpice shows negative current for discharging and positive current for charging.

« Last Edit: May 12, 2024, 08:21:50 am by Zero999 »
 
The following users thanked this post: PCB.Wiz

Offline PwrElectronics

  • Regular Contributor
  • *
  • Posts: 148
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #16 on: May 14, 2024, 12:09:20 am »
Quote
Uh. Please tell us more about your requirements, because sure in general there are more NMOS with low Rdson and lower cost for similar characteristics, but I have never has any issue finding appropriate PMOS for this for applications from a few mA to a few A, and that would still be cheaper than a NMOS + a LM5050. Of course there are always exceptions, but making this a company-wide rule sounds pretty counter-engineering. Oh well.

Oh, not a rule but things usually cost out that way.  For low currents, a regular or schottky diode.  There have been some with a PFET over the years too.  But, over a couple of amps things get to be a problem as most of our designs are to no less than 85C and many are 105C or 125C so there is not much room for temperature rise.  No forced cooling either in these applications.  Then the space constraint.  For a given Rds, a PFET is more costly than a NFET too.  My most recent design where I used a ideal diode controller and NFET for this application I had no room to fit a larger package PFET needed to get an acceptable low power dissipation as the Rds was too high compared to a NFET in a smaller package.  Just this past week, a colleague was asking me about this as they have a D2PAK Pfet on a product that looks massive compared to the rest of the parts and they are looking to get rid of it somehow (as the equivalent controller and Nfet stands to be 1/2 of the BOM cost).  They want to reclaim space for feature creep too I suspect.
 

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #17 on: August 07, 2024, 08:12:19 pm »
Ok, so I got this design made using the max40200 ideal diode controller on each of my 18650 cells.
However, diode controller does not seem to be blocking any reverse current, and is behaving as a short.
Right now I only have a single power supply to test with.
When I power it in reverse polarity, the current limit hits and if I crank up the current I can feel the max40200 get hot.
Im not exactly sure what Im doing wrong but I only see two potential issues:
1. The datasheet says .33uF of input capacitance is needed, somehow I missed this
2. I have tied the enable pin high directly to VIN (the battery "positive" in this case). I am unsure how this will all behave when in reverse polarity, and I hope a separate enable voltage is not required per diode controller. I have cut the trace on this enable pin and it still exhibits the same behavior.

Any ideas of how to fix or trouble shoot?

Screenshot-2024-08-07-at-1-10-22-PM" border="0

Screenshot-2024-08-07-at-1-10-44-PM" border="0

Screenshot-2024-08-07-at-1-10-30-PM" border="0

 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 6110
  • Country: nl
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #18 on: August 08, 2024, 05:31:08 am »
Is there an absolute need for the batteries not to be permanently directly connected to each other?

From what I understand from lithium ion batteries it is perfectly ok to have them welded in parallel as long as you make sure the battery voltages are within a few (maybe tens of) millivolts of each other at the time of welding.

Makers of battery packs do this all the time. For charging, limit the current to what a single cell can handle. Saves on a lot of circuitry.

Online ArdWar

  • Frequent Contributor
  • **
  • Posts: 733
  • Country: sc
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #19 on: August 08, 2024, 08:02:37 am »
Most circuits here for RPP have been over complex.   The circuit in this post is simple and it works very well.

https://www.eevblog.com/forum/beginners/another-reverse-polarity-protection-question/msg5239122/#msg5239122

David

For future reference if someone find themselves in this confusing situation:

In power protection system there are a slight distinction between "reverse polarity protection" (also often advertised as reverse voltage blocking, etc) and "reverse current protection" (also often advertised as ideal diode, OR-ing controller, reverse current blocking etc). Most IC solutions that are not explicitly advertised as reverse current blocking are indeed only fulfill the former case

Please also note that there are also two common implementation for ideal diode, one that use and monitor constant voltage drop (the FET is operating in linear mode), and one that use comparator (relying on FET RDS(ON)). Tle latter is simpler and theoretically more efficient, but may not block properly if reverse current is relatively low (it often fail to block until several 100s of mA flows)
 
The following users thanked this post: waymond91

Offline PeteH

  • Supporter
  • ****
  • Posts: 121
  • Country: ca
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #20 on: August 08, 2024, 09:43:21 am »
The MAX part is not capable of performing reverse polarity functionality.

It's designed to work for reverse bias (out to in) but cannot tolerate negative voltages on any pin relative to ground.
 
The following users thanked this post: waymond91

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #21 on: August 08, 2024, 10:05:42 pm »
Thank you everybody for the feedback! Ok, then I guess my next plan is to order a n-channel mosfet from Amazon and bodge the boards a bit to create proper reverse polarity protection.

Something like this maybe - does this seem sensible?

Screenshot-2024-08-08-at-2-12-45-PM" border="0

Its not really clear to me where I want the mosfet. Should the GATE be pulled high by the battery or the output of the ideal diode? Im assuming the battery and avoid weird feedback issues...
Im also assuming that the GROUND for the MAX40200 doesnt need to be downstream of the n channel cutoff...
And that I can get away without resistor between the GATE and battery until we do our next order?

Is there an absolute need for the batteries not to be permanently directly connected to each other?

Unfortunately yes, I dont have a spot welder and the plan is to use these 18650s in some SMD battery holders and charge with an external 18650 charger. The final assembly looks a bit like this:
Whats-App-Image-2024-07-03-at-00-34-25" border="0
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 3881
  • Country: us
  • Not An Expert
 
The following users thanked this post: waymond91

Offline waymond91Topic starter

  • Regular Contributor
  • *
  • Posts: 93
  • Country: us
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #23 on: August 09, 2024, 02:51:59 am »
https://www.digikey.com/en/products/detail/texas-instruments/LM5050MKX-1-NOPB/2753640

Thanks for the help! Still looking for a way I can make the current board work with minimal "re-work"
 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 6110
  • Country: nl
Re: Using an N-Channel Mosfet as a reverse polarity protection diode
« Reply #24 on: August 10, 2024, 03:14:38 pm »
Quote
Unfortunately yes, I dont have a spot welder and the plan is to use these 18650s in some SMD battery holders and charge with an external 18650 charger. The final assembly looks a bit like this:

Don't know about the volume you are thinking of producing, but spot welders are not that expensive. For small volume this one can be enough. https://nl.aliexpress.com/item/1005006437044413.html I bought it recently and are happy with it.

But you would have to add charging to your product and make the batteries fixed inside the product.

In any case the reverse polarity protection with a mosfet as suggested in this thread won't work as required, as it only protects the circuit from reversing the battery and not the batteries from back charging when they have different charge levels. When the mosfet is on it conducts in both directions.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->