Adding a stepper motor controlled gripper

software

#1

Hello

I am working with a group of Penn State students on the OpenROV 2.8 for our senior project and we are currently adding a gripper. We are using a stepper motor to turn a screw which actuates the grippers. I have developed some arduino code to open and close the grippers when I type in a number the serial monitor. I would like to add this program to the ROV and change it so that when a letter on the keyboard is pressed it will actuate the gripper (similar to the lights). However I am having trouble understanding how to get the keyboard to control that, I have only ever done programing with an arduino so forgive me if i’m a little slow with the java. Also I’m not sure what libraries are needed in the code and how to get the stepper.h library onto the OpenROV. Any help would be greatly appreciated.

Thanks
Cole