avatarDavid Such

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

6417

Abstract

ljs-keyword">the</span> gate is <span class="hljs-keyword">not</span> <span class="hljs-keyword">a</span> linear slope; <span class="hljs-keyword">it</span> reaches <span class="hljs-keyword">a</span> plateau during <span class="hljs-keyword">the</span> <span class="hljs-built_in">time</span> that <span class="hljs-keyword">the</span> MOSFET is switching. This is called <span class="hljs-keyword">the</span> Miller Plateau.</pre></div><figure id="abc8"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*f8IJ-eyixF0dlGt_CUXdpA.png"><figcaption>Figure 4. STP60NF06 MOSFET Internal Schematic <a href="#_ftn1">[1]</a></figcaption></figure><p id="726a">As shown in Figure 4, there is a body diode between the MOSFET source and drain. These diodes protect the MOSFET from the high voltage spikes that can occur when switching highly inductive loads like a motor. When the MOSFET switches OFF, the time it takes for the body diode to reverse direction is called the reverse recovery time (trr = 70 ns — see Figure 5).</p><figure id="e72a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Rrzksm_rpr_1CGWgWUPwBA.png"><figcaption>Figure 5. STP60 MOSFET Body Diode Characteristics <a href="#_ftn1">[1]</a></figcaption></figure><div id="5d81"><pre>Diode <span class="hljs-keyword">Reverse</span> Recovery <span class="hljs-type">Time</span>

A diode which <span class="hljs-keyword">is</span> forward biased will allow <span class="hljs-keyword">current</span> <span class="hljs-keyword">to</span> flow. Ideally, <span class="hljs-keyword">when</span> you switch voltage polarity across the diode <span class="hljs-keyword">and</span> <span class="hljs-keyword">reverse</span> bias it, the diode will stop conducting immediately. <span class="hljs-keyword">In</span> practise, there <span class="hljs-keyword">is</span> a finite amount <span class="hljs-keyword">of</span> <span class="hljs-type">time</span> <span class="hljs-keyword">before</span> this happens which <span class="hljs-keyword">is</span> <span class="hljs-keyword">called</span> the <span class="hljs-keyword">reverse</span> recovery <span class="hljs-type">time</span> (trr).

