Hello, it is my first time learning about motor and ODrive driver.
I am choosing this gimbal motor because I have a small project that need to have a hollow shaft motor with slipring for sensor purposes. Later I found out that ODrive is not that suitable for low current high resistance gimbal motor.
I feel like it is a steep learning curve for me. Anyone can guide me through the calibration process?
I think I got same problem, spi_encoder0 n_errors rapidly increasing, spi_encoder0 status is No Response, when change the gpio12 mode from Auto to Digital the status become BAD CONFIG. when set to SPI_A status become No Response as well
Sorry for the bad images, I already check the wiring once and I will do it again today.
Because the official wiring diagram is so confusing for me, I do check the wiring directly from AS5048A IC directly using multimeter. But maybe I am done something wrong and will check it again today
Green 5V
Blue Gnd
Black MOSI
Yellow MISO
Red SCK
White nCS
It works now, it might be the encoder signal too noisy, after making sure the encoder cable is not too close with motor phase its working now. its still not great since I got a lot of missing estimate error but at least its working. any improvement that I can make too make the encoder more stable.
Should I reduce the cable length? Is my idea to use quick connecter is a bad idea for encoder? especially its 2 different cable specification
I have the following pinout notes from when I used a similar motor:
25 (5V) - red
26 (GND) - white
27 (MOSI) - yellow
28 (MISO) - green
29 (SCK) - purple
30 (nCS) - black
I can’t comment on the quick connector wiring, would definitely depend on the quality of your crimps – you can always try soldering directly to eliminate that potential point of failure. Unfortunately SPI encoders are intrinsically pretty bad (and the AS5048A in those motors is the bane of my existence), so it may be a bit tricky to get those working really well – you could probably replace the motor’s encoder with an OA1.
You could also try a ferrite ring on the motor phases to reduce EMI. Other than that, any way you can get the encoder wiring away from the motor phases will help. You could hack together a shielded cable out of aluminum foil, wrapping the encoder wire bundle and grounding the foil to the S1’s digital GND (on the 30-pin I/O connector).
If you have an oscilloscope or similar, I can recommend some ways to debug from that.
I am considering using OA1/MA702 as well since it’s been well tested and stable for ODrive but I am not sure whether its also work great for hollow shaft motor with slipring?
Have you ever use OA1 with hollow magnet before? are there any chances that sensor slip ring cable also influence magnetic encoder as well just like with motor phase cable?
RS485 should be OK running over a slip ring though. Alternatively you can use an off-axis encoder like a RLS Orbis – the S1 will support the 14-bit Orbis (singleturn) over SPI.