Configuring xESC

Configuring xESC in the mower

If you bought the kit the xESC are preconfigured.

devicexESC
/dev/ttyAMA2drive motor
/dev/ttyAMA3mow motor
/dev/ttyAMA4drive motor

the config of the mow motor differs from the config of the drive motors, the configs of the two drive motors are equal

Configurations for each xESC can be found at https://github.com/ClemensElflein/OpenMower/tree/main/configs/xESC

Configuring the xESC

Prereqs:

Connecting to the xESC:

  1. systemctl stop openmower
  2. socat tcp-listen:65102,reuseaddr,fork file:/dev/ttyAMAX,raw <- replace X with devicenumber
  3. start VESC Tool
  4. Go to Connection>TCP and insert openmower IP, leave port at 65102
  5. Connect

To change xESC just ctrl+c in the openmower terminal replacing ttyAMA with a new device number and reconnect in VESC Tool.

Loading XML motor configuration:

  1. Download XML configuration files from repo
  2. File>Load Motor Configuration XML
  3. Select file named motor for the xESC you connected to
  4. On the right toolbar click “Write Motor configuration” (the M with a arrow pointing down)

Loading XML app configuration:

  1. Download XML configuration files from repo
  2. File>Load App Configuration XML
  3. Select file named app for the xESC you connected to
  4. On the right toolbar click “Write App configuration” (the A with a arrow pointing down)

Finally ctrl+c in the openmower terminal and start openmower service again. systemctl start openmower