2
\$\begingroup\$

I have problem driving a high current DC motor (RS-775 24V-12V 80W), the MOSFET getting very hot when I use PWM signal.

I'm using Raspberry Pi 3 b+ to generate PWM signal at (pin 8) which connected to MOSFET gate through 1 kΩ resistor as the schematic shows:

schematic

simulate this circuit – Schematic created using CircuitLab

Notes:

  • The threshold voltage of IRF3205 is between 2-4 V and the Raspberry Pi gives signal of 3.3 V that will be fine
  • The datasheet shows that the MOSFET can handle Id = 110 A
  • Rds =8 mΩ

Tests :

  • Without load every thing works good, motor spin very fast with current < 2A, no heat at MOSFET.

  • When I tried to run the motor with load at 6 V it consumes about 8.6 A and there was the problem MOSFET and Flyback diode go very hot!!
    First I tried to use 3.3 to 5 V converter to amplify the PWM signal to 5 V but this made things worst the MOSFET getting hot faster than before.

3.3 V to 5V logic level converter photo:

enter image description here

As a test I removed the PWM signal wire from gate and use the V+ instead , the motor spins and the MOSFET has a reasonable amount of heat.

Here is the schematic:

schematic

simulate this circuit

Conclusion : The reason of the heat is the PWM itself, the ON/OFF effect is the reason of the heat.

This is my opinion, and any one have other explanation or solution to the heat I hope he answers.

Thanks.

\$\endgroup\$
12
  • 1
    \$\begingroup\$ What is the PWM frequency? \$\endgroup\$ Jun 16 at 0:50
  • \$\begingroup\$ Why are you using a 24 volt motor with a 6 volt power supply? \$\endgroup\$
    – Hearth
    Jun 16 at 1:34
  • \$\begingroup\$ @Hearth this an application for Pov display , with 6V voltage i get about 1782 RPM it is enough for my project which needs only 1500 RPM \$\endgroup\$
    – 0ussama
    Jun 16 at 2:35
  • \$\begingroup\$ Your gate drive is not enough, the data sheet for the MOSFET will let you know how much gate voltage you need. It is normally in graph form. Also move your 20K resistor to the other side of the 1K resistor which you will replace with something in the 100 ohm range. That may cool it down a bit. \$\endgroup\$
    – Gil
    Jun 16 at 2:38
  • 1
    \$\begingroup\$ "The threshold voltage of IRF3205 is between 2-4 V and the Raspberry Pi gives signal of 3.3 V" A recipe for disaster. Choose a different MOSFET or get yourself a MOSFET driver. \$\endgroup\$
    – winny
    Jun 16 at 13:47
13
\$\begingroup\$

The threshold Voltage of IRF3205 is between 2V-4V and the Raspberry Pi gives signal of 3.3v that will be fine

No. Gate threshold is where the MOSFET barely starts conducting. So if it varies between 2-4V and you are applying 3.3V you are at best barely turning it on and at worst you aren't turning it on at all. You use at least the Vgs listed to get the rated RDson in the datasheet. You should be applying a Vgs of at least 10V.

Ignore Vgsth when using MOSFETs as a switch.


You also need a gate driver which does three things:

  1. Supplies more current than your GPIO
  2. Supplies more voltage than your GPIO if the MOSFET gate source requires it
  3. Allows your low-voltage, low-current GPIO to control the two above.

Your GPIO can't sink or source enough current to charge/discharge the gate-source capacitance fast enough so what is happening is that your MOSFET is spending too long in the inefficient transition region between conducting and blocking where it acts as a moderate value resistor. When blocking, there is lots of voltage across the MOSFET but no current so no heat. When conducting there is lots of current through the MOSFET but little voltage across it so little heat. During the transition region there is moderate/lots of current through the MOSFET and moderate/lots of voltage across the MOSFET so LOTS of heat.

If you just switch the MOSFET on and off occasionally, you can get away with direct drive from GPIO (if the MOSFET is logic level, yours is not) since time spent in the transition region is very small fraction of the overall operating time and there is plenty of time to cool down. But when you're PWMing you're switching thousands of times per second you are entering the transition region just as often.

You can buy gate driver ICs or you can make your own from discrete transistors in push-pull or totem-pole configurations

  • if you choose to use MOSFETs in the level shifter they need to be logic level or else you will obviously run into the same problem you are trying to solve
  • as drawn below, the PMOS must have |Vgs max| > 10 or 15V since that is what it will be when its gate is pulled LO by the GPIO. Otherwise zeners and resistors to clamp the PMOS Vgs to tolerable levels need to be added.
  • You want these MOSFETs to be small so they have low gate-source capacitance and can respond quickly to the weak GPIO.

