Hi Team,
We would like to ask your help regarding the issue encountered by our customer while working with electric machines and switching converters using LAUNCHXL-F28379D Launchpad in Simulink. Here are the details,
Basically we are running into some issues with what we think is some sort of a delay in our control loop on our inverter running an F28379 launchpad
We have debugged everything we can think of and haven't found the source, so I thought maybe I can get in touch with someone who is specialised in this area
We are running a 3 phase motor (6 switch) with FOC with closed loop current control and an absolute position encoder (using BiSS-C communication)
When a motor is unloaded and you send a speed request (i.e. low Q axis current) you expect to see mainly Q axis voltage (from the changing PM flux)
At low speed this is the case (most of the required voltage is Vq)
however as speed increases, the D axis voltage component grows significantly implying some sort of delay in the control loop, for example position of current delay
We tried a feed forward phase compensation for encoder offset and found that the required offset rose linearly with speed which is what I would expect for a constant delay
we calculated it to be ~300us significantly longer than what the CPU profiler and other tests we have run are telling us (5us for position feedback delay, 15us for current control loop at the moment)
so maybe 20us delay if the timing of position and current is correct
We have tried both with monitor and tune, as well as with build and deploy (using external CAN comms)
Switching frequency 20kHz (but also tested 40kHz)
Have also tested gate driver delays (i.e. from PWM to VGS going high) a few microseconds
have also tested current feedback delay (i.e. through the filtering circuit in hardware
used both CPU profiler and setting GPIO pins high and low at function start and finish (with custom C code) to check delays
both were similar (12.5us GPIO) and 14us from profiler
the delay is pretty constant, a little bit of noise but that's probably more due to current ripple and it is reasonably repeatable, although I think it may drift a little bit
Regards,
Danilo