Configuring xESC
Configuring xESC in the mower
If you bought the kit the xESC are preconfigured with VESC firmware 5.x"
device | xESC |
---|---|
/dev/ttyAMA2 | drive motor |
/dev/ttyAMA3 | mow motor |
/dev/ttyAMA4 | drive 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:
- VESC Tool (https://vesc-project.com/vesc_tool)
Connecting to the xESC:
systemctl stop openmower
socat tcp-listen:65102,reuseaddr,fork file:/dev/ttyAMAX,raw
<- replace X with devicenumber- start VESC Tool
- Go to Connection>TCP and insert openmower IP, leave port at 65102
- 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:
- Download XML configuration files from repo
- File>Load Motor Configuration XML
- Select file named motor for the xESC you connected to
- On the right toolbar click “Write Motor configuration” (the M with a arrow pointing down)
Loading XML app configuration:
- Download XML configuration files from repo
- File>Load App Configuration XML
- Select file named app for the xESC you connected to
- 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
Last modified June 11, 2024: feat: mention vesc FW version on the kit (#35) (23445f7)