Hello,
I am trying to adapt our project based on motorware (particulary on example project 5e) to work with variable switching frequency (see link below).
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/813951
I got something that sort of works but I am having some problems with stability and current ripple at higher speeds when running sensorless and when reviewing the code I came across the variable pUserParams->pwmPeriod_usec, which is then forward onto the estimator (the whole UserParams structure is, I don't know if this variable in particular is used at all). If I am trying to vary the switching frequency while the motor is running, what value should I load to that variable on startup? Or should I update it online while running? Does this have any effect at all on the sensorless algorithm?
Assuming that variable doesn't have any effect on the angle estimation, is there anything else I might be missing that would affect the angle estimation? What parameters have an effect on the angle estimated?
Also I have noticed when running the tests that with the new variable switching frequency I get a drop on the produced torque when I run sensorless with respect to sensored. This would support the idea that the estimated angle is not quite right.
Any help would be very much appreciated.
Thanks!