Skip to main content

Zeroing the Actuators

This guide explains how to change the id of motors and zero the Robstride Actuators. This is mainly used after you have repaired a robot by swapping actuators.

Prerequisites

Overview

You will need to download the Motor Studio under the Releases. It currently supports Windows and Linux. The instructions are located in the github.

Next you will need to take off the red JST connector on the limb that has the replaced motor.

Then you should connect the JST connector to the Robstride USB CAN tool and scan for the actuators. The new actuator should show up as id 127. You should take a look at the K-Bot Motor Mapping diagram below and assign it the correct id.

K-Bot Motor Mapping

Then you should download the current version of the actuator firmware from the github releases here and upload the firmware using the motor studio.

Next you should look at the parameter table of the actuator that you replaced and update the zero offset parameter with the value from the table below.

Actuator idOffset
11 (L Shoulder Pitch)-3.491
12 (L Shoulder Roll)-1.658
13 (L Shoulder Yaw)-1.672
14 (L Elbow Pitch)0
15 (L Wrist)-1.378
21 (R Shoulder Pitch)-3.491
22 (R Shoulder Roll)1.658
23 (R Shoulder Yaw)1.672
24 (R Elbow Pitch)0
25 (R Wrist)1.378
31 (L Hip Pitch)-2.216
32 (L Hip Roll)-2.268
33 (L Hip Yaw)-1.571
34 (L Knee Pitch)0
35 (L Ankle Pitch)-0.262
41 (R Hip Pitch)2.216
42 (R Hip Roll)2.269
43 (R Hip Yaw)1.571
44 (R Knee Pitch)0
45 (R Ankle Pitch)0.262

Next you will need to move the robot into the zeroing position as shown in the video below.

Finally, while 1 person holds the robot's elbow straight, another person should run the following commands:

conda activate robstride
robstride -i can0,can1,can2,can3,can4,can5,can6 zero --ids 11,12,13,14,15,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45

Finally, you can move the robot manually to near the zero position and check the position of each actuator. If any of them are far from zero, you should re zero them manually using the robstride motor tool.

robstride -i can0,can1,can2,can3,can4,can5,can6 state --ids 11,12,13,14,15,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45