Can anyone please explain the algorithm used in sensorless FOC control? How is the position of the rotor estimated? Where can I find the algorithm for sensorless FOC control?
Guys, do you maybe know the function that is used during the FOC detection at the FOC wizard? I have this issue that my motor would run just fine during detection but then never again. I've been playing with the parameters since 3 weeks now and still no chance :/ I would appreciate your help.
The wizard starts the detection with resistance measurement but the above function doesn't start with measuring the resistance neither does it call: mcpwm_foc_measure_resistance()
https://github.com/vedderb/
In firmware documentation mcpwm_foc.c file is containing that.
But the code is a little bit confused my mind.
Is there a block diagram?
That makes the more understandable the algorithm.
https://github.com/vedderb/bldc/blob/master/mcpwm_foc.c
Watch some of the youtube videos, they explain it somewhat. https://www.youtube.com/user/BenjaminsRobotics
Guys, do you maybe know the function that is used during the FOC detection at the FOC wizard? I have this issue that my motor would run just fine during detection but then never again. I've been playing with the parameters since 3 weeks now and still no chance :/ I would appreciate your help.
This is where I got stuck:
The utility function that the "Run Detection" button from the wizard calls is here:
And this I believe is the one that emits the command to the firmware:
Then on the firmware side I find this function:
The wizard starts the detection with resistance measurement but the above function doesn't start with measuring the resistance neither does it call: mcpwm_foc_measure_resistance()
So I'm confused.
Any help would be appreciated!!!
I think I found it in the conf_general.c:
I'd still appreciate a confirmation if anybody is sure about it!