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:
sudo systemctl stop openmower
socat tcp-listen:65102,reuseaddr,fork file:/dev/ttyAMAx,raw
<- replacex
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
ttyAMAx
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 hit Ctrl + C in the openmower terminal and start the openmower service again. sudo systemctl start openmower
Last modified November 24, 2024: feat: sort contributions and knowledge base alphabetically (#39) (9bd62dd)