schematic

CORRECTION FOR SCHEMATIC ABOVE: 1MOhm resistor on gate driver input should be pull-up, not pull-down. Website has glitched out and I can no longer edit the schematic.

In the level-shifter, a current source or active pull-up (made of transistors) will be faster than a pull-up resistor since no RC time constant which will in turn switch your gate driver MOSFETs more quickly (if you are using MOSFETs in the gate driver stage).

The 5 Ohm resistors are there to limit shoot-through since both gate driver transistors are being driven by the same control signal so there is no guarantee they won't both be moderately conducting as one turns off and the other turns on.

Depending on the details of the transistor you are using and how the drive for them exactly turns out, you might be able to remove the 5 Ohm resistors and just tolerate the shoot-through current if it is small and fast enough.

Another way to deal with shoot-through (when using MOSFETs in the gate driver at least) is to use diodes to route the gate current paths through different components during gate-source capacitance charge and discharge so that the turn off time is faster than the turn on time. This doesn't work with BJTs whose control depends more on base-emitter currents than base-emitter voltage. By the way, this approach works for power MOSFETs in half-bridges and H-bridges as well where you can't use any other shoot-through handling methods mentioned in this answer which rely on throttling power (makes too much heat for high powered circuits). My opinion is you should just use independently controlled gate signals in that case, but for gate drivers no one wants that extra complexity.

schematic

simulate this circuit – Schematic created using CircuitLab

You can also swap the positions of the NMOS/NPN and PMOS/PNP of the gate driver stage for a configuration with no shoot-through. This makes them act as source/emitter followers, more like amplifiers with a controlled crossover rather than switches. This then allows you to remove the 5 Ohm resistors which are only there to limit shoot-through currents which prevents them from limiting the current charging/discharging your power MOSFET gate-source capacitance. But the price you pay for this is that they won't reach the rail voltage as closely, but without those resistors they will traverse the middle region more quickly.

schematic

simulate this circuit

\$\endgroup\$
13
  • \$\begingroup\$ Thanks for your reply . i tried to lower down the PWM frequency to 1000 Hz instead of 15 Khz this is made the heat goes down little especially with low Duty cycle , I'll see what can i change next . But Recently i found that Flyback diode is getting hot too ! \$\endgroup\$
    – 0ussama
    Jun 16 at 1:23
  • 4
    \$\begingroup\$ @0ussama No, you need to use a gate driver to drive the FET at a higher voltage. 3.3 volts is not enough to turn it on, you're misunderstanding what the threshold voltage is. The FET is getting hot because it's not turned on fully. \$\endgroup\$
    – Hearth
    Jun 16 at 1:35
  • \$\begingroup\$ @DKNguyen Your drivers you drew are both not going to work very well; you've put an emitter follower and a source follower when what you need is a switch. \$\endgroup\$
    – Hearth
    Jun 16 at 1:36
  • 1
    \$\begingroup\$ @0ussama I already told you in my answer how to get it. In fact, I also outright told you what it should be. \$\endgroup\$
    – DKNguyen
    Jun 16 at 1:53
  • 2
    \$\begingroup\$ @TejasKale See the last few paragraphs of the answer. It is because of shoot-through. This very much comes up in H-bridges and half-bridges in converters where currents are high but you cannot tolerate losses of resistors. \$\endgroup\$
    – DKNguyen
    Jun 16 at 13:38
2
\$\begingroup\$

You cannot use 1kR resistor on the gate!! I mean, you can, but then the MOSFET turns on and off slowly, therefore having non-zero power for a longer time in the cycle. And heats up... Use voltage of 5-10V and smaller resistor. Or lower frequency.

\$\endgroup\$
2
\$\begingroup\$

Other suggestions are correct but for immediate improvement find a “logic level” fet that can operate with 3.3V gate drive. They’re not the best but they exist.

Change the 1k to <100 ohms and the 10K to 100K or remove it (the divider shown is slowing down the gate drive and dropping the gate drive voltage even further).

\$\endgroup\$
1
  • \$\begingroup\$ Limiting the GPIO pin output current of the RPi to its maximum of 16 mA needs a resistor of around 207 Ω. \$\endgroup\$ Jun 16 at 16:49
0
\$\begingroup\$

To answer the other half of the question, you could use a Schottky diode (with an appropriate current rating) as the flyback diode to reduce its temperature. The idea being that the lower potential difference across the Schottky diode will result in lower current x voltage heating.

You could add a small-value resistor* in series with the diode to share the heat dissipation which would otherwise be shared between the diode and the motor windings.

* Determining a suitable value and power rating is left as an exercise for the reader.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.