# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tk233.gitbook.io/notes/motor-control/mjbots-moteus-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
