Closed tianrking closed 6 days ago
For support, please post to our forums.
Based on the output, I can't really see an error - in the case of initFOC() we can see that no movement is detected, so this means either the sensor or the driver are not working as expected.
If you remove the initFOC() from this code example, then you also need to change the mode to an open loop mode.
In general, angle mode is the most complicated one, and can only work once you have tuned your PID settings. Please start in torque mode and make sure the motor is moving well in this mode, then use velocity mode and tune the velocity PID, and then finally try angle mode last.
I'll close this for now as there is no real "bug" that we have found yet. To get support with your setup, please use our Discord or community forums.
Description: I am using an AS5600 magnetic encoder and a BLDC motor with SimpleFOC library to control the motor, but it is not rotating as expected. The motor does not react to changes in the target angle and there are no significant errors, but the following logs indicate issues:
software env arduino v2.0.17 + simplefoc 2.3.3
Code:
Log 1 (Without calling
motor.initFOC()
):Log 2 (With
motor.initFOC()
):Problem:
MOT: Failed to notice movement
andMOT: Init FOC failed
when callingmotor.initFOC()
.What I've tried:
motor.initFOC()
but the result remains the same (motor does not rotate).Expected behavior:
Additional information:
Can anyone provide assistance or insights into what could be causing the issue?