<span class="hljs-keyword">In</span> other words, <span class="hljs-keyword">reverse</span> recovery <span class="hljs-type">time</span> <span class="hljs-keyword">is</span> the amount <span class="hljs-keyword">of</span> <span class="hljs-type">time</span> <span class="hljs-keyword">current</span> flows <span class="hljs-keyword">in</span> the <span class="hljs-keyword">reverse</span> direction <span class="hljs-keyword">when</span> the forward <span class="hljs-keyword">current</span> switches directions. This happens due <span class="hljs-keyword">to</span> the residual stored charge <span class="hljs-keyword">in</span> the diode.</pre></div><h2 id="a3b5">6.0 MOSFET Drivers</h2><p id="19a0">Logic level MOSFET’s can be driven directly from an MCU pin. For larger power MOSFET circuits, there are four issues that make a direct connection problematic. They are:</p><ol><li><b>High gate capacitance</b> — MCU output pins are designed to work with small capacitive loads (e.g., 10–100 pF). The STP60 has a gate input capacitance (CISS) = 1660 pF. This creates the current surge issue below.</li><li><b>High Gate Voltage</b> — often 3.3V or 5V is not enough to turn a power MOSFET hard ON, particularly for the high-side transistor. A MOSFET that is just ON will have a higher drain-source resistance and will dissipate more power as heat.</li><li><b>Back Current </b>— a switching MOSFET can cause current to flow from the gate to the MCU digital output pin. MCU IO current sink capability is less than they can source.</li><li><b>Fast gate charge/discharge</b> — We explained in the previous section that fast MOSFET switching is dependent on being able to deliver sufficient current to charge and discharge the gate.</li></ol><p id="0ed5">MOSFET current is determined by the gate charge (QG) and how quickly you will be turning it ON and OFF. There is a design trade-off between low switching losses (which require fast rise and fall times) and low EMI (which requires slow rise and fall times). In addition, the pulse-width modulation (PWM) frequency and required duty cycle puts a time restriction on switching speed (e.g., a 20 kHz PWM frequency, with a 1% duty cycle requires a 500 ns pulse).</p><p id="d1cd">The current required may be calculated using:</p><figure id="72cb"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ker_h-iOYHDdcdKW0nvTQA.png"><figcaption></figcaption></figure><p id="eab5">For the STP60 MOSFET:</p><ul><li>Gate Charge (QG) = 54 nC (at VGS = 10V)</li><li>Time to switch on/off (tswitch) = 500 ns (using above example)</li><li>I = 54 nC / 500 ns = 108 mA</li></ul><p id="bbde">Ultimately, the switching performance of a MOSFET transistor is determined by how quickly the voltages can be changed across its effective terminal capacitance.</p><p id="6ccc">We can overcome the four issues listed above by using a MOSFET driver. These are designed to convert TTL level signals into high current outputs. Their high speed and current output enable them to drive large capacitive loads with high slew rates and low propagation delays. The high output current minimizes power losses in the power MOSFET by rapidly charging and discharging the gate capacitance.</p><p id="d424">The gate driver must be able to provide at least the amount of current needed to achieve the switching times described above, but a driver with more current capability can also be used.</p><figure id="cae9"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*qDR-DXzd4rGgAazxIe3E7g.png"><figcaption>Figure 6. MOSFET Driver Half-Bridge Block Diagram</figcaption></figure><p id="c8b9">You can design the power stage with one driver per FET, but we will use an IC capable of driving two MOSFET’s in a half-bridge (Figure 6). We have a half-bridge driving each phase of the BLDC motor so we will need three of these IC’s and six MOSFET’s in total. We refer to the transistor connected to the positive motor supply as the high-side, and the one connected to GND (or negative power) as the low-side. A MOSFET driver that can provide switching current to a half-bridge is called a high-side/low-side driver.</p><figure id="c5e0"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*OFpOIJ0k5

Options

