Kuavo Docs
Common Tools

Hardware Test Tools

Description

This document introduces two types of hardware test tools:

1. Lower-Level Controller Hardware Test (Main Menu) The Python script is used to detect the robot's main hardware devices, including serial ports, IMU, servos, grippers, motors, etc. Through a series of menu options, the script makes it easy to perform hardware connection checks, ID and zero-point settings, USB configuration, and other operations.

It includes a main menu (user menu) and a secondary menu (developer tools menu). The secondary menu contains more detailed operations intended only for professional personnel. Users can select different operations from the main menu according to their needs.

2. Host Computer Hardware Test A standalone test tool used to detect hardware devices connected to the host computer (such as LED strips, etc.).

Lower-Level Controller Hardware Test - Running the Program

Use VSCode SSH to connect to the robot's main computer, or connect an external monitor, mouse, and keyboard, and enter the following command in the robot terminal.

$ sudo python3 tools/check_tool/Hardware_tool.py

or

$ sudo python3 Hardware_tool.py

or

$ sudo python3 ~/kuavo-ros-opensource/tools/check_tool/Hardware_tool.py

After running the program, a ROBOT_VERSION / Number of CPU cores prompt appears, along with the following options. Enter the option number as needed and press Enter to execute the corresponding function.

Lower-Level Controller Hardware Test - Main Menu Functions

    1. Open the Zero-Point File Open the zero-point configuration file for editing.
    1. Hardware Connection Check

    Check the connection status of each hardware component, including the servo, gripper, and hand RS485 USB devices. Attempt to open the CAN bus and report its status. Confirm the connection status of the left/right dexterous hand devices from the printed output. Confirm the connection status of the Canbus device from the printed output. If the output is as follows, the left and right dexterous hand devices are connected properly and the canbus device is normal. alt text

    1. Open the IMU Host Software (with Monitor Connected)

    Run the IMU host software to interact with the IMU device. Perform the initial configuration of the IMU module (configure the baud rate, etc.). A monitor must be connected to open the host software. (The IMU is correctly configured at the factory, so repeated configuration is not required.) alt text

    1. Test the IMU (Build First)

    The program in the current folder must be built first. Run the IMU test command to test the IMU device. If data is obtained and "connect success" is printed, the IMU test is normal. Press Ctrl + C to exit. As shown below:

    alt text

  • a. Test the Two-Finger Gripper

    If the robot is equipped with a two-finger gripper, you can test it with this option. If the left and right two-finger grippers open and close normally, the device is ready for use. If it has not been configured before, a prompt may appear asking you to update the config file; follow the prompt to perform the update. (If it was configured correctly at the factory, this prompt will not appear.)

  • c. Test the BrainCo Hand

    Test the gripping function of the BrainCo hand device. First confirm that the green lights on the left and right BrainCo hands are flashing on and off alternately, which indicates a normal state, then test the gripping function of the BrainCo hand device. The left and right dexterous hands will first grip with both hands together, then grip with the left hand, then grip with the right hand; this indicates normal operation.

  • f. Back Up the Zero-Point File

    Back up the zero-point configuration file and other configuration files. They are saved as a compressed archive in the /home/lab directory. The archive is named confirm_backups.zip.

  • k. Update the Programs in the Current Directory (Note: file contents will be reset; backup recommended)

    Update the programs in the current directory. It is recommended to back up the files before continuing.

  • o. Open the Developer Tools

    After selecting "o" in the main menu, the program enters the secondary menu (developer tools menu), which provides a series of developer tool operations. The commonly used arm motor zero-point setting and arm motor direction identification are introduced below.

    • d. Set the Arm Motor Zero Point

      Set the zero point of the arm motors and ensure the configuration file is in place. After running, the arm motors and head motors will use the current motor position angles as their initial angles when the robot program runs. If the output "Canbus status: [ True ]" is printed, the Canbus is normal; if it is False, the Canbus is abnormal and needs to be checked. If "ID1 - ID14 Succeed" is printed, the corresponding arm (head) motors are normal; otherwise, check the corresponding motor that has an error.

        [RUIWO motor]:Canbus status: [ True ]
        [RUIWO motor]:ID: 1 Disable: [Succeed]
        [RUIWO motor]:ID: 2 Disable: [Succeed]
        [RUIWO motor]:ID: 3 Disable: [Succeed]
        [RUIWO motor]:ID: 4 Disable: [Succeed]
        [RUIWO motor]:ID: 5 Disable: [Succeed]
        [RUIWO motor]:ID: 6 Disable: [Succeed]
        [RUIWO motor]:ID: 7 Disable: [Succeed]
        [RUIWO motor]:ID: 8 Disable: [Succeed]
        [RUIWO motor]:ID: 9 Disable: [Succeed]
        [RUIWO motor]:ID: 10 Disable: [Succeed]
        [RUIWO motor]:ID: 11 Disable: [Succeed]
        [RUIWO motor]:ID: 12 Disable: [Succeed]
        [RUIWO motor]:ID: 13 Disable: [Succeed]
        [RUIWO motor]:ID: 14 Disable: [Succeed]

      Arm motors tested normal. As shown below:

      alt text

    • e. Identify the Arm Motor Direction

      (Note: mind the motor limits and avoid stalling) Identify the direction of the arm motors and record it. Identify the direction of the arm motors and record it in a file. It is correctly configured at the factory; unless the motor rotation direction is abnormal, repeated configuration is not required.

      First, confirm the direction of the joint motor axes. There are three axis directions, X, Y, and Z. Facing the robot's front and back: X axis (directly forward is the positive X direction); left and right: Y axis (the robot's left-hand direction is the positive Y direction); up and down: Z axis (directly above the robot's head is the positive Z direction).

      Then, based on the motor axis directions, determine the direction of the arm motors.

      You can use the following steps to determine the positive and negative rotation directions of the motors: 1. Point the thumb of your right hand in the positive X direction of the robot coordinate system and curl your four fingers; the direction the fingers point is the positive rotation direction of the motor. 2. Point the thumb of your right hand in the positive Y direction of the robot coordinate system and curl your four fingers; the direction the fingers point is the positive axis direction of the world coordinate system. 3. Point the thumb of your right hand in the positive Z direction of the robot coordinate system and curl your four fingers; the direction the fingers point is the positive rotation direction of the motor.

      From this, we determine the positive rotation direction of the arm joint motors. After running the program and entering a motor ID, the motor with the corresponding ID will rotate slowly. Observe whether the motor's rotation direction matches the direction we need, and enter Y or N as prompted to configure it. After configuration is complete, the motor will move in the opposite direction back to its initial position.

Host Computer Hardware Test

Note: The following devices are connected to the host computer and are separate from the lower-level controller.

LED Strip Test

The LED strip is connected to the host computer via a serial port and must be tested separately.

Test command:

Use VSCode SSH to connect to the robot's main computer, or connect an external monitor, mouse, and keyboard, and switch to the LED tools directory in the robot terminal:

$ cd ~/kuavo_ros_application/tools/led_tools/

Test methods:

Quick test - Verify basic LED functions:

./quick_test.sh

Test effects:

  • 🔴 Solid red (3 seconds) - Verify basic display function
  • 🟢 Breathing green (3 seconds) - Verify breathing mode
  • 🔵 Fast-flashing blue (3 seconds) - Verify fast-flash mode
  • 🌈 Rhythmic rainbow (3 seconds) - Verify rhythmic mode
  • ⚫ LED off (1 second) - Verify off function

Troubleshooting: If you encounter LED connection problems, check:

  • Whether the /dev/ttyLED0 device exists
  • Whether the UDEV rules are correctly configured
  • Whether the LED hardware is properly connected to the host computer