I made two boards according to the pcb files provided by the official website, namely SimpleFOC Shield V3.2 and SimpleFOC Mini V1.1.
I encountered a problem when testing the sample program and would like to ask you for help.
I tested the closed-loop position control examples with library versions 2.3.4, 2.2.1 and 2.1.0 respectively. Arduino uno R3 is used as the driver board. The magnetic encoder used is AS5600, I²C interface.
After setting the encoder parameters, pole pairs, supply voltage, driver instance and PID parameters, my motor cannot be calibrated normally as expected. The motor only has a slight jitter, and does not rotate one circle forward and backward as in normal calibration. In addition, it can be seen from the serial monitor that the initialization process is repeated.
In addition, I also tested the open-loop position control, which also failed to control normally, and the program kept restarting.
I also tested the I²C routine of the magnetic encoder, which can correctly feedback the position and speed of the motor.
I am very sure that there is no short circuit on the circuit board and the electronic components are not damaged. The connections between the motor, encoder, and driver board are very solid.
About three months ago, I used SimpleFOC Shield V2.0.4 and was able to run the SimpleFOC library examples normally, using the same hardware and parameter configuration as now. I was shocked to find that both the new and old versions of SimpleFOC Shield are no longer working properly, and I wonder if this is related to the library update. If not, I wonder if there are other possible reasons for this problem.
I hope everyone can see my problem and provide me with some suggestions, thank you very much.