AS5047P encoder

Hello, I am using an encoder AS5047P and I am trying to connect it to odrive v3.6 using SPI protocol pins (MOSI, MISO and so on). I am just doing ‘odrv0.erase_configuration()’ then check for errors, and it gives ‘MotorError.DRV_FAULT’ error. But if i do not use encoder it does not give any error.
Motor: Sunnysky X6215S 340KV


On the v3.6, the SPI is shared between the gate driver and the encoder. If SPI is miswired or the encoder is damaged, it’ll show up as a DRV fault.

Which AS5047P board are you using?

AMS AS5047P encoder: https://aliexpress.ru/item/1005003163076032.html?spm=a2g2x.orderdetail.0.0.7f5e4aa6Nxm7Pt&sku_id=12000024432396171&_ga=2.63608751.1811479275.1738301383-2134521151.1738301383

I see – sounds like your wiring is problematic, which would explain both the error rate and the COM failure error.

Your pinout looks generally OK, could you take a picture a bit zoomed out so I can see the wire lengths, where they’re routed, etc?



Responded in the other thread.