Skip to content

Commit 882c80d

Browse files
authored
Lower limits by 50% for current and torque for gripper motor (#1809)
Signed-off-by: Pepijn <[email protected]>
1 parent 61b0eea commit 882c80d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/lerobot/robots/so100_follower/so100_follower.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ def configure(self) -> None:
161161
self.bus.write("I_Coefficient", motor, 0)
162162
self.bus.write("D_Coefficient", motor, 32)
163163

164+
if motor == "gripper":
165+
self.bus.write("Max_Torque_Limit", motor, 500) # 50% of max torque to avoid burnout
166+
self.bus.write("Protection_Current", motor, 250) # 50% of max current to avoid burnout
167+
self.bus.write("Overload_Torque", motor, 25) # 25% torque when overloaded
168+
164169
def setup_motors(self) -> None:
165170
for motor in reversed(self.bus.motors):
166171
input(f"Connect the controller board to the '{motor}' motor only and press enter.")

src/lerobot/robots/so101_follower/so101_follower.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ def configure(self) -> None:
157157
self.bus.write("I_Coefficient", motor, 0)
158158
self.bus.write("D_Coefficient", motor, 32)
159159

160+
if motor == "gripper":
161+
self.bus.write(
162+
"Max_Torque_Limit", motor, 500
163+
) # 50% of the max torque limit to avoid burnout
164+
self.bus.write("Protection_Current", motor, 250) # 50% of max current to avoid burnout
165+
self.bus.write("Overload_Torque", motor, 25) # 25% torque when overloaded
166+
160167
def setup_motors(self) -> None:
161168
for motor in reversed(self.bus.motors):
162169
input(f"Connect the controller board to the '{motor}' motor only and press enter.")

0 commit comments

Comments
 (0)