Author Topic: MOSFET latching problem  (Read 5699 times)

0 Members and 1 Guest are viewing this topic.

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
MOSFET latching problem
« on: February 10, 2016, 10:57:47 pm »
This one is pretty convoluted so I'm going to try and break it down.

Everything has been working great until this morning when I uploaded new code that had to do with the radio. After 30 seconds of motor movement, the Li-Po protection kicked in (probably short-circuit protection). I had to bypass the li-po circuit with a wire because I first thought the protection circuitry was being screwy (I was wrong). One of the four mosfets proceeded to let out the magic smoke, I cut the power (note that both half-bridges are driven high by default) . The mosfet was already welded to the copper so I couldn't desolder it, so I just forced it on again to see if it was over, but it just flamed up and took the other fet with it, and scorched my board.

SO I whipped up a new board (same PCB design) with the same components (literally) except for the driver of the exploding mosfet side. I hooked everything up except for the motors and everything looked fine on my scope, both motor channels seem to match in every way. I let it sit there and altered the PWM for a while, everything is fine. I hook up both motors and instantly the li-po protection kicks in, I bypass it, SAME mosfet smokes, I cut power, I get a little frustrated and bypass the protection circuit again, mosfet unleashes long red flame, PCB is scorched again.  |O  :scared:

Some recap:
  • I checked the IO driving both mosfet channels with my scope and both are fine
  • Everything works until a motor is connected to the bad channel

TLDR:
Only one mosfet keeps shooting out long red flames. It seems both sources of one (of four) of the complementary mosfets are latching together.

Any ideas?
« Last Edit: February 10, 2016, 11:26:56 pm by robotix3 »
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: MOSFET latching problem
« Reply #1 on: February 10, 2016, 11:05:27 pm »
Did you roll back to a trusted firmware when u made the new board?
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #2 on: February 10, 2016, 11:09:23 pm »
Well that's kind of the question, is there any code that can be written that would cause this? I can't think of any.

schematic -> https://drive.google.com/file/d/0B8gXTJQEnbqQbVpfZ0hlMmM4WjA/view
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2085
Re: MOSFET latching problem
« Reply #3 on: February 10, 2016, 11:20:59 pm »
Any ideas?

Er ...
when I uploaded new code that had to do with the radio.
Presumably this code was uploaded to the same micro that controls the H-bridge? If the modified code has altered the timing of the bridge control code ... pooooof!
Can you revert to the old code? Do you have access to an oscilloscope - if so, observe the output of the micro before connecting mosfets.
« Last Edit: February 10, 2016, 11:23:11 pm by Andy Watson »
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #4 on: February 10, 2016, 11:24:22 pm »
Quote
If the modified code has altered the timing of the bridge control code ... pooooof!
But what scenario would cause this to happen with my circuit?

schematic -> https://drive.google.com/file/d/0B8gXTJQEnbqQbVpfZ0hlMmM4WjA/view
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2085
Re: MOSFET latching problem
« Reply #5 on: February 10, 2016, 11:28:36 pm »
Quote
If the modified code has altered the timing of the bridge control code ... pooooof!
But what scenario would cause this to happen with my circuit?
Hard to say without knowing the details of the code. But, e.g. if the radio code disables the interrupts to do some time-sensitive operation - it could lock-out the bridge control leaving the mosfets on too long. Or perhaps there is an unintentional write to the port that controls the mosfets. Could be any number of things.
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #6 on: February 10, 2016, 11:32:52 pm »
The mosfets can be 100% on and be fine. From what I understand there is no bad combination of driving the fets, what combination of inputs would cause this?
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: MOSFET latching problem
« Reply #7 on: February 10, 2016, 11:37:59 pm »
did you really tied the 2 gates (N + P) together ? how will you prevent a shoot-through ? it's not the best design for high power.
use a correct half-bridge driver with N-chan mosfets only - the half bridge driver takes care of dead-time to prevent shoot-through.

half bridge drivers - e.g. IR2101/IR2102 , IR25602 - and add any N-chan mosftes suitable for your load.

if you just tie the gates together then it might (and will !!) happen that the P-chan is not closed yet and the N chan is already opening...

 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2085
