dzid26 / StepperServoCAN

Closed loop stepper motor controller with CANbus capabilities. This Project open source hardware and code, support platformio build and upload firmware.
https://shop.retropilot.org/product/stepperservocan
19 stars 5 forks source link

Reduce torque ripple #11

Closed dzid26 closed 1 year ago

dzid26 commented 1 year ago

Due to cheap stepper construction, torque ripple (under load) is quite significant. Under load, the generated torque seems to be higher at the "half-step" than at the "full step". This torque ripple can be represented by 3rd harmonics.[1][2] https://www.desmos.com/calculator/xxyvgnyl7m

[1] Matsui, N., Nakamura, M., & Kosaka, T. (1996). Instantaneous torque analysis of hybrid stepping motor. IEEE Transactions on Industry Applications, 32(5), 1176–1182. doi:10.1109/28.536880 [2] CERN-THESIS-2014-380 Modelling and Control of Stepper Motors for High Accuracy Positioning Systems Used in Radioactive Environments https://core.ac.uk/download/pdf/148670797.pdf

dzid26 commented 1 year ago

The idea is then to subtract the electromotive force where torque ripple peaks occur by modifying the commutation sine wave.

The wave shall still be between -1..1 and its first derivative should have the same sign as the normal sine wave (aka, it should not turn around or overshoot). image Electrical angle circle: image

Benefits of smooth torque:

Disadvantage:

For completeness - reverse example of torque ripple/power boost: image image

Plot script