Recommended setup for small motor position control?
I have a small BLDC motor with magnetic encoder (like this one https://www.aliexpress.com/item/33053552345.html) and would like to set up a position control. The NUCLEO-IHM03 comes pretty close https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/stm32-nucleo-expansion-boards/p-nucleo-ihm03.html and I think I can use it from the hardware side. In this demo, no encoder is used, but connecting the AS5048A via SPI (for absolute position output) should not be a problem.
I am not so sure about the software. I have tried the motor control workbench, but this only seems to focus on speed control. There is a torque mode available, which would mean I would have to add a PID position controller on top. I could do BLDC/FOC from scratch if necessary, but would like to minimize effort by re-using an existing project. Can the motor control workbench do this or is it for low speed fan and compressor stuff only?
