Using an N-Channel Mosfet as a reverse polarity protection diode - Page 1
Forum section: electronics / projects

author: waymond91
author_rank: Regular Contributor
timestamp: May 09, 2024, 09:08:42 am
content: 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...This seems very simplistic, and I cant quite pin down the behaviour of the body diode. Im under the impression the body diode goes fromSOURCE -> 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

author: Kleinstein
author_rank: Super Contributor
timestamp: May 09, 2024, 09:43:29 am
content: 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.

author: madires
author_rank: Super Contributor
timestamp: May 09, 2024, 10:09:53 am
content: 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.

author: youngda9
author_rank: Regular Contributor
timestamp: May 09, 2024, 12:13:54 pm
content: 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.

author: moffy
author_rank: Super Contributor
timestamp: May 09, 2024, 12:19:21 pm
content: What you want is something like this, the zener is optional, only needed for voltages exceeding the G-S breakdown.

author: Zero999
author_rank: Super Contributor
timestamp: May 09, 2024, 12:58:51 pm
content: Quote from: moffy on May 09, 2024, 12:19:21 pmThat 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

author: PwrElectronics
author_rank: Regular Contributor
timestamp: May 09, 2024, 03:10:41 pm
content: 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.

author: Zero999
author_rank: Super Contributor
timestamp: May 09, 2024, 08:21:03 pm
content: If the positive side can be common, then the circuit will work with N-MOSFETs and NPN transistors.

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 09, 2024, 08:26:34 pm
content: Quote from: PwrElectronics on May 09, 2024, 03:10:41 pmUh. 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.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: May 09, 2024, 09:15:30 pm
content: Quote from: Zero999 on May 09, 2024, 08:21:03 pmGood 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.

author: waymond91
author_rank: Regular Contributor
timestamp: May 10, 2024, 07:25:36 pm
content: 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 ICSo what I landed on was the MAX40200:https://www.analog.com/media/en/technical-documentation/data-sheets/max40200.pdfIt 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

author: Shay
author_rank: Regular Contributor
timestamp: May 10, 2024, 08:29:30 pm
content: Quote from: waymond91 on May 10, 2024, 07:25:36 pmMaximum 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."

author: waymond91
author_rank: Regular Contributor
timestamp: May 11, 2024, 07:04:56 am
content: 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: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?

author: perdrix
author_rank: Frequent Contributor
timestamp: May 11, 2024, 08:56:50 am
content: 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/#msg5239122David

author: langwadt
author_rank: Super Contributor
timestamp: May 11, 2024, 10:10:12 am
content: Quote from: perdrix on May 11, 2024, 08:56:50 amit 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 directionsthat's the point of the schematic Zero999 posted

author: Zero999
author_rank: Super Contributor
timestamp: May 11, 2024, 04:49:45 pm
content: Quote from: perdrix on May 11, 2024, 08:56:50 amThe 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.

author: PwrElectronics
author_rank: Regular Contributor
timestamp: May 14, 2024, 12:09:20 am
content: QuoteOh, 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.

author: waymond91
author_rank: Regular Contributor
timestamp: August 07, 2024, 08:12:19 pm
content: 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 this2. 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?

author: pcprogrammer
author_rank: Super Contributor
timestamp: August 08, 2024, 05:31:08 am
content: 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.

author: ArdWar
author_rank: Frequent Contributor
timestamp: August 08, 2024, 08:02:37 am
content: Quote from: perdrix on May 11, 2024, 08:56:50 amFor 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 casePlease 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)

author: PeteH
author_rank: Unknown
timestamp: August 08, 2024, 09:43:21 am
content: 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.

author: waymond91
author_rank: Regular Contributor
timestamp: August 08, 2024, 10:05:42 pm
content: 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?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?Quote from: pcprogrammer on August 08, 2024, 05:31:08 amUnfortunately 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:

author: Smokey
author_rank: Super Contributor
timestamp: August 08, 2024, 11:59:06 pm
content: https://www.digikey.com/en/products/detail/texas-instruments/LM5050MKX-1-NOPB/2753640

author: waymond91
author_rank: Regular Contributor
timestamp: August 09, 2024, 02:51:59 am
content: Quote from: Smokey on August 08, 2024, 11:59:06 pmThanks for the help! Still looking for a way I can make the current board work with minimal "re-work"

author: pcprogrammer
author_rank: Super Contributor
timestamp: August 10, 2024, 03:14:38 pm
content: QuoteDon'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.htmlI 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.