pK40OJkRuWeJg.png"><figcaption>Figure 7. IRS2110 MOSFET Driver Block Diagram<a href="#_ftn1">[3]</a></figcaption></figure><p id="0838">Based on our modest gate current requirements of around 100 mA, we have selected the IR2110PBF half-bridge gate driver (Figure 7). This model number is for the through-hole version, there is also a SMT version (IR2110S). The IR2110 is a high voltage, high speed power MOSFET driver with independent high-side and low-side referenced output channels. The IR2110 can handle gate currents up to 2A and is 3.3v — 5V logic compatible. The IRS2110 is the pin compatible replacement for the IR2110. Their block diagrams are identical.</p><figure id="9188"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*nrBw7iDZrtnXV583NnYgIQ.png"><figcaption>Figure 8. IRS2110PBF PDIP Pin Connections <a href="#_ftn1">[3]</a></figcaption></figure><p id="250e">The IR2110 we are using has 14 pins but only 11 of them are used (Figure 8). The pin descriptions and purpose are as follows:</p><p id="45df"><b>VDD</b> — Logic Supply for the MCU controlling the IR2110. For the Arduino Nano this will be +5 VDC. When VDD = +5 V, the logic 1 input threshold of the IR2110 is slightly higher than 3V.</p><p id="ab59"><b>HIN & LIN</b> — Logic inputs for high-side and low-side gate driver outputs (<b>HO</b> and <b>LO</b>), which are in phase. In other words, we connect the PWM signals from the MCU to <b>HIN</b> and <b>LIN</b>, while <b>HO</b> and <b>LO</b> are connected to the gates of the high-side and low-side MOSFET’s.</p><p id="505b"><b>SD</b> — Logic input for shutdown. If the SD pin is grounded, the driver is enabled. You can use this pin (ACTIVE HIGH) to disable the driver if required.</p><p id="2074"><b>VSS </b>— Logic ground for the MCU.</p><p id="0e9a"><b>VCC </b>— Low-side fixed supply voltage. This voltage is connected to the drain of the internal low-side MOSFET (Figure 7) and is recommended to be between 10 and 20 V <a href="#_ftn1">[3]</a>.</p><p id="9e60"><b>VB & VS </b>— High-side and low-side floating supplies.</p><p id="cade"><b>COM </b>— Low-side return for the gate driver (i.e., ground). While <b>VSS</b> and <b>COM</b> are not internally connected, the IR2110 is a non-isolated driver, meaning that <b>VSS</b> and <b>COM</b> should both be connected to ground.</p><p id="4805">When <b>HIN</b> is HIGH, <b>HO</b> turns the high-side MOSFET ON and when <b>LIN</b> is HIGH, <b>LO</b> turns the low-side MOSFET ON. The <b>HO</b> output is not with respect to ground, but with respect to <b>VS</b>. When HIGH, the voltage at <b>HO</b> is equal to <b>VB</b>, relative to <b>VS</b>. When LOW, the voltage at <b>HO</b> is equal to <b>VS</b>, relative to <b>VS</b> (i.e., zero).</p><p id="718e">The output on <b>LO</b> is with respect to ground. When <b>LIN</b> = HIGH, <b>LO</b> = <b>VCC</b>. When <b>LIN</b> = LOW, LO = <b>VSS</b> (GND).</p><p id="1891"><b>HIN</b> and <b>LIN</b> should never be HIGH at the same time or shoot through will occur, effectively shorting the motor supply voltage to GND.</p><p id="4693">The IR2110 includes undervoltage (UV) lockout on both channels (UV DETECT in Figure 7), which will turn OFF <b>HO</b> or <b>LO</b> if detected. This will trigger if <b>VCC</b> or <b>VB</b> gets below around 8.5V (somewhere between 7.0 and 9.7V, but typically 8.5V).</p><h2 id="592a">Coming Soon — Part 3 (The Bootstrap Capacitor)</h2><p id="6910">The bootstrap capacitor is placed between the VB and VS terminals on the IR2110 (Figure 7). It is there to satisfy the requirements of driving the gate of the high-side MOSFET hard ON. Calculating the correct value for the MOSFET driver bootstrap capacitor is quite a mission!</p><div id="6455" class="link-block"> <a href="https://reefwing.medium.com/an-arduino-nano-electronic-speed-controller-esc-part-3-e17392bd2887"> <div> <div> <h2>An Arduino Nano Electronic Speed Controller (ESC) — Part 3</h2> <div><h3>In Part 1 we introduced our Arduino based ESC and followed this in Part 2 with an explanation of the power stage and…</h3></div> <div><p>reefwing.medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*vjhTRBZ1DYTaM_Mau0jr0w.png)"></div> </div> </div> </a> </div><p id="5997"><i>If you enjoyed this article and would like to help support my writing, then please <a href="https://reefwing.medium.com/membership">subscribe to become a Medium Member</a>. I will get a portion of your subscription fee and you get full access to every story on Medium. Alternatively, you can <a href="https://ko-fi.com/davidsuch">buy me a coffee</a>!</i></p><div id="b5df" class="link-block"> <a href="https://reefwing.medium.com/membership"> <div> <div> <h2>Join Medium with my referral link - David Such</h2> <div><h3>Read every story from David Such (and thousands of other writers on Medium). Your membership fee directly supports…</h3></div> <div><p>reefwing.medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*OxpT8RWb1cNIatqq)"></div> </div> </div> </a> </div><p id="540e"><a href="#_ftnref1">[1]</a> Ref: <a href="https://www.jaycar.com.au/medias/sys_master/images/images/9729173127198/ZT2450-dataSheetMain.pdf">https://www.jaycar.com.au/medias/sys_master/images/images/9729173127198/ZT2450-dataSheetMain.pdf</a></p><p id="0896"><a href="#_ftnref1">[2]</a> Ref: <a href="https://www.infineon.com/dgdl/Infineon-Use_Gate_Charge_to_Design_the_Gate_Drive_Circuit_for_Power_MOSFETs_and_IGBTs-AN-v01_00-EN.pdf?fileId=5546d46267354aa001673ba630970081">https://www.infineon.com/dgdl/Infineon-Use_Gate_Charge_to_Design_the_Gate_Drive_Circuit_for_Power_MOSFETs_and_IGBTs-AN-v01_00-EN.pdf?fileId=5546d46267354aa001673ba630970081</a></p><p id="1f5b"><a href="#_ftnref1">[3]</a> Ref: <a href="https://www.infineon.com/dgdl/Infineon-IRS2110-DataSheet-v01_00-EN.pdf?fileId=5546d462533600a40153567660ff27b0">https://www.infineon.com/dgdl/Infineon-IRS2110-DataSheet-v01_00-EN.pdf?fileId=5546d462533600a40153567660ff27b0</a></p></article></body>

