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
Automated FOC tuning
Re: Automated FOC tuning
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:
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

-
- Posts: 85
- Joined: Thu Jan 28, 2021 6:15 pm
- Has thanked: 1 time
- Been thanked: 10 times
Re: Automated FOC tuning
it would be interesting to see how VESC does there automatic FOC as that is also open source and a good controller.
-
- Posts: 43
- Joined: Sun Nov 14, 2021 6:16 pm
- Has thanked: 1 time
- Been thanked: 2 times
Re: Automated FOC tuning
Lebowski controller has this functionality and its source is now open thanks to Baz.