Sensorless Motor Control Arduino (ODrive Pro)

Hi all,

I’m trying to control a XeRun 3660, 3600KV motor using the ODrive Pro and an Arudino Uno R4 WiFi. There are no sensors on my motor, and I am having trouble configuring my ODrive. I’ve referenced multiple threads regarding this topic and followed all the instructions given by ODrive on Arduino configuration. I still can’t control the motor through the GUI. Can anyone provide some assistance with my configuration or sensorless control using Arduino?

Thanks

Hi there,

Yes, unfortunately documentation is a bit sparse. I’d be curious to hear exactly what you’re looking to accomplish here? Like what the end application is?

You may have to use ODrivetool to setup the ODrive: odrivetool Setup — ODrive Documentation 0.6.9 documentation, since the GUI doesn’t support sensorless mode configuration (since it’s niche and has its limitations).

You’ll likely want to configure the following endpoints as well:
axis0.config.sensorless_ramp.vel ← try setting this to 25
axis0.config.sensorless_ramp.current ← set this to around 1/2 of the motor’s maximum continuous current
axis0.config.sensorless_ramp.accel ← set this to 1/3 of the value you set sensorless_ramp.vel to

Also set vel_integrator_gain to zero for now, and set vel_gain very low (0.01 or so).

You may have to increase sensorless_ramp.vel if the motor’s stopping after the initial ramp period, or vel_gain.

By the way - you may want to join the discord for faster support, might take some back and forth on this :slight_smile:

@solomondg thanks for the input! Could you send me the link to that discord?