{"id":14849,"date":"2022-05-25T19:42:08","date_gmt":"2022-05-25T19:42:08","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/the-mosfet-as-switch"},"modified":"2025-12-01T17:04:29","modified_gmt":"2025-12-01T17:04:29","slug":"the-mosfet-as-switch","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch","title":{"rendered":"The MOSFET as Switch"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this Post<\/h2>\n\n<p>Transistors are often used as switches in the world of microcontrollers. MOSFETs are often chosen, especially when high currents need to be controlled. In principle, MOSFETs are very easy to handle, but there are still a few things to consider when working with them. In particular, the question arises as to which parameters you need to pay attention to in order to select the right MOSFET. Another question is which additional components are required.     Do I need a series resistor at the gate? Do I need a gate driver? This article is intended to help answer this question. &nbsp;<\/p>\n<p>These are the topics I will discuss:<\/p>\n<ul>\n<li><a href=\"#was_ist_ein_MOSFET\">What is a MOSFET?<\/a>\n<ul>\n<li><a href=\"#MOSFETvsBJT\">MOSFET vs. bipolar transistor<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#minimalschaltung\">Minimum circuit<\/a><\/li>\n<li><a href=\"#auswahlkriterien\">Selection criteria <\/a>\n<ul>\n<li><a href=\"#logic_level\">Logic Level MOSFETs<\/a><\/li>\n<li><a href=\"#max_drain\">Maximum drain current<\/a><\/li>\n<li><a href=\"#rdson\">Contact resistance RDS<sub>(ON)<\/sub><\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#erwaegungen\">Further considerations<\/a>\n<ul>\n<li><a href=\"#kuehlkoerper\">Do I need a heat sink?<\/a><\/li>\n<li><a href=\"#vorwiderstand\">Do I need a series resistor?<\/a><\/li>\n<li><a href=\"#z_dioden\">Why Z-diodes?<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#gate_treiber\">Gate driver<\/a>\n<ul>\n<li><a href=\"#gate_treiber_schaltungen\">Driver circuits<\/a><\/li>\n<li><a href=\"#gate_treiber_ics\">Driver ICs<\/a><\/li>\n<li><a href=\"#treibermodule\">\u201cDriver modules\u201d<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#welcher_mosfet\">Which MOSFET should I use?<\/a><\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\" id=\"was_ist_ein_MOSFET\">What is a MOSFET?<\/h2>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"alignright size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs-821x1024.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"1024\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs-821x1024.jpg\" alt=\"TO-220 \/ TO-92 MOSFET\" class=\"wp-image-14271\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs-821x1024.jpg 821w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs-241x300.jpg 241w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs-768x958.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/MOSFETs.jpg 940w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/a><figcaption class=\"wp-element-caption\">TO-220 \/ TO-92 MOSFET<\/figcaption><\/figure>\n<\/div>\n<p>You can find many articles online explaining the structure and operating principle of MOSFETs, e.g. <a href=\"https:\/\/en.wikipedia.org\/wiki\/MOSFET\" target=\"_blank\" rel=\"noopener\">here<\/a> on Wikipedia. I will therefore only go into the bare essentials here.<\/p>\n<p>The term MOSFET stands for Metal-Oxide Semiconductor Field-Effect Transistor. The MOSFET has three connections, which are called gate, drain and source. The voltage between the gate and source controls the current flow between the source and drain. Normally, the gate is on the left, drain in the middle and source on the right when you look at the labeled side of the MOSFET.   &nbsp;<\/p>\n<p>There are n-channel and p-channel MOSFETs. The n-channel MOSFET opens when the potential at its gate in relation to its source exceeds a certain positive threshold value. To open the p-channel MOSFET, on the other hand, a voltage must be applied to its gate that is negative in relation to the source. You use the n-channel MOSFET on the GND side and the p-channel MOSFET on the positive side of the supply voltage.   <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet-1024x561.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"561\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet-1024x561.png\" alt=\"n-channel vs p-channel MOSFET\" class=\"wp-image-14130\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet-1024x561.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet-300x164.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet-768x421.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/n_vs_p_channel_mosfet.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">n-channel vs p-channel MOSFET<\/figcaption><\/figure>\n<\/div>\n<p>I will concentrate on the n-channel MOSFETs in my article.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"MOSFETvsBJT\">MOSFET vs bipolar transistor<\/h3>\n\n<p>When we talk about a transistor, we usually mean a bipolar junction transistor (BJT). However, as MOSFETs also belong to the large family of transistors, I have to distinguish between them by name here. <\/p>\n<p>Like MOSFETs, BJTs have three connections. And here too, the current flow between two of the connections, namely the collector and emitter, is controlled via the third connection, the base. However, they differ (among other things) in these aspects:  <\/p>\n<ul>\n<li>In the BJT, a current flows from the base to the emitter. This controls the current flow from the collector to the emitter. The bipolar transistor is therefore current-controlled. In contrast, the MOSFET is voltage-controlled.   <\/li>\n<li>The switching speed of the MOSFETs is higher than that of the BJTs.<\/li>\n<li>MOSFETs are more expensive.<\/li>\n<li>MOSFETs are suitable for higher currents.<\/li>\n<li>The BJT starts to conduct from a base-emitter voltage of around 0.7 volts. MOSFETs, on the other hand, generally require gate-source voltages of 1 to 4 volts. <\/li>\n<li>The MOSFET has a not inconsiderable parasitic capacitance. More on that later.<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\" id=\"minimalschaltung\">Minimum circuit <\/h2>\n\n<p>Let&#8217;s assume you want to switch a component that is operated with 5 volts. Furthermore, it needs a current that exceeds the limit of an I\/O pin. This would be 20 mA for the Arduino UNO R3, for example. On the other hand, the current should only be high enough to be supplied via the 5 volt output of the microcontroller board. For USB operation, this is usually 500 milliamperes, minus 50 milliamperes for the board and minus what the I\/O pins provide in total. In this case, the circuit can be designed very simply:     &nbsp;<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_internal_5V_arduino.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"642\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_internal_5V_arduino.png\" alt=\"\" class=\"wp-image-14138\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_internal_5V_arduino.png 1017w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_internal_5V_arduino-300x189.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_internal_5V_arduino-768x485.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/a><figcaption class=\"wp-element-caption\">Minimum circuit with one MOSFET<\/figcaption><\/figure>\n<\/div>\n<p>The load resistor R_L represents the device that you want to switch. I will go into the question of whether you need a series resistor. In most cases, you will be able to leave it out.  &nbsp;<\/p>\n<p>I tried out the circuit with an IRL520 MOSFET. One of the loads used was a 0.2 Watt LED (40 mA). <\/p>\n<p>For the MOSFET to block reliably, it must be pulled to GND level. This is possible with the above circuit if pin 9 is set to OUTPUT\/LOW. The safer option is to use an additional pull-down resistor (47 k\u03a9).  <\/p>\n\n<p>For higher current requirements or higher voltages, you must supply the load with a separate power source. If you are using a load that has a coil, such as a motor or an electromagnet, please keep in mind the obligatory freewheeling diode. <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1310\" height=\"800\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino.png\" alt=\"\" class=\"wp-image-25046\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino.png 1310w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino-300x183.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino-1024x625.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_switch_ext_power_supply_arduino-768x469.png 768w\" sizes=\"auto, (max-width: 1310px) 100vw, 1310px\" \/><\/a><figcaption class=\"wp-element-caption\">Not quite such a minimalist MOSFET circuit anymore<\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"auswahlkriterien\">Selection criteria for MOSFETs<\/h2>\n\n<p>There is a huge range of MOSFETs available, which does not make the choice any easier. In addition, the data sheets are quite confusing for non-electronics engineers, as the list of specified properties is long. I will discuss the most important criteria below.  <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"logic_level\">Logic Level MOSFETs<\/h3>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"alignright size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_features.png\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"183\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_features.png\" alt=\"\" class=\"wp-image-14153\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_features.png 386w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_features-300x142.png 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/a><figcaption class=\"wp-element-caption\">Data sheet information Logic Level MOSFET<\/figcaption><\/figure>\n<\/div>\n<p>If you want to control a MOSFET with a gate-source voltage of 5 or even 3.3 volts, then you should use a logic level MOSFET. The first page of the data sheet usually states whether this is the case, as in the example on the right. In addition, the <sub>RDSON<\/sub> value (explanation follows) for the logic level MOSFETs is specified at 5 volts or lower and not, as is usually the case, at 10 volts. Another indicator is a low \u201cGate-Source Threshold Voltage\u201d. This is the minimum gate-source (GS) voltage at which the MOSFET begins to conduct.    <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet-1024x46.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"46\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet-1024x46.png\" alt=\"\" class=\"wp-image-14157\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet-1024x46.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet-300x14.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet-768x35.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/GS_threh_datasheet.png 1171w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n<p>With logic level MOSFETs, the value is often between 1 and 2 volts; otherwise it is more likely to be 2 to 4 volts.<\/p>\n<p>Many MOSFETs have a designation according to the scheme \u201cIRFxxx\u201d or \u201cIRLxxx\u201d. With \u201cIRLs\u201d, you can generally assume that it is a logic-level MOSFET. However, it is not certain that an \u201cIRF\u201d is <em>not<\/em> a logic-level MOSFET. You can find more abbreviations <a href=\"https:\/\/www.mikrocontroller.net\/articles\/MOSFET-%C3%9Cbersicht#IRF_MOSFET-Codierung\" target=\"_blank\" rel=\"noopener\">here<\/a> on Mikrocontroller.net.   <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"max_drain\">Maximum drain current<\/h3>\n\n<p>The data sheets of the MOSFETs specify the maximum drain current I<sub>D<\/sub>, as here for the IRL520:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet-1024x89.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"89\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet-1024x89.png\" alt=\"\" class=\"wp-image-14167\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet-1024x89.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet-300x26.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet-768x66.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/max_I_D_datasheet.png 1178w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">IRL520 data sheet: maximum I Drain<\/figcaption><\/figure>\n<\/div>\n<p>However, the maximum I<sub>D<\/sub> depends on the gate-source voltage. You will find diagrams such as the following in the data sheets: <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_ID_vs_DS_Voltage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"459\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_ID_vs_DS_Voltage.png\" alt=\"MOSFET characteristic: I Drain vs. V Drain-Source\" class=\"wp-image-14161\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_ID_vs_DS_Voltage.png 701w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_ID_vs_DS_Voltage-300x196.png 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><figcaption class=\"wp-element-caption\">I Drain vs. V Drain\/Source<\/figcaption><\/figure>\n<\/div><div class=\"wp-block-image is-resized\">\n<figure class=\"alignright size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/I_DS__max_scheme.png\"><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"450\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/I_DS__max_scheme.png\" alt=\"\" class=\"wp-image-14171\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/I_DS__max_scheme.png 374w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/I_DS__max_scheme-249x300.png 249w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/a><\/figure>\n<\/div>\n<p>This is not as complicated as it may seem. Each of the curves indicates for a specific gate-source voltage how the current I<sub>D<\/sub> changes with the voltage between drain and source. The point is:&nbsp; For each gate-source voltage, there is a saturation range for I<sub>D<\/sub>. Perhaps this makes it even easier to understand: You have set a certain gate-source voltage in the circuit on the right, at which MOSFET conducts. Now you continuously increase the voltage U<sub>var<\/sub>. I<sub>D<\/sub> increases and with it the voltage drop across the load and across the drain source. If I<sub>D<\/sub> finally reaches the saturation range, the voltage drop across the load remains constant (U = R \u22c5 I) and any additional increase in Uvar drops across the drain source without the current increasing any further.      <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"rdson\">Drain-source on resistance RDSON<\/h3>\n\n<p>Another important selection criterion is the drain-source restistance R<sub>DS(on)<\/sub>. This is the resistance that drops across drain to source in the open state (\u201con\u201d). An ideal switch has an infinitely high resistance when it is off and a resistance of zero when it is on. In this respect, the MOSFET is not a switch at all, but a controllable resistor! RDS(On) is comparatively small, but not negligible (again for the IRL520):    <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RDSON_datasheet.png\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"49\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RDSON_datasheet.png\" alt=\"MOSFET Parameter RDSON - Specification data sheet\" class=\"wp-image-14174\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RDSON_datasheet.png 561w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RDSON_datasheet-300x26.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/a><figcaption class=\"wp-element-caption\">Data sheet specification RDSON (IRL520)<\/figcaption><\/figure>\n<\/div>\n<p>It should also be mentioned that RDS<sub>(On)<\/sub> is not constant, but increases as the gate-source voltage decreases.<\/p>\n<p>At high currents, R<sub>DS(On)<\/sub> becomes noticeable through power losses, i.e. the transistor gets hot. Here is a small calculation: The gate-source voltage on an IRL520 is 5 volts. R<sub>DS(On)<\/sub> is therefore 0.27 Ohm. The current is 5 amperes. The power loss is therefore    <\/p>\n<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-65e8a3b2e4cd6cfd117c8840da23926c_l3.png\" height=\"21\" width=\"508\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091; &#80;&#32;&#61;&#32;&#85;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#68;&#83;&#125;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#86;&#125;&#093;&#92;&#99;&#100;&#111;&#116;&#32;&#73;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#68;&#125;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#65;&#125;&#093;&#92;&#59;&#32;&#61;&#32;&#82;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#68;&#83;&#40;&#79;&#110;&#41;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#73;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#68;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#73;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#68;&#125;&#32;&#61;&#32;&#48;&#46;&#50;&#55;&#92;&#99;&#100;&#111;&#116;&#32;&#53;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#53;&#32;&#61;&#32;&#54;&#46;&#55;&#53;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#87;&#093;&#125; &#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>\n\n<p>To make matters worse, R<sub>DS(On)<\/sub> increases with the temperature:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_RDSON_vs_T.png\"><img loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"473\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_RDSON_vs_T.png\" alt=\"MOSFET IRL520: RDSON vs. temperature\" class=\"wp-image-14179\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_RDSON_vs_T.png 523w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_RDSON_vs_T-300x271.png 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/a><figcaption class=\"wp-element-caption\">RDSON vs. temperature for the IRL520<\/figcaption><\/figure>\n<\/div>\n<p>This easily doubles the power loss or even more.<\/p>\n<p>The R<sub>DS(On)<\/sub> value of the IRL520 is quite high at 270 m\u03a9. There are MOSFETs with significantly lower resistances. The <a href=\"https:\/\/www.infineon.com\/dgdl\/irlb3034pbf.pdf?fileId=5546d462533600a40153566027b22585\" target=\"_blank\" rel=\"noopener\">IRLB3034PbF<\/a>, for example, is at the lower end with a maximum of 1.7 m\u03a9 at a gate-source voltage of 4.5 volts. The power loss is correspondingly lower.   &nbsp;<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"erwaegungen\">Further considerations<\/h2>\n\n<h3 class=\"wp-block-heading\" id=\"kuehlkoerper\">Do I need a heat sink?<\/h3>\n\n<p>Due to the potentially high power losses, the question arises whether you need to attach a heat sink to the MOSFET. To check this, look for the value for <sub>R\u03b8JA<\/sub> (Thermal Resistance Junction-To-Ambient) in the data sheet: <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet-1024x95.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"95\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet-1024x95.png\" alt=\"\" class=\"wp-image-14177\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet-1024x95.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet-300x28.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet-768x71.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/RTHJA_datasheet.png 1169w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n<p>In this case (IRL520), the temperature increases by 62 degrees per watt. With the 6.75 watts calculated in the example above, you would initiate a catastrophic meltdown! <\/p>\n<p>In the data sheets, you will find the maximum permissible temperature T<sub>J<\/sub> (J = junction) for the MOSFET. A typical value is 175 \u00b0C. With the maximum expected ambient temperatureT<sub>A<\/sub>, this results in the maximum permissible power loss:  &nbsp;<\/p>\n<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 41px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-b0ab3c5406cf9362d38cd4d45fc33e8c_l3.png\" height=\"41\" width=\"135\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091; &#80;&#95;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#97;&#120;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#84;&#95;&#74;&#45;&#84;&#95;&#65;&#125;&#123;&#82;&#95;&#123;&#92;&#84;&#104;&#101;&#116;&#97;&#32;&#74;&#92;&#33;&#65;&#125;&#125; &#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>\n\n<p>As already mentioned, the temperature dependency of R<sub>DS(On)<\/sub> must also be considered when calculating the power loss. If you install your circuit in an enclosure, the ambient temperature will also increase. In addition, you should not work permanently at T<sub>J<\/sub>, but stay at least 30\u00b0 below it.  <\/p>\n<p><strong>These are all just estimates. You are responsible for your circuits &#8211; I accept no liability! <\/strong><\/p>\n\n<h3 class=\"wp-block-heading\" id=\"vorwiderstand\">Do I need a series resistor at the gate?<\/h3>\n\n<p>In some circuits you can see resistors in front of the gate of the MOSFET, in other circuits not. Do you need them? I have found many controversial discussions about this on Microcontroller.net, e.g. <a href=\"https:\/\/www.mikrocontroller.net\/topic\/462851\" target=\"_blank\" rel=\"noopener\">this one here<\/a> (very entertaining!). There are two aspects to this: One is unwanted electrical oscillations that can be caused by a fast charging of the gate, the other is the protection of the microcontroller. To anticipate, my conclusion is: as long as you are not working with very high PWM frequencies in combination with high gate capacitances, you can omit the series resistor.     But one by one.<\/p>\n\n<h4 class=\"wp-block-heading\">Base versus gate resistor<\/h4>\n\n<p>First of all, I would like to come back to the difference between the gate of a MOSFET and the base of a BJT. The base resistance for the BJT is essential, as only ~0.7 volts drop between the base and the emitter. Higher voltages lead to practically unrestrained currents.  <\/p>\n<p>The MOSFET, on the other hand, is voltage-controlled. No current flows from gate to source. However, the gate has a certain capacitance and therefore behaves like a capacitor. And to charge this capacitor, a time-limited current flows.   <\/p>\n\n<h4 class=\"wp-block-heading\">Experiments on gate resistance<\/h4>\n\n<p>I carried out a few experiments for this purpose. The starting point was this simple circuit: <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-1024x598.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"598\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-1024x598.png\" alt=\"\" class=\"wp-image-25121\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-1024x598.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-300x175.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-768x449.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1-1320x771.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/Mosfet_switch-1.png 1368w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n<p>The IRL520 was again used as the MOSFET. The 5 volts were provided by a laboratory power supply. A 10 k\u03a9 resistor was used as the load, i.e. a very low load. A pull-down resistor is required for this circuit; otherwise the gate would have an undefined potential. I soldered the resistor to the gate, as contacts on the breadboard produced noticeable resistances. I used the oscilloscope to monitor the gate-source and drain-source voltage.     <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-1024x545.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"545\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-1024x545.jpg\" alt=\"Setup for the MOSFET test\" class=\"wp-image-14201\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-1024x545.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-300x160.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-768x409.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-1536x818.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test-1320x703.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Mosfet_test.jpg 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Experimental setup<\/figcaption><\/figure>\n<\/div>\n<p>This is what the result looked like without a series resistor:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_accurate.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_accurate.png\" alt=\"\" class=\"wp-image-14183\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_accurate.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_accurate-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_accurate-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Without series resistor &#8211; yellow: gate-source voltage, blue: drain-source voltage<\/figcaption><\/figure>\n<\/div>\n<p>It took approx. 40 nanoseconds for the gate-source voltage to reach the applied voltage. The drain-source voltage drops to I<sub>D<\/sub> x R<sub>DS(On)<\/sub> in less than 3.6 nanoseconds once the \u201cGate-Source Threshold Voltage\u201d is reached. <\/p>\n<p>Now, there is another relevant specification in the data sheet, namely the \u201cTotal Gate Charge\u201d. This is the maximum charge that must flow into the gate to fully charge it. I don&#8217;t have the conditions specified in the data sheet, but I just want to make a rough calculation.  &nbsp;<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet-1024x100.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"100\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet-1024x100.png\" alt=\"\" class=\"wp-image-14197\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet-1024x100.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet-300x29.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet-768x75.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Total_Gate_Charge_datasheet.png 1168w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Total gate charge of the IRL520<\/figcaption><\/figure>\n\n<p>This means that up to 12 nanocoulombs flow in approx. 40 nanoseconds. Current is charge per time, so the result is the current: <\/p>\n<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-da95ba075a5b3354df79eeff4a4b2928_l3.png\" height=\"45\" width=\"273\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091; &#73;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#50;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#110;&#67;&#125;&#093;&#125;&#123;&#52;&#48;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#110;&#115;&#125;&#093;&#125;&#61;&#48;&#46;&#51;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#65;&#125;&#093;&#61;&#51;&#48;&#48;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#65;&#125;&#093; &#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>\n\n<p>For the Arduino UNO, a limit of 20 milliamps is specified for the I\/O pins. In the ATmega328P data sheet, the absolute maximum is specified as 40 milliamps. With the 300 mA, we are therefore far beyond this limit.  <\/p>\n<p>In another experiment, I connected the MOSFET to an Arduino I\/O pin. To do this, I soldered the connection cable directly to the Arduino pin to keep resistances as low as possible: <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_arduino-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_arduino-1.png\" alt=\"\" class=\"wp-image-14189\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_arduino-1.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_arduino-1-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_wo_Resistor_arduino-1-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Circuit without series resistor, but with the Arduino<\/figcaption><\/figure>\n<\/div>\n<p>In this case, charging the gate takes 120 nanoseconds.The Arduino pin cannot supply the required amount of charge as quickly as my laboratory power supply. The calculated current is 100 mA, which is still well above the specification.  &nbsp;<\/p>\n<p>Will I destroy my Arduino eventually? The prevailing opinion is no. If the load is in the nanosecond range, the Arduino can cope with it.  <\/p>\n\n<h5 class=\"wp-block-heading\">What happens with PWM?<\/h5>\n\n<p>With pulse width modulation, the microcontroller pin must load the gate at the PWM frequency. The <code>analogWrite()<\/code> function provides a PWM signal whose frequency depends on the board and the pin. For the Arduino boards, the frequency is \u2264 1000 Hz. At 1000 Hz, the average current would be (still related to the IRL520):   <\/p>\n<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-aa7fa4f9f6b6c3d77040fd34d341460a_l3.png\" height=\"45\" width=\"231\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091; &#73;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#48;&#48;&#48;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#110;&#67;&#125;&#093;&#125;&#123;&#49;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&#115;&#125;&#093;&#125;&#61;&#49;&#50;&#92;&#59;&#091;&#92;&#116;&#101;&#120;&#116;&#123;&micro;&#65;&#125;&#093; &#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>\n\n<p>That&#8217;s not a problem either:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_wo_driver_analogWrite.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_wo_driver_analogWrite.png\" alt=\"\" class=\"wp-image-14207\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_wo_driver_analogWrite.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_wo_driver_analogWrite-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_wo_driver_analogWrite-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">analogWrite controlled IRL520, yellow: gate-source voltage, blue: drain-source voltage<\/figcaption><\/figure>\n<\/div>\n<p>However, if you need faster PWM frequencies, it can become problematic at some point. At some point, you will actually reach the specification limits for the continuous current. At 1000 kHz, the current is already 12 mA. And finally, there are also MOSFETs with significantly higher gate capacitances. In such cases, you can then use a MOSFET driver. But we will come to that later.     <\/p>\n\n<h5 class=\"wp-block-heading\">What does a series resistor do?<\/h5>\n\n<p>If you place a resistor in front of a capacitor, it will charge correspondingly more slowly. I have tested this with a 100 \u03a9 and a 1 k\u03a9 resistor in front of the gate: <\/p>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_100Ohm_Resistor.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_100Ohm_Resistor.png\" alt=\"\" class=\"wp-image-14193\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_100Ohm_Resistor.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_100Ohm_Resistor-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_100Ohm_Resistor-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Gate series resistor: 100 ohms<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_1kOhm_Resistor.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_1kOhm_Resistor.png\" alt=\"\" class=\"wp-image-14187\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_1kOhm_Resistor.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_1kOhm_Resistor-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_5V_1kOhm_Resistor-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Gate series resistor: 1 kOhm<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n<p>The 100 \u03a9 resistor increases the charging time of the gate from 40 to approx. 440 nanoseconds. The current to be supplied is correspondingly lower and the signals are cleaner. With the 1 k\u03a9 resistor, the charging time is already approx. 3.6 microseconds.   <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"z_dioden\">Why Z-diodes?<\/h3>\n\n<p>In many MOSFET circuits you can see Z-diodes between gate and source and\/or between drain and source. What is the benefit? <\/p>\n<p>A Z-diode acts like a normal diode in the forward direction. In the reverse direction, it blocks up to its breakdown voltage and then becomes a good conductor. A Z-diode is therefore a kind of pressure relief valve, but for voltages. They are available with a wide range of different breakdown voltages. Incidentally, \u201cZ-diode\u201d is the generic term for Zener and avalanche diodes. The terms are often confused. Details can be found <a href=\"https:\/\/www.tutorialspoint.com\/difference-between-avalanche-breakdown-and-zener-breakdown\" target=\"_blank\" rel=\"noopener\">here<\/a>, for example.      <\/p>\n<p>MOSFETs react allergically to overvoltages at the gate. They can be destroyed relatively easily as a result. Z-diodes are therefore well suited to protect the MOSFET or to avoid voltage peaks at the drain. The breakdown voltages must, of course, be adapted to the requirements of the MOSFET (e.g. maximum gate-source voltage) and the circuit (e.g. maximum expected drain-source voltage).   <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1411\" height=\"821\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener.png\" alt=\"\" class=\"wp-image-25049\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener.png 1411w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener-300x175.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener-1024x596.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener-768x447.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_zener-1320x768.png 1320w\" sizes=\"auto, (max-width: 1411px) 100vw, 1411px\" \/><\/a><figcaption class=\"wp-element-caption\">MOSFET overvoltage protection through Z-diodes<\/figcaption><\/figure>\n<\/div>\n<p>Here, for example, I have used a 5.1 volt Z diode for switching a 5 volt voltage in order to reduce the voltage peak between drain and source when the MOSFET opens:<\/p>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_wo_zener.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_wo_zener.png\" alt=\"\" class=\"wp-image-14264\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_wo_zener.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_wo_zener-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_wo_zener-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Voltage peak without Z-diode<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_with_zener.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_with_zener.png\" alt=\"\" class=\"wp-image-14266\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_with_zener.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_with_zener-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_switch_with_zener-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Voltage peak with Z-diode<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n<p>So do you need Z diodes? Frankly, I don&#8217;t know how often MOSFETs actually die of overvoltage. But especially for complex projects with inaccessible circuits, you might want to think about it.  <\/p>\n\n<h2 class=\"wp-block-heading\" id=\"gate_treiber\">Gate driver<\/h2>\n\n<p>As you have seen, there can be problems with high PWM frequencies if the gate of the MOSFET is controlled via the I\/O pin of a microcontroller. In addition, many MOSFETs still have a high R<sub>DS(On)<\/sub> value at gate-source voltages of 5 or even 3.3 volts and therefore a correspondingly high power loss. <\/p>\n<p>Gate drivers (MOSFET drivers) are used to eliminate these problems. You can create these yourself with just a few components, or you can use gate driver ICs. <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"gate_treiber_schaltungen\">Gate driver circuits<\/h3>\n\n<p>In the simplest case, you build a gate driver from a bipolar NPN transistor and two resistors. I used the following circuit to control a 12 V \/ 0.3 A electromagnet. The IRL520 was again used as the MOSFET and a BC547B as the transistor.  <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1561\" height=\"801\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2.png\" alt=\"\" class=\"wp-image-24409\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2.png 1561w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2-300x154.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2-1024x525.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2-768x394.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2-1536x788.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit-2-1320x677.png 1320w\" sizes=\"auto, (max-width: 1561px) 100vw, 1561px\" \/><\/a><figcaption class=\"wp-element-caption\">MOSFET control with simple gate driver<\/figcaption><\/figure>\n<\/div>\n<p>The MOSFET is open as the transistor is closed. This means that the magnet is active as long as pin 9 is LOW. If the magnet is to be switched off, pin 9 must be switched to HIGH. In the open state, a base-emitter and a collector-emitter current flow through the transistor. Base and collector resistance should not be selected too low from this point of view.    <\/p>\n<p>In this circuit, the MOSFET gate is controlled with the 5 volts of the Arduino. I could also have used the 12-volt power supply of my load. But then the IRL520 would no longer have been suitable, as its maximum gate-source voltage is 10 volts according to the data sheet.  <\/p>\n<p>However, the gate&#8217;s loading time of 36.6 microseconds proves to be surprisingly slow, at least at first glance:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_12v_magnet_with-driver.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_12v_magnet_with-driver.png\" alt=\"\" class=\"wp-image-14222\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_12v_magnet_with-driver.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_12v_magnet_with-driver-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/IRL520_12v_magnet_with-driver-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">Gate-source (yellow) voltage vs. drain-source voltage (blue), MOSFET circuit with gate driver<\/figcaption><\/figure>\n<\/div>\n<p>The explanation is that the gate is now charged via the 10 k\u03a9 collector resistor. With a smaller resistor, it is proportionally faster, but at the price of a higher current flow. In addition to a smaller collector resistor, you can also choose a MOSFET with a lower capacitance. In the data sheet you will find the value &#8220;Input Capacitance&#8221;, i.e. the input capacitance.   <\/p>\n\n<p>Discharging the gate, on the other hand, is a very fast process (approx. 160 ns), provided you do not use a gate resistor. The speed-determining step is the switching of the transistor. Here too, the series resistor and the capacitance of the base form an RC element. It is faster with a smaller series resistor (84 ns at 1 k\u03a9).   <\/p>\n<p>With a PNP transistor as a gate driver, the reverse is true. Charging the gate is fast, discharging is slow. &nbsp;<\/p>\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit_pnp.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"602\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit_pnp.png\" alt=\"\" class=\"wp-image-24096\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit_pnp.png 1000w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit_pnp-300x181.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_circuit_pnp-768x462.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption class=\"wp-element-caption\">MOSFET control with single gate driver, PNP version<\/figcaption><\/figure>\n\n<h4 class=\"wp-block-heading\">Push-pull driver<\/h4>\n\n<p>With a push-pull driver circuit, you can both charge and discharge the gate quickly. It is a combination of an NPN and a PNP transistor. As one of the transistors is always closed, you do not need any resistors to limit the current on the driver side. Here is the simplest version:   <\/p>\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"760\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2.png\" alt=\"Push-pull driver circuit\" class=\"wp-image-24474\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2.png 1440w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2-300x158.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2-1024x540.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2-768x405.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/05\/mosfet_driver_push_pull-2-1320x697.png 1320w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/a><figcaption class=\"wp-element-caption\">Push-pull driver circuit<\/figcaption><\/figure>\n\n<p>If D9 is HIGH, the PNP transistor is closed, NPN is open, the MOSFET gate is positive; hence, the magnet is active. You can also swap the NPN and PNP transistors to reverse the logic. However, you will then need two separate base resistors on the transistors. You can find out how to further adapt the circuit and other gate driver circuits <a href=\"https:\/\/de.wikipedia.org\/wiki\/Gate-Treiber\" target=\"_blank\" rel=\"noopener\">here<\/a>.  <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"gate_treiber_ics\">Gate driver ICs<\/h3>\n\n<p>Alternatively, you can buy gate driver ICs as ready-made solutions, such as the <a href=\"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/20001423J.pdf\" target=\"_blank\" rel=\"noopener\">TC4426A<\/a> or the <a href=\"https:\/\/www.infineon.com\/dgdl\/Infineon-ir2117-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c84331168d\" target=\"_blank\" rel=\"noopener\">IR2117<\/a>. Using the TC4426A as an example, I will show you how to use such ICs.<\/p>\n\n<h4 class=\"wp-block-heading\">Pinout TC4426A<\/h4>\n\n<p>You can control two MOSFETs with the TC4426A. It has the following inputs\/outputs: <\/p>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A.png\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"589\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A.png\" alt=\"\" class=\"wp-image-14236\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A.png 865w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A-300x204.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A-768x523.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/a><figcaption class=\"wp-element-caption\">Gate driver TC4426A<\/figcaption><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n<\/div>\n\n<ul>\n<li>NC: Not Connected<\/li>\n<li>IN A \/ IN B: Logic level input, HIGH signal: &gt; 2.4 Volt<\/li>\n<li>GND \/ VDD: Power supply 4.5 &#8211; 18 volts<\/li>\n<li>OUT A \/ OUT B: Inverted output with voltage 0 V \/ VDD<\/li>\n<\/ul>\n\n<h4 class=\"wp-block-heading\">Example circuit TC4426A<\/h4>\n\n<p>The wiring is very simple:<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit-1024x522.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit-1024x522.png\" alt=\"Example circuit TC4426A\" class=\"wp-image-14240\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit-1024x522.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit-300x153.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit-768x392.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/TC4426A_example_circuit.png 1047w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Example circuit TC4426A<\/figcaption><\/figure>\n<\/div>\n<h3 class=\"wp-block-heading\" id=\"treibermodule\">Limited suitability: MOSFET \u201cdriver modules\u201d<\/h3>\n\n<p>If you search for MOSFET drivers on Amazon and similar online stores, you will come across a so-called MOSFET driver module (see below). This name is misleading because this module does not drive anything! The signal input is connected directly to the gate of the MOSFET. The pull-down resistor is quite small at 1 k\u03a9. The MOSFET is an IR<strong>F<\/strong>520, i.e. not a true logic-level MOSFET. In addition, the connection designations are somewhat confusing, as three connections are not used at all. To the modules&#8217; credit, I have to say that they work reliably with a signal voltage of 5 volts and that they indicate with the LED when a signal is present. The screw terminal connections can also be quite practical.       <\/p>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-1024x898.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"898\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-1024x898.png\" alt=\"\" class=\"wp-image-14244\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-1024x898.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-300x263.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-768x674.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul-1320x1158.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_treiber_modul.png 1448w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">MOSFET module<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_driver_scheme.png\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"648\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_driver_scheme.png\" alt=\"\" class=\"wp-image-14246\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_driver_scheme.png 706w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/mosfet_driver_scheme-300x275.png 300w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/a><figcaption class=\"wp-element-caption\">Circuit diagram of the MOSFET module<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n<h2 class=\"wp-block-heading\" id=\"welcher_mosfet\">Which MOSFET should I use?<\/h2>\n\n<p>I hope this article will make you agree that the answer is: <em>it depends!<\/em> If you want to avoid the use of gate drivers, then go for a logic-level MOSFET first and foremost. For smaller currents, I would go for the smaller MOSFETs in TO-92 design such as the BS170 or the 2N7000. If large currents are to be controlled, the R<sub>DS(ON)<\/sub> should be small. The IRL3803, for example, is quite good in this respect. But these are just a few examples. You can find a very good overview of MOSFETs <a href=\"https:\/\/www.mikrocontroller.net\/articles\/MOSFET-%C3%9Cbersicht\" target=\"_blank\" rel=\"noopener\">here<\/a> at Mikrocontroller.net.     <\/p>\n\n<h2 class=\"wp-block-heading\">Acknowledgement<\/h2>\n\n<p>I have <a href=\"https:\/\/pixabay.com\/de\/users\/josephvm-289221\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5116794\" target=\"_blank\" rel=\"noopener\">Joseph V M<\/a> on <a href=\"https:\/\/pixabay.com\/de\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=5116794\" target=\"_blank\" rel=\"noopener\">Pixabay<\/a> to thank for the switches in the picture.<\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.<\/p>\n","protected":false},"author":1,"featured_media":14253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[565,567],"tags":[1790,1788,1796,1794,1791,1437,1798,1787,1785,1786,983,1792,1793,1789,1797,1799,1795],"class_list":["post-14849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other-parts","category-other-stuff","tag-drain-en","tag-gate-en","tag-gate-driver","tag-gate-resistor","tag-logic-level-en","tag-mosfet-en","tag-mosfet-driver-module","tag-mosfets-vs-bipolar-transistor","tag-n-channel","tag-p-channel","tag-pwm-en","tag-rdson-en","tag-series-resistor","tag-source-en","tag-tc4426a-en","tag-total-gate-charge-en","tag-z-diode-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The MOSFET as Switch &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The MOSFET as Switch &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-25T19:42:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-01T17:04:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1832\" \/>\n\t<meta property=\"og:image:height\" content=\"1720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"The MOSFET as Switch\",\"datePublished\":\"2022-05-25T19:42:08+00:00\",\"dateModified\":\"2025-12-01T17:04:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch\"},\"wordCount\":3544,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Beitragsbild_mosfets.png\",\"keywords\":[\"drain\",\"gate\",\"gate driver\",\"gate resistor\",\"logic level\",\"MOSFET\",\"MOSFET driver module\",\"mosfets vs bipolar transistor\",\"n-channel\",\"p-channel\",\"PWM\",\"rdson\",\"series resistor\",\"source\",\"TC4426A\",\"total gate charge\",\"Z-diode\"],\"articleSection\":[\"Other parts\",\"Other stuff\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch\",\"name\":\"The MOSFET as Switch &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Beitragsbild_mosfets.png\",\"datePublished\":\"2022-05-25T19:42:08+00:00\",\"dateModified\":\"2025-12-01T17:04:29+00:00\",\"description\":\"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Beitragsbild_mosfets.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Beitragsbild_mosfets.png\",\"width\":1832,\"height\":1720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/the-mosfet-as-switch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The MOSFET as Switch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The MOSFET as Switch &#8226; Wolles Elektronikkiste","description":"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch","og_locale":"en_US","og_type":"article","og_title":"The MOSFET as Switch &#8226; Wolles Elektronikkiste","og_description":"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch","og_site_name":"Wolles Elektronikkiste","article_published_time":"2022-05-25T19:42:08+00:00","article_modified_time":"2025-12-01T17:04:29+00:00","og_image":[{"width":1832,"height":1720,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png","type":"image\/png"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"The MOSFET as Switch","datePublished":"2022-05-25T19:42:08+00:00","dateModified":"2025-12-01T17:04:29+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch"},"wordCount":3544,"commentCount":4,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png","keywords":["drain","gate","gate driver","gate resistor","logic level","MOSFET","MOSFET driver module","mosfets vs bipolar transistor","n-channel","p-channel","PWM","rdson","series resistor","source","TC4426A","total gate charge","Z-diode"],"articleSection":["Other parts","Other stuff"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch","url":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch","name":"The MOSFET as Switch &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png","datePublished":"2022-05-25T19:42:08+00:00","dateModified":"2025-12-01T17:04:29+00:00","description":"I will show you how to use a MOSFET as a switch and which parameters are relevant for selecting the right MOSFET.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/04\/Beitragsbild_mosfets.png","width":1832,"height":1720},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"The MOSFET as Switch"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/14849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=14849"}],"version-history":[{"count":26,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/14849\/revisions"}],"predecessor-version":[{"id":25126,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/14849\/revisions\/25126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/14253"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=14849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=14849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=14849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}