Hi. I already checked the encoder and it works correctly. If I spin the motor manually, I see the measured speed in ST Motor Control Workbench Monitor, and also checked, before making it work, that the signals in A and B are correct.
If you check post #46, tatus says that you cannot use only encoder as primary sensor. I don't like that, because why in the world couldn't I use an encoder as primary sensor, if other FOC implementations let you use just encoder as a sensor?
With encoder as primary sensor, the motor gets energized and stuck in place, but it doesn't spin. Also I can't configure startup ramps.
If I put observer as primary, and encoder as secondary sensor, it works, not as smooth as it would be with encoder, but works. But the weird thing comes when I unplug, while the motor is spinning, the encoder feedback: the motor keeps spinning, the measured speed is the same, and I don't notice any change.
So, is there a way to use the encoder as the primary sensor? I want a realiable speed measurement, and not an estimation.
Thank you