Hi - sorry for the delay in my response!
The original diagram, with the potentiometer, would definitely cause a ground loop and possible damage. I’d strongly recommend using the PT01A or something similar, as then you could wire the PWM output to the ODrive’s isolated IO, which will prevent a ground loop.