> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/motor-control/odrive-setup.md).

# ODrive Setup

![](/files/RFop6NZziIeVwgezv57Y)

{% embed url="<https://discourse.odriverobotics.com/t/odrivetool-could-not-open-usb-device/7230/13>" %}

Just change the Native Interface to libusb-win32 driver solves the problem.

![](/files/mtlMxvgutFHcSydJdbdd)

![](/files/emIHqNuYrhT0hWJte8Js)

![](/files/aH4fsn7EMXSUgrrPNLXd)

{% embed url="<https://www.aliexpress.com/item/2251832533667878.html?gatewayAdapt=4itemAdapt>" %}

```python
odrv0.axis0.motor.config.pole_pairs = 7

odrv0.axis0.motor.config.torque_constant = 0.024323529411764706

odrv0.axis0.encoder.config.cpr = 2400
```