An Arduino Nano Electronic Speed Controller (ESC) — Part 2

In Part 1 we explained the design of our Arduino based ESC. Part 2 will focus on the power stage and why MOSFET drivers are needed. The most current that a digital pin from one of the Nano family can provide is 40mA and most of the boards have a capacity much less than this.

The BR2205 2300KV BLDC motors that we will be testing our ESC on have a maximum current draw of almost 30A. Hence the need for a power stage.

This series of articles was sponsered by PCBWay — PCB Prototype the Easy 
Way! Thank you for providing all the prototype printed circuit boards used 
in designing our Nano ESC carrier board.

5.0 The Power Stage (3-Phase Bridge)

The motor power stage is a standard triple half-bridge setup, often used for 3-phase BLDC motors (Figure 1).

Figure 1. Three Phase Bridge Circuit

We will use MOSFET’s for the switches in our 3-phase bridge. The three main factors which drive MOSFET selection are:

1. Operating Voltage (motor supply is a 3S LiPo or up to 12.6 V) — choose a MOSFET whose drain-source voltage (VDS) is at least 20–50% higher than the motor supply voltage.

2. Maximum Current Draw (ID) — this will be determined by either the torque needed to start up the motor with a propeller fitted or the stall current. If you don’t want to use components that are rated to the stall torque, then you will have to monitor the current in each phase and shutdown the power stage if your limit is reached.

3. Power Dissipation (PTOT) — MOSFETs dissipate power and generate heat due to the drain-source resistance (RDS(ON)). Thermal constraints, including the ambient temperature and any heatsinking available for the MOSFETs, limits how much power can be dissipated. The maximum allowable power dissipation drives MOSFET selection based on the RDS(ON) value.

The MOSFET’s that we have selected as switches in the bridge are the STP60NF06, 60V N-channel Power MOSFET[1]. These FET’s have been designed for fast switching, and to minimize input capacitance and gate charge. The maximum ratings for this FET are shown in Figure 2.

Figure 2. STP60NF06 Power MOSFET Maximum Ratings [1]

Our FET can block up to 60V and handle up to 60A of current which is more than we need. The resistance when ON (RDS) is less than 0.016 Ω, so even at 30A the MOSFET will drop less than 0.5V across the drain and source. The typical gate charge (QG) is 54 nC at VGS = 10V, which is low compared to most power MOSFET’s (i.e., the STP60NF06 switches quickly). However, it will only switch fast if it can get enough current, which is why we normally use MOSFET drivers.

The threshold voltage (VTH) or gate-source voltage required to turn the MOSFET ON is 2–4V.

Figure 3. Miller Plateau and Gate Voltage
Miller Plateau

