> 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/mjbots-moteus-setup.md).

# MJBOTS Moteus setup

### Install Python Package

```bash
pip3 install moteus_gui
```

### Calibration

With motor controller powered and CAN connected to USB adapter, run

```bash
py -m moteus.moteus_tool --target 1 --calibrate
```

![](/files/6rzylcDJrj4ZkTpHMAVB)

![](/files/rLPs4zoUAagyRuVeILE4)

### Position Mode

run

```bash
py -m moteus_gui.tview --devices=1
```

Set `servopos` limits to appropriate values

![](/files/fpWUqpEgKvH16wMV5o40)

And set

![](/files/zQzyW6NV7yaf1pAwGZym)

```bash
conf set servopos.position_min -3
conf set servopos.position_max 0.5
conf set servo.max_current_A 5
```

```bash
conf set servo.default_accel_limit 1
conf set servo.max_velocity 5
```

To save config to EEPROM:

```bash
conf write
```

and to read from:

```bash
conf load
```

```bash
d pos 0 0 0.1
```

```bash
d stop
```
