7.2.4 Joint Control
Before moving the robot, fix the base and clear the workspace.
Return to Zero
import time
from pymycobot import MyCobot280
mc = MyCobot280(unoq_bridge=True)
mc.send_angles([0, 0, 0, 0, 0, 0], 30)
time.sleep(3)
print(mc.get_angles())
Single Joint
import time
from pymycobot import MyCobot280
mc = MyCobot280(unoq_bridge=True)
mc.send_angle(1, 20, 30)
time.sleep(2)
mc.send_angle(1, 0, 30)
time.sleep(2)
Multiple Joints
import time
from pymycobot import MyCobot280
mc = MyCobot280(unoq_bridge=True)
mc.send_angles([0, -20, -40, 0, 30, 0], 30)
time.sleep(3)
mc.send_angles([0, 0, 0, 0, 0, 0], 30)
Use a low speed for the first run. If the robot does not respond, run the read-only checks in 7.2.1 first.