official skill

Grip

grip.py

Close the gripper through a fixed 90-degree movement at reduced speed. Supervise and stop if obstructed.

arm
Author
MyRoboBrick
Build
Reach Arm
Language
MicroPython · SPIKE Prime
grip.py
1from spike import Motor2 3shoulder = Motor("A")4gripper = Motor("C")5 6def pick():7    shoulder.run_to_position(40)   # lower8    gripper.run_for_degrees(90, 30)  # reduced speed; no force sensing9    shoulder.run_to_position(0)    # lift10 11pick()

Read every line before running it on real hardware.

Have a skill worth sharing?

Submit your own MicroPython skill. Everything is reviewed for safety before it shows up for other builders.