Getting Started with AS5047P [Help]

Hello All,

Noob to ODrive here so I beg your patience…

I am having trouble getting started;
Motor: Turnigy SK3 192Kv
Encoder: AS5047P Dev Board
ODrive: V3.6

From the documentation, I have connected the dev board as follows [ODrive - DevBoard]:
3.3V - 5V, 3.3V, MOSI
GND - GND
GPIO3 - CSn
SCK - CLK
MISO - MISO

I think this is correct…

I follow the steps outlined in SPI Encoders in the documentation, no errors are reported and the odrive reboots successfully

I then try the ‘Encoder without index signal’ steps, again no errors are thrown but the results I get are:
odrv0.axis0.error: 1
odrv0.axis0.encoder.config.offset: 0
odrv0.axis0.motor.config.direction: 0

I’ve also tried the ‘Encoder with index signal’ steps, but I get an ‘unhandled exception in event loop’, so I’m guessing this ain’t the one.

I cannot get the motor to move at all, would appreciate any and all help :smiley:

You want the SPI / absolute encoder settings.

odrv0.encoder.config.abs_spi_gpio_pin = 3
odrv0.encoder.config.mode = <whatever the AMS mode is>
odrv0.encoder.config.cpr = 2**14