Odrive + stepper motors produce strange drifts in motors

Hi all,

I’m working on a project where I combine one brushless motor controlled by odrive, and 2 stepper motors controlled by arduino and a CNC board. All the control is done by the same computer through USB, sending commands to arduino and Odrive. Everything works perfectly separatelly, but strange things happens when I drive both stepper and brushless motors at the same time. The 3 motors work fine in general but sometimes I have these strange drifts in the stepper motors (not brushless motor though) and they become unstable for a few seconds, then I recover control.

I think it has something to do with Odrive and the power supply. I’m driving the stepper motors with a different power supply, and I have connected both power supplies GND together (the one for steppers and the one for Odrive). I also connected Arduino GND and Odrive GND together. I have no idea what the problem could be, maybe I’m missing something? I would appreciate very much any idea.

Thanks!