2025-04-25 1:54 AM - last edited on 2025-04-25 2:22 AM by Andrew Neil
Dear STM Community,
I am currently developing an elevator door control application using the EVSPIN32F0251S1 board with a PMSM/BLDC motor, and I am looking to implement an automatic calibration routine to adapt to varying door sizes at different installation sites.
Since elevator doors can differ in width, the number of motor rotations required to fully open or close the door will not be consistent across all installations. Currently, this calibration is done manually by counting motor rotations, which is not scalable or efficient. I would like to ask if there is a recommended method or best practice for implementing auto-calibration of door travel using the Motor Control SDK or STM32 ecosystem. Ideally, the system should automatically detect the open and close limits during installation, store that data in non-volatile memory, and use it for normal operation.
Does the STM32 Motor Control Workbench or firmware provide any built-in support for such functionality, or would this logic need to be implemented manually in the application code? Additionally, any guidance on integrating limit switches, encoder feedback, or stall detection for this purpose would be greatly appreciated.
Board: EVSPIN32F0251S1
Motor: PMSM (BLDC)
Software: STM32 Motor Control Workbench + generated firmware
Control Mode: FOC (Field Oriented Control)
Thank you for your support and suggestions.