Designing Power MOSFET Circuits - Circuit Tips and Tricks

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] so one of the biggest requests that I have had since starting this channel is to do a video kind of over viewing and going into how to choose and select different MOSFETs there's a ton of good information out there that either are in sanely advanced to where you have to do like 18 ter evasions to figure out how to calculate anything with a MOSFET there's a ton of articles that say you apply voltage the MOSFET turns on calculate power RDS on that's it there's not a whole lot of in-between kind of going into what are the useful equations to where you can get valid info how to drive them but don't get so down into the weeds to where you're really losing out on actually how to make something useful and just trying to do all the theoretical side so my goal with this video and I have a blog post also on this is to kind of go over just enough detail to where you can do most useful calculations specifically for high power designs I'm gonna mention a little bit about higher switching speeds but not a ton because that is where it does get a little more complicated but most people aren't really worried about that unless you're building like a voltage regulator or something like that so I think the best way to start this is just with a simple example of a logic level MOSFET circuit so everyone has seen a MOSFET circuit like this as a quick overview on MOSFETs the big difference between them and a BJT or an NPN transistor is a MOSFET switches on and off based on an applied voltage it doesn't require a continuous current going from the gate to source like it would on a standard transistor it's also important to realize that the gate of a MOSFET essentially acts as a capacitor once the gate is fully charged there's really no current that flows of course there's always parasitic so there's always some current that flows but it's mostly negligible once the gate is charged then the drain can to the source and I'm gonna be limiting this discussion to n-channel MOSFETs they're way more common and realistically they for high-power designs that's really all you need this is what is called a logic level MOSFET there are two main types of MOSFETs standard or power MOSFETs and then logic level logic level are a newer type of MOSFET and the big difference with them is they require only a up to a 5 volt voltage applied on its gate with respect to the source so if you look at the gate to source voltage once you get below around 2.1 ish volts the resistance from the drain to source decreases exponentially resistance from drain to source is simply what the resistance going across these two terminals are so if you were to essentially get rid of that MOSFET and replace it with a resistor right here when the MOSFET is fully turned on that is the resistance that is right there simple as that so this is one of the main specs that governs how much the MOSFET will heat up when you're turning it on so the other thing that this circuit has that a lot of people will overlook is this resistor right here this is what's called a gate resistor in what you have to remember why those are needed is remember how I said that the gate acts as a capacitor what happens to a capacitor when it's completely uncharged and you apply a voltage you're driving circuit sees that gate sees the capacitor as a short circuit so if this was just a wire the second you go to switch this on this gate is viewed by this circuit as a short if this microcontroller is unable to source that much current something Bad's gonna happen because with no resistance here of course there's parasitics but with no real resistance here powering this from presume five volts it can try to source several amps going into this gate so a gate resistor acts to limit that so at five volts with a hundred ohm resistor it's gonna limit it to what 50 milliamps which any microcontroller should be able to source if you need to have it a little bit lower you just raise the resistance of this there's a couple other important reasons why gate resistors are used remember how I mentioned that there's those parasitics so this trace has a certain resistance which you can't really calculate easily there's certain resistances going into the gate those could be tens of ohm tens of millions maybe up to half an ohm you don't really know if you don't have this gate resistor and you try to calculate switching speeds you try to calculate anything you really don't have a way to know what this resistance is and you don't have a way to know how much current is being applied the second you add in one of these gate resistors those parasitics become completely overshadowed by this gate resistor it doesn't matter if it's a hundred point zero one ohms or a hundred point one ohms the hundred is way more significant in your calculation and that's even truth this was ten ohms ten point zero one ohms and ten point one is not that big of a difference for your calculations so it just allows you to have a better reference point to make your calculations from the other reason gate resistors are important and this is a little more intricate so I'm not gonna go into it too much basically if you don't have this you can get what's called ringing or oscillations since there's such a high amount of current being sourced so quickly without a gate resistor here the parasitics mainly the inductance has the ability to make this gate oscillate from different voltages and it can keep the MOSFET from turning on it can make it to where it's in a state that you don't want it to be or it can over voltage it entirely basically that gate resist they're just acts to kind of dampen all of that and make it a much smoother transition going from off to on or on to off so something else that's really important with MOSFETs and I did not draw it in here I was making sure you guys were paying attention you have to have a pulldown resistor or you have to have something that makes this MOSFET in a default state so if we add a 10k resistor right here that means no matter what this output is if it's if it's floating or it's open drained if the microcontroller turns on and it's at an unknown state this pulldown resistor is gonna ensure that the gate is always in a down state to where there's no charge on it typically with high power MOSFETs you're always gonna want the default state to be off so if nothing else is happening with this circuit you can be assured that this will not be conducting and your MOSFET will not be turned on so now I'm sure you're thinking oh logic level MOSFETs are the way to go I don't have to use anything else that would be nice honestly I unless it's for an indicator LED or something very low-power I virtually never use logic level MOSFETs there are incredible trade-offs that they made when they designed the MOSFET to be a logic level MOSFET basically the RDS on so the resistance from drain to source the amount of gate charge so the amount of charge that has to be injected into the gate to get it to turn on are almost always gonna be significantly higher in a logic level MOSFET unless there's some overwhelming reason why you can't drive it as a normal MOSFET is I would never recommend you use a logic level FET for anything other than very low power non important drivers this is kind of the standard configuration that I will use for driving a high power MOSFET this NCP chip is what's called a gate driver it has one goal in life it turns on and turns off MOSFETs and it does it very well what really nice about this is it has a separate H and L output it has the output high which is actually what injects the charge outputs current to turn on the MOSFET and then the out L is what drains the gate so removes the charge from it what that allows you to do I don't show it here you can use two different gate resistors to fine-tune how quickly the MOSFET turns on and how quickly it turns off for this case I don't put it there because for turning on a high power load it doesn't really matter because they're pretty slow so the MOSFET I am using here is one of the go-to power MOSFETs that I use it has an incredibly small RDS on which compared to the logic level MOSFET which was one point six homes this is 1.4 milliohm 's so a substantial decrease in the resistance on it and it also has a pretty small gate charge which I'll talk about in a little bit so now I want to discuss some other important datasheet specs a couple I've already mentioned a couple I have it where this I'm gonna reference my blog post so let's say we need to make each Bridge driver I've talked about each bridges in the past it's a way to control like a brushed DC motor or a linear actuator it needs to be able to source 10 amps continuously if there is a stall condition it needs to be able to handle up to 25 amps it'll be powered by 12 volt DC it'll have a silent PWM speed which just means it's not in the audible range so ultrasonic which is 20 to 30 kilohertz and of course we need to minimize heat dissipation as always if we take this MOSFET and this gate driver as our example we can look at the data sheet of this MOSFET the important specs that we need to grab from it are the RTS max we don't care about the typical because we need to design for the worst case scenario of course you can use that to calculate the amount of power that will be dissipated from the MOSFET the VD SS is simply the amount of voltage that this MOSFET can have between its drain and its source so between here between this pin and this pin which since we're powering this from 12 volts we're not even close to the ID which is either silicon limited or package limited we always care about the package limited because that is irrelevant because we're using this specific package and this is a spec that's commonly misunderstood this does not mean that you can drive this MOSFET at 240 amps if you tried doing this at 240 amps without it being like literally underwater or some water cooling system it'll burst into flames almost immediately all this means is you absolutely cannot drive it above that but you're not going to be able to drive it at that so take this number with a complete grain of salt just don't exceed it the next important spec is the vgs which is simply the gate to source voltage so the maximum voltage that you can apply on the gate with respect to the source and this is typically around 20 volts for a standard mosfet which we are driving it from 12 volts so again we're perfectly fine there then the r theta j a which this is the thermal resistance from the junction of the mosfet to the outside air this we used to determine how hot the mosfet will get at a given power the last important spec and this is the one where it's definitely not a true science what I'm gonna show you guys but it's a decent rule of thumb and that is the total gate charge this I briefly mentioned a couple of times already in this video and what this is is this is the amount of charge that you have to inject into the gate before it turns fully on since it's a capacitor essentially on the gate you have to give it that much charge in coulombs or nano coulombs to have it turn on this is one of the main factors that governs how fast the MOSFET turns on and then by default turns off so let's start doing some calculations and this obviously isn't the H bridge circuit but I change the value of the resistor here so it should be pretty similar so the first thing that we want to work on is determine how much power the MOSFET will be dissipating worst case so we use P equals I squared R we know that our max current in a stall which is the worst case scenario is 25 amps and our worst case resistance is 1.4 and when we calculate that out we get 0.875 watts but now we have to relate that value to something useful because in a vacuum under a lot we don't really know if that's a good value or not so that's where that our theta Junction to ambient comes in so we know that the theta Junction to ambient is 40 C over W which means for every watt that the MOSFET dissipates it will raise in temperature by 40 degrees Celsius so if we simply multiply that by our power that gives us the delta T we have to make sure that we understand that that is not what temperature it will be at that's the temperature it'll increase by so that is 35 C so if we are at a room temperature ambient around 25 C it'll raise by 35 C which is 60 degrees Celsius which 60 C for the junction temperature is perfectly safe it should be safe depending on the MOSFET up to around a hundred C if not a little more but I always try to shoot for a maximum of ABC worst case but you can always reduce that by having a heatsink on there so now we know that the heat dissipation of this MOSFET will not be an issue the next thing we want to see is how quickly we can switch it on and off so for that the first thing we need to do is see how much current this driver will be sending to the gate and like I said this gate driver can source up to an up to ten amps I have a 10 ohm gate resistor here so we need to calculate the amount of current maximum that it can inject and that is simply V equals IR or maximum current is 1.2 amps and there is a simplification here this is assuming that the voltage at the gate stays at zero because we're assuming that the voltage from here - this is the total voltage which it's not typically this will be a couple volts but that's where my simplifications are coming in so just keep that in mind if you have to do the exact calculation you're gonna have to do a lot more intricate stuff than I'm showing here but when we finish this calculation I'll show you why I feel confident for this case that these calculations hold true and now we can use a different calculation to see how long it takes to inject that much charge into the gate of the MOSFET and this is just the time equals charge divided by current we're trying to solve for time we know that our charge that needs to be injected is 354 nano coulombs and we know that our current is 1.2 amps when we calculate that out we get T is equal to 295 nanoseconds and with this calculation that is how long it will take for this MOSFET to turn fully off we need to switch it at a different or a different frequency it's not just how quickly it turns on it's how quickly it turns on then off so technically the round-trip is double this and when we do that calculation and see the maximum frequency it comes out to around 2 mega so we only have to switch this at 20 kilohertz we are several orders of magnitude two below the theoretical max switching speed of this MOSFET this is where the rule of thumb comes into play if we would have calculated this out and let's say this time would have Gor this frequency would have came out to 30 kilohertz or 40 we are way too close to that threshold and I would not feel confident with this at all and we would either need to change the gate resistor to have it be bigger of a gap or do the more intricate derivations which I mentioned in the blog some app notes which go into great detail on that but for something like this this is perfectly fine and I would never go into any more calculations than this because it's just not necessary if we do the intricate calculations maybe we get that the actual switching speed maximum is 1 point 2 megahertz or 1 point 1 it doesn't matter we're still so far below that that it absolutely is fine whatever this comes out to be and this is where you could actually tune this gate resistor to be a little bit higher of a value making it turn on a little bit slower which can help with some EMC and emissions issues but that's something I'm not gonna get into on this video so basically with those calculations out of the way we now know that this MOSFET driven by this gate driver won't heat up too much it's not gonna be even close to the maximum switching speed so we can feel pretty confident that this MOSFET will be able to drive that load of course there's other stuff to be concerned with with a brushed motor driver the back EMF having sure making sure you have enough bulk capacitance but on the mosfet side we are perfectly fine with this selection so I hope that this video covered everything that you typically need to know when selecting a MOSFET and designing a circuit for it I will have a link in the description to my blog post which goes into a little more detail on this and it gives a few more apples but other than that I hope you guys enjoyed this video and please let me know any suggestions of future videos and I will see you in the next video
Info
Channel: MicroType Engineering
Views: 208,599
Rating: undefined out of 5
Keywords: Kicad, pcb, schematic, design, electrical engineering, tutorial, kicad 5, kicad, spi, arduino, raspberry pi, circuit, circuit board, wifi, regulator, overvoltage, tips, tricks, altium, orcad, enclosure, resistor, 4dsystems, four layer, LED, LED Circuit, LED Circuit Design, MOSFET, Driver
Id: 56p3_aORiJ0
Channel Id: undefined
Length: 20min 10sec (1210 seconds)
Published: Wed Feb 26 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.