The Miller Plateau (Figure 3) in a FET is caused by the gate-drain 
capacitance. Though smaller than gate-to-source capacitance, the 
gate-to-drain capacitance goes through a voltage excursion that is 
often more than 20 times that of the gate-to-source capacity[2]. 
Therefore, the gate-to-drain or Miller capacitance typically requires 
more actual charge than the input capacitance.

If delivering a constant current into the gate, the voltage at the 
gate is not a linear slope; it reaches a plateau during the time 
that the MOSFET is switching. This is called the Miller Plateau.
Figure 4. STP60NF06 MOSFET Internal Schematic [1]

As shown in Figure 4, there is a body diode between the MOSFET source and drain. These diodes protect the MOSFET from the high voltage spikes that can occur when switching highly inductive loads like a motor. When the MOSFET switches OFF, the time it takes for the body diode to reverse direction is called the reverse recovery time (trr = 70 ns — see Figure 5).

Figure 5. STP60 MOSFET Body Diode Characteristics [1]
Diode Reverse Recovery Time

A diode which is forward biased will allow current to flow. Ideally, 
when you switch voltage polarity across the diode and reverse bias it, 
the diode will stop conducting immediately. In practise, there is a 
finite amount of time before this happens which is called the reverse 
recovery time (trr).

In other words, reverse recovery time is the amount of time current 
flows in the reverse direction when the forward current switches 
directions. This happens due to the residual stored charge in the diode.

6.0 MOSFET Drivers

Logic level MOSFET’s can be driven directly from an MCU pin. For larger power MOSFET circuits, there are four issues that make a direct connection problematic. They are:

  1. High gate capacitance — MCU output pins are designed to work with small capacitive loads (e.g., 10–100 pF). The STP60 has a gate input capacitance (CISS) = 1660 pF. This creates the current surge issue below.
  2. High Gate Voltage — often 3.3V or 5V is not enough to turn a power MOSFET hard ON, particularly for the high-side transistor. A MOSFET that is just ON will have a higher drain-source resistance and will dissipate more power as heat.
  3. Back Current — a switching MOSFET can cause current to flow from the gate to the MCU digital output pin. MCU IO current sink capability is less than they can source.
  4. Fast gate charge/discharge — We explained in the previous section that fast MOSFET switching is dependent on being able to deliver sufficient current to charge and discharge the gate.

MOSFET current is determined by the gate charge (QG) and how quickly you will be turning it ON and OFF. There is a design trade-off between low switching losses (which require fast rise and fall times) and low EMI (which requires slow rise and fall times). In addition, the pulse-width modulation (PWM) frequency and required duty cycle puts a time restriction on switching speed (e.g., a 20 kHz PWM frequency, with a 1% duty cycle requires a 500 ns pulse).

The current required may be calculated using:

For the STP60 MOSFET:

  • Gate Charge (QG) = 54 nC (at VGS = 10V)
  • Time to switch on/off (tswitch) = 500 ns (using above example)
  • I = 54 nC / 500 ns = 108 mA

Ultimately, the switching performance of a MOSFET transistor is determined by how quickly the voltages can be changed across its effective terminal capacitance.

We can overcome the four issues listed above by using a MOSFET driver. These are designed to convert TTL level signals into high current outputs. Their high speed and current output enable them to drive large capacitive loads with high slew rates and low propagation delays. The high output current minimizes power losses in the power MOSFET by rapidly charging and discharging the gate capacitance.

The gate driver must be able to provide at least the amount of current needed to achieve the switching times described above, but a driver with more current capability can also be used.

Figure 6. MOSFET Driver Half-Bridge Block Diagram

You can design the power stage with one driver per FET, but we will use an IC capable of driving two MOSFET’s in a half-bridge (Figure 6). We have a half-bridge driving each phase of the BLDC motor so we will need three of these IC’s and six MOSFET’s in total. We refer to the transistor connected to the positive motor supply as the high-side, and the one connected to GND (or negative power) as the low-side. A MOSFET driver that can provide switching current to a half-bridge is called a high-side/low-side driver.

