Suction servo control


#1

I have been writing a Python serial interface for the Dobot Magician.
The only problem I have is with the servo motor attached to the suction cup.
Currently it is plugged into GP3, closest to the motor.

When I power on the Magician, the servo automatically turns many times in one direction before stopping. This is a problem because the air hose becomes very twisted.
The bigger problem is that I cannot control the servo. I am using PTPCmd (ID 84) to set the 4 joint angles over serial. The base and arms move correctly, but the servo never moves.

Any help is greatly appreciated. Is there another command for changing the suction cup angle? Or is this some deeper problem?


#2

hey hi here is how i control the detachable motor

dType.SetPTPCmd(api, 4, -88, 39.2881, -13.9930, 2.76, 1)

the 4th parameter is the joint 4 and you should set the 2nd parameter to 4