In preparation for future classes, I printed and assembled the Claw Gripper but cannot seem to get it to operate. I'm wondering if the Arudino server numbers are wrong? What should each motor's number be? Is there something else I'm missing?
John's initial response:
* I recommend plugging the servo to any one of the wires and running the MK2 Grippers Arduino Example and seeing if the servo opens and closes (image attached.). If that works, then I recommend reuploading the Legacy Example and then running the RobotMotionTest in Python, which should open and close the grippers. (Also, make sure the wires are correct: white to white, red to red, black to black; OR yellow to white, orange to red, brown to black.)*
I attempted to run the Grippers Arudino example. Initially I got errors that L3 and R3 were twice defined. I commented out the second of each definition and it ran but the gripper did not open and close. Here is the initialization of variables as written in the Arudino example:
ServoMotor L1(22); //left shoulder
ServoMotor L2(24); //left elbow
ServoMotor R1(38); //right shoulder
ServoMotor R2(40); //right elbow