Sending a specific PWM output with arduino

Hello men, women, and children of the arduino forum. I've been having some problems with my Newton Subsea Gripper Arm. The problem is not the mechanics of the arm, but simply telling it what to do. On the company's website(https://www.bluerobotics.com/store/rov/bluerov2-accessories/newton-gripper-asm-r1-rp/), you are instructed to do this:

Provide a servo PWM pulse at 1500 μs for no movement. Provide a servo PWM pulse greater than 1530 μs to open gripper. Provide a servo PWM pulse less than 1470 μs to close gripper.

I've done some research into the topic and I still have no idea how to approach this. Any insight would be greatly appreciated, thank you.
:slight_smile:

Okay, I've been trying to figure this out for two days, but it just now hit me, right after I post this. If you have the same problem, here's what I found:

void setup()
{
pinMode(13, OUTPUT);
}

void loop()
{
digitalWrite(13, HIGH);
delayMicroseconds(100);
digitalWrite(13, LOW);
delayMicroseconds(1000 - 100);
}

Happy coding!

You should be using the Servo library and then you can do gripper.writeMicroseconds(1500); etc. Life will be much easier.

...R