Hi,
I've had a bit of success tuning instaSPIN for my hobby BLDC motor - having it run smoothly at 15k using Lab 3b. Changing nothing at all in user.h and starting lab 5a to play with ki &kp resulted in my motor setting on fire (LOTS of smoke and some flame off of a rubber thingy)....
-This happened immediately after I set Set Flag_Run_Identify = TRUE - with the default refspeed not changed ( I think it was zero - the PMSM motor does not spin at this point in the lab, not sure why/if the bldc tried to spin).
- Max current is set to 10A (way under what the motor is rated for)
- The dev board (DRV8301-69M-KIT) is completely undamaged & the FETS were room temperature 1/2s after i pulled the battery, to my knowledge they were not warm at any point in the 1/2hr or so I was playing with the motor before this happened either. Which begs the question why did my motor burst into flames??? (again perfectly fine running up to 15k in lab 3b immediately before this happened with no settings changed.)
- I have run this lab before (with a PMSM) without nearly burning my house down but I couldn't get ki-series to match:
Ki(pu) = (Rs/Ls)*1/(PWM Freq) * ISR TICKS PER CTRL TICK
values for my PMSM motor - identifies nicer than the bldc.
PWM freq = 30k
Rs = 0.4150114R
Ls = 0.0006592901H
ISR TICKS PER CTRL TICK = 1
Ki = 20.982 (dec)
but in ccs:
gMotorVars.Ki_Idq long 1056095 (Decimal) 0x00AAB4@Program
I am clearly missing something big for that error?
- Also, regarding #define USER_IQ_FULL_SCALE_FREQ_Hz. my motor is 6pole rated at 1200rpm/V and running on 14.4V. so it should run nominally at 17280 RPM. So Hz = (17280*6)/120 = 864 - I know this is wrong because the example in user.h needs to be doubled to work out: (so i left it at 800Hz)
// 800 Example with buffer for 8-pole 6 KRPM motor to be run to 10 KRPM with field weakening; Hz =(RPM * Poles) / 120
Hz=6000*8)/120 = 400? not 800
* I know it's not going to be possible to diagnose the problem without access to the board/motor/code but what is the most likely reason for this? - I figured that somehow a coil (2 i guess) must have been powered for too long, but then why would the FETs be cool? I can't see how the motor could burn (spectacularly) without destroying the FETS or at least making them hot - checked as soon as I removed power to the board & they were cold.
Thanks