Hello - we are trying to get an AS5048a encoder working with the ODrive Micro; however, we’re bumping into several issues. We’re using an AS5048a Dev Board AS5048A-TS_EK_AB. MOSI is pulled high to 5V as per the ODrive docs.
The main issue is an intermittency issue - when viewing plots on the ODrive GUI, there are clearly points where data is missing. However, when viewing the MISO line on the scope, I can clearly see data.
This intermittency issue can be reproduced easily by physically disturbing the cabling in between the encoder and the ODrive Micro. We thought it might be a cabling related issue, but after testing numerous harnesses and reworking connections, it does not appear to be a component level or wiring issue with respect to the cabling. I have also tested changing up power sources.
I also scoped the V+ and GND lines to look for dips or bounces, but nothing seemed out of the ordinary,
Additionally, we observed that the ODrive Micro has some strange behavior that upon a power cycle or the above-described intermittency issue, it will reset the encoder position plot to 0. I was able to observe this behavior by: a) Setting the encoder position to a non-zero value as shown by the ODrive GUI, b) recording the scope readings, c) trigger a reset such that the encoder position shows 0 on the ODrive GUI despite not changing the physical position of the encoder, d) recording the scope readings. Before and after the position reset, the encoder readings on the scope looked characteristically the same, which makes me suspicious that the ODrive Micro is zeroing the reading for some random reason. Additionally, we put a scope on the PWM output of the encoder, and that value persisted between power cycles, intermittency, etc, which makes me believe the encoder readings are behaving as expected.
Any advice on this intermittency issue, as well as the ODrive’s strange zeroing response to said intermittency issue would be greatly appreciated.
Also, if this is an issue that is related to SPI encoders, are there any encoders that are compatible with the ODrive Micro that either are tested to have fewer issues than the AS5048a, or use another communication protocol that works with the ODrive?
Thank you!