Re: MOSFET latching problem
« Reply #8 on: February 10, 2016, 11:38:33 pm »
The mosfets can be 100% on and be fine. From what I understand there is no bad combination of driving the fets, what combination of inputs would cause this?
You claim to be using a "H" bridge configuration - I briefly scanned the data sheets but I didn't see any hardware interlock to prevent both upper and lower mosfets on the same leg of the H, being turned on simultaneously (shoot-through). (I can't access google drive :( )
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #9 on: February 10, 2016, 11:41:36 pm »
 

Offline mackrc1

  • Contributor
  • Posts: 43
  • Country: 00
Re: MOSFET latching problem
« Reply #10 on: February 10, 2016, 11:48:12 pm »
Not sure I entirely understand the situation but if everything was working fine before check that the radio isn't somehow dragging down the gate voltage or something. If its overheating that fast my guess would be the mosfet isn't fully on.
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #11 on: February 10, 2016, 11:50:16 pm »
From reading a little I'm pretty sure it's shoot-through. I understand the principles but never thought about the real effects.

Thanks guys
« Last Edit: February 10, 2016, 11:53:43 pm by robotix3 »
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: MOSFET latching problem
« Reply #12 on: February 10, 2016, 11:55:55 pm »
Quote
If the modified code has altered the timing of the bridge control code ... pooooof!
But what scenario would cause this to happen with my circuit?

schematic -> https://drive.google.com/file/d/0B8gXTJQEnbqQbVpfZ0hlMmM4WjA/view

with the gate tied together and not separately controlled with deadtime  I expect you'll get massive shoot through i.e. both top and bottom
fet on at the same time shorting the supply during the switching.

if you increased the switching frequency it might just be enough to go from getting hot to letting out the smoke



 

Offline brumbarchris

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ro
Re: MOSFET latching problem
« Reply #13 on: February 11, 2016, 08:09:17 am »
I am just surprised this has worked for so long without any problems!
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: MOSFET latching problem
« Reply #14 on: February 11, 2016, 08:21:46 am »
Well that's kind of the question, is there any code that can be written that would cause this? I can't think of any.

schematic -> https://drive.google.com/file/d/0B8gXTJQEnbqQbVpfZ0hlMmM4WjA/view

Well... apparently there is, because the old code didn't do it and the new code does!    :-//


I like your troubleshooting technique.... Let's see if we can make it shoot out long red flames _again_ !!    :-DD
« Last Edit: February 11, 2016, 08:31:31 am by alsetalokin4017 »
The easiest person to fool is yourself. -- Richard Feynman
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: MOSFET latching problem
« Reply #15 on: February 11, 2016, 08:23:39 am »
I am just surprised this has worked for so long without any problems!

it can work if the gate threshold voltages are not very low (the lower the thresholds are the the bigger the overlap is) , the mosfets will survive some brief shoot-through without any significant issues (little heat, shorter battery life...no big deal). but it's always a matter of time when you cross the line (due to change the rising/faling edge , temperature change) and the mosfets will fight to death :D
 

Offline brumbarchris

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ro
Re: MOSFET latching problem
« Reply #16 on: February 11, 2016, 11:23:16 am »
Interestingly, out of this figtht between mosfets it is always the mosfet in the same position getting it all the time.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: MOSFET latching problem
« Reply #17 on: February 11, 2016, 12:19:22 pm »
Interestingly, out of this figtht between mosfets it is always the mosfet in the same position getting it all the time.

because the one with lower Rdson has a much higher chance to survive.
 

Offline nuno

  • Frequent Contributor
  • **
  • Posts: 606
  • Country: pt
Re: MOSFET latching problem
« Reply #18 on: February 12, 2016, 01:23:52 am »
You do have quite some flaws in that design but, is your motor ok?...
 

Offline robotix3Topic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: MOSFET latching problem
« Reply #19 on: February 12, 2016, 04:34:44 pm »
Quote
is your motor ok?...
Yes motor is fine, coil resistance is within spec.

For those curious, I have switched to a very safe design using the DRV8701 http://www.ti.com/lit/ds/symlink/drv8701.pdf and two N-Channel arrays http://aosmd.com/res/data_sheets/AON7804.pdf

(These are the moments I wish I stuck with programming lol)
« Last Edit: February 12, 2016, 04:36:31 pm by robotix3 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf