Showing results for 
Search instead for 
Did you mean: 

Hello, I am evaluating the STEVAL-SPIN3201 with the ST-SPIN32F0and trying to achieve very low speed with high torque.

Associate II

 I am using a 57BL90 motor with Halls, 90 watts, testing at 24vdc. I am using the ST workbench to specify all of the parameters then generate the *.h files which are downloaded using Keil. I am able to achieve good high speed motor control but very low speeds are very choppy and out of control. Even using torque mode only, the motor jumps and has a very uneven torque output. I will eventually be running the motor in position control mode commanding torque or speed from the position control loop. How can I get smooth torque and/or speed control of the motor at very low speeds??


are you using timers to develop interrupts ?

the timers have a limited range, 16bit or 32bit. you may need to extend this range in software.

in the real world, timers like this are overflowing continually.

You may have to add another 16/32 bits to your timers and calculations

or else up the timer prescaler to 256 or 1024 or higher if you can.

If you need both Low speed and High speed then the timer extension may be required.

Associate II

Thanks very much for your response. I will check the timers, it makes sense this may be the issue but ultimately I will need the generate torque at zero speed when resisting an external force. Is anyone out there using torque mode at low/zero speed?

Laurent Ca...
Lead II

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards