Gripper stopped working

Yes, it is possible to test the gripper with an Arduino. I’ve included a sample sketch that will try to open and close the gripper repeatedly.

Attach the gripper’s yellow wire to Arduino pin 10 (or whatever you change GRIPPER_PWM_PIN to) and apply power as usual to the red and black wires. You will need to connect the gripper’s ground (black) wire to one of the Arduino’s GND pins to get a consistent signal. Below is an illustration of the setup; replace the servo with the gripper and the power supply with any 9~18 volt power supply.

Arduino microcontrollers have a 5V DC PWM Output. This is listed as “operating voltage” on the specification table. If using the Newton Subsea Gripper with an Arduino, you will need a Logic Level Converter.

Gripper Test Sketch:

#include "Servo.h"

#define GRIPPER_PWM_PIN   10    // Gripper PWM output pin
#define OPEN_TIME         5.0   // Gripper open time (seconds)
#define CLOSE_TIME        5.0   // Gripper close time (seconds)

#define OPEN_PWM_US       1100  // Gripper open PWM output (us)
#define CLOSE_PWM_US      1900  // Gripper close PWM output (us)

Servo gripper;

void setup() {
  // Attach gripper to proper pin
  gripper.attach(GRIPPER_PWM_PIN);

}

void loop() {
  // Open the gripper
  gripper.writeMicroseconds(OPEN_PWM_US);

  // Let the gripper open up (microseconds)
  delay(OPEN_TIME*1000);

  // Close the gripper
  gripper.writeMicroseconds(CLOSE_PWM_US);

  // Let the gripper close for a while (microseconds)
  delay(CLOSE_TIME*1000);
}
1 Like