Dear SimpleFOC community,
I am trying to configure a stepper motor in voltage mode and when reading the documentation page I see that it says to configure the voltage limit for the motor between 2 to 5 volts so not to fry the motor.
Voltage Mode | Arduino-FOC
However, if I go to the stepper motor configuration page, it states that this limit should be 12 volts under step 5.6
Which one should I believe? or why are they different?
Best Regards,
Rodrigo
3 Answers
3
Looks like a mistake. 2 to 5 volts is correct. You can’t even use 12V motor voltage on a 12V power supply anyway. Motor voltage is multiplied by sin/cos which range -1 to +1 and then offset by half the power supply voltage, so 6V covers the full range and higher will saturate. Or 6.93V with SpaceVectorPWM, which takes advantage of the fact that only one of the three sine waves is at its peak at any given time.
In openloop_velocity mode it is recommended to start with a low voltage limit.
In closed loop modes this limit can be higher, because the sensor PID algorithm keeps everything safe.
Hi,
Thank you for the answers, I am actually planning to run my motor with a 24V power supply, from @dekutree64 's answer I get that I should put a 5 volt max as the voltage limit.
@o_lampe I am working on closed loop voltage mode for stepper motors. How high can I go?
Best,
Rodrigo
Go above driver_voltage / 2 and the sine wave is distorted. That's no tragedy but not the smoothest or most silent motion possible. It's your call.
– o_lampe