Automated FOC tuning

Post Reply
User avatar
jalovick
Posts: 95
Joined: Mon Mar 11, 2019 10:14 am
Location: Sydney, Australia
Has thanked: 10 times
Been thanked: 6 times

Automated FOC tuning

Post 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
User avatar
MrX
Posts: 20
Joined: Tue Aug 17, 2021 2:19 pm
Location: Down Under 🦘

Re: Automated FOC tuning

Post 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
golfdubcrazy
Posts: 75
Joined: Thu Jan 28, 2021 6:15 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Automated FOC tuning

Post by golfdubcrazy »

it would be interesting to see how VESC does there automatic FOC as that is also open source and a good controller.
whereswally606
Posts: 43
Joined: Sun Nov 14, 2021 6:16 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Automated FOC tuning

Post by whereswally606 »

Lebowski controller has this functionality and its source is now open thanks to Baz.
User avatar
Romale
Posts: 441
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 204 times
Been thanked: 45 times

Re: Automated FOC tuning

Post by Romale »

However, this ability is still not enough for this v3 inverter
evil neodymium :twisted:
Post Reply