Hi everyone,
I’m working on an e-bike project using SimpleFOC. I’m currently using velocity control, and it works well in terms of reaching the desired speed. However, I noticed that when the bike wheel tries to go faster than the target velocity—such as when going downhill—the controller starts braking to maintain the set speed. This creates issues while riding downhill or pedalling.
Is there a way to prevent this behavior?
Would using Torque Control > FOC Current mode be a better approach for this case?
Alternatively, is it possible to update the main code to control the motor with just duty cycle, so it doesn’t actively brake when overspeeding?
Any suggestions or insights would be greatly appreciated!
Thanks in advance.