Skip to content

Aion Robotics R1 UGV

The Aion R1vehicle was chosen to test and improve the differential drive support for PX4, and to improve driver support for Roboclaw Motor Controllers, such as the RoboClaw 2x15A.

The documentation and driver information here should also make it easier to work with Roboclaw controllers on other vehicles, and to work with vehicles like the Aion R6.

Currently, PX4 supports MANUAL mode for this setup.

Aion Robotics R1 UGV

Parts List

Assembly

The assembly consists of a 3D-printed frame on which all the autopilot parts were attached. For this build this includes an Auterion Skynode, connected to a Pixhawk Adapter Board that interfaces with the RoboClaw motor controllers over serial.

R1 Assembly

::: info If using a standard Pixhawk you could connect the RoboClaw to the Autopilot without an Adapter Board. :::

The RoboClaw should be connected to a suitable suitable serial (UART) port on the flight controller, such as GPS2 or TELEM1. Other RoboClaw wiring is detailed in the RoboClaw User Manual 'Packet Serial Wiring' section and shown below (this setup has been validated for compatibility).

Serial Wiring Encoders

PX4 Configuration

Rover Configuration

Use QGroundControl for rover configuration:

  1. In the Basic Configuration section, select the Airframe tab.
  2. Choose Aion Robotics R1 UGV under the Rover category.

Select Airframe

RoboClaw Configuration

First configure the serial connection:

  1. Navigate to the Parameters section in QGroundControl.

  2. Set the RBCLW_SER_CFG parameter to the serial port to which the RoboClaw is connected (such as GPS2).

  3. RBCLW_COUNTS_REV specifies the number of encoder counts required for one wheel revolution. This value should be left at 1200 for the tested RoboClaw 2x15A Motor Controller. Adjust the value based on your specific encoder and wheel setup.
  4. RoboClaw motor controllers must be assigned a unique address on the bus. The default address is 128 and you should not need to change this (if you do, update the PX4 parameter RBCLW_ADDRESS to match).

    ::: info PX4 does not support multiple RoboClaw motor controllers in the same vehicle — each controller needs a unique address on the bus, and there is only one parameter for setting the address in PX4 (RBCLW_ADDRESS). :::

Then configure the actuator configuration:

  1. Navigate to Actuators Configuration & Testing in QGroundControl.
  2. Select the RoboClaw driver from the list of Actuator Outputs.

For the channel assignments, disarm, minimum, and maximum values, please refer to the image below.

RoboClaw QGC

For systems with more than two motors, it is possible to assign the same function to several motors. The reason for the unusual values, can be found in the RoboClaw User Manual under Compatibility Commands for Packet Serial:

Drive motor forward. Valid data range is 0 - 127. A value of 127 = full speed forward, 64 =
about half speed forward and 0 = full stop.

See also