Figure 7. IRS2110 MOSFET Driver Block Diagram[3]

Based on our modest gate current requirements of around 100 mA, we have selected the IR2110PBF half-bridge gate driver (Figure 7). This model number is for the through-hole version, there is also a SMT version (IR2110S). The IR2110 is a high voltage, high speed power MOSFET driver with independent high-side and low-side referenced output channels. The IR2110 can handle gate currents up to 2A and is 3.3v — 5V logic compatible. The IRS2110 is the pin compatible replacement for the IR2110. Their block diagrams are identical.

Figure 8. IRS2110PBF PDIP Pin Connections [3]

The IR2110 we are using has 14 pins but only 11 of them are used (Figure 8). The pin descriptions and purpose are as follows:

VDD — Logic Supply for the MCU controlling the IR2110. For the Arduino Nano this will be +5 VDC. When VDD = +5 V, the logic 1 input threshold of the IR2110 is slightly higher than 3V.

HIN & LIN — Logic inputs for high-side and low-side gate driver outputs (HO and LO), which are in phase. In other words, we connect the PWM signals from the MCU to HIN and LIN, while HO and LO are connected to the gates of the high-side and low-side MOSFET’s.

SD — Logic input for shutdown. If the SD pin is grounded, the driver is enabled. You can use this pin (ACTIVE HIGH) to disable the driver if required.

VSS — Logic ground for the MCU.

VCC — Low-side fixed supply voltage. This voltage is connected to the drain of the internal low-side MOSFET (Figure 7) and is recommended to be between 10 and 20 V [3].

VB & VS — High-side and low-side floating supplies.

COM — Low-side return for the gate driver (i.e., ground). While VSS and COM are not internally connected, the IR2110 is a non-isolated driver, meaning that VSS and COM should both be connected to ground.

When HIN is HIGH, HO turns the high-side MOSFET ON and when LIN is HIGH, LO turns the low-side MOSFET ON. The HO output is not with respect to ground, but with respect to VS. When HIGH, the voltage at HO is equal to VB, relative to VS. When LOW, the voltage at HO is equal to VS, relative to VS (i.e., zero).

The output on LO is with respect to ground. When LIN = HIGH, LO = VCC. When LIN = LOW, LO = VSS (GND).

HIN and LIN should never be HIGH at the same time or shoot through will occur, effectively shorting the motor supply voltage to GND.

The IR2110 includes undervoltage (UV) lockout on both channels (UV DETECT in Figure 7), which will turn OFF HO or LO if detected. This will trigger if VCC or VB gets below around 8.5V (somewhere between 7.0 and 9.7V, but typically 8.5V).

Coming Soon — Part 3 (The Bootstrap Capacitor)

The bootstrap capacitor is placed between the VB and VS terminals on the IR2110 (Figure 7). It is there to satisfy the requirements of driving the gate of the high-side MOSFET hard ON. Calculating the correct value for the MOSFET driver bootstrap capacitor is quite a mission!

If you enjoyed this article and would like to help support my writing, then please subscribe to become a Medium Member. I will get a portion of your subscription fee and you get full access to every story on Medium. Alternatively, you can buy me a coffee!

[1] Ref: https://www.jaycar.com.au/medias/sys_master/images/images/9729173127198/ZT2450-dataSheetMain.pdf

[2] Ref: https://www.infineon.com/dgdl/Infineon-Use_Gate_Charge_to_Design_the_Gate_Drive_Circuit_for_Power_MOSFETs_and_IGBTs-AN-v01_00-EN.pdf?fileId=5546d46267354aa001673ba630970081

[3] Ref: https://www.infineon.com/dgdl/Infineon-IRS2110-DataSheet-v01_00-EN.pdf?fileId=5546d462533600a40153567660ff27b0

Arduino
Bldc Motor
3 Phase Bridge
Mosfet Driver
Esc
Recommended from ReadMedium