Hi everyone,
Right now I have the following
Odrive v3.6
AS5047D encoder (SPI mode)
GBM5208-75 Gimbal Motor
I am relatively new to Odrive and have been trying to get my AS5047D encoder working
for a while now. I have it wired as MOSI connected to MOSI, MISO is connected to MISO CLK connected to SCK and CSn connected to GPIO pin 1. I am really confused and don’t know what the problem is. When I use ```
odrv0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE
AxisError.ENCODER_FAILED
motor: no error
DRV fault: not found
sensorless_estimator: no error
encoder: Error(s):
EncoderError.NO_RESPONSE
This is the code I have been using to calibrate my encoder.
'''In [1]: odrv0.axis0.encoder.config.abs_spi_cs_gpio_pin = 1
In [2]: odrv0.axis0.encoder.config.mode = ENCODER_MODE_SPI_ABS_AMS
In [3]: odrv0.axis0.encoder.config.cpr = 2000
"'