Page 1 of 1

Automated FOC tuning

Posted: Sun Feb 27, 2022 2:36 pm
by jalovick
Hi,

This may be a silly question, but is there a way to automate the FOC tuning?

Obviously, the resolver connection would need to be correct to begin work (as shown in the FOC tuning video) -

Jamie

Re: Automated FOC tuning

Posted: Thu Apr 28, 2022 1:20 pm
by MrX
I've been thinking the same thing.

I believe that the accurate motor position could likely be derived with some kind of script that executes the following steps:
  • slowly ramp up motor current (~5A/s) on a single phase to align the motor, holding at some safe threshold (% of maximum phase current maybe?)
  • reads the resolver/encoder position while keeping the phase energised
  • Use this to input the offset for the motor position relative to the sensor
It would need some work on the inverter side to allow energisation of only one phase in this mode. You could even then do a test where the inverter energises one phase at a time to cog the motor until reaching the original position to test the offset. Kind of like a huge stepper motor :D

Re: Automated FOC tuning

Posted: Thu Apr 28, 2022 8:40 pm
by golfdubcrazy
it would be interesting to see how VESC does there automatic FOC as that is also open source and a good controller.

Re: Automated FOC tuning

Posted: Fri Apr 29, 2022 8:57 pm
by whereswally606
Lebowski controller has this functionality and its source is now open thanks to Baz.

Re: Automated FOC tuning

Posted: Sat May 21, 2022 5:09 pm
by Romale
However, this ability is still not enough for this v3 inverter