Calibration

Calibration is a necessary step before running the robot because that we don’t yet have a precise measurement of how the servos arms are fixed relative to the servo output shafts. Running the calibration script will help you determine this rotational offset by prompting you to align each of the 12 degrees of freedom with a known angle, such as the horizontal or the vertical.

Materials

  1. Finished robot
  2. Some sort of stand to hold the robot up so that its legs can extend without touching the ground/table.

Steps

  1. Plug in your 2S Lipo battery

  2. SSH into the robot as done in the installation section

  3. Stop the robot script from taking over the PWM outputs:

    rw
    sudo systemctl stop robot
    
  4. Run the calibration script

    • The calibration script will prompt you through calibrating each of pupper’s 12 servo motors. When it asks you to move a link to the horizontal position, you might be wondering what exactly counts as making the link horizontal. The answer is to align the joint centers of each link. For example, when aligning the upper link to the horizontal, you’ll want to the line between the servo spline and bolt that connects the upper link to the lower link to be as horizontal as possible.:

      cd StanfordQudruped
      sudo pigpiod
      python3 calibrate_servos.py
      
  5. Re-enable the robot script:

    sudo systemctl start robot