Hi everyone! I have been dealing with this problem for last two weeks. First i will tell about my setup.
I’m using herlea x8311s kv140 motor, as5048a encoder and odrive3.6 56V board. Firmware I’m running is latest 0.5.1 version. My power supply is laboratory power supply able to give voltage and current up to 30V and 30A.
At first I was getting ENCODER_ERROR_ABS_SPI_COM_FAIL
. I wasn’t able to calibrate encoder when my voltage was higher than 20V. From what other people expirienced on this forum I started to suspect noise in spi connection from motor current. So i decided to put shielded cable on my spi connection, and it did improve dramaticaly. I’m now able to calibrate motor with higher voltages. But the before mentioned error still apears sometimes. Some people think that the problem might be with the error flag:
towen - error flag
Can anybody confirm this?
Also I still have a problem with position control (torque and velocity control is satisfying so far). When I run closed loop control, my motor starts producing low key but quite enough to hear noise. And when i set it for example to position 0 it starts oscillating without stopping. Is the problem with pid parameters of controller or something else is at play here?
Video of oscillating motor: