I am trying to make a program that has a feature that will decrease the z axis (go down) until the vacuum head suction cup hits the top of a stack. There is a switch on the vacuum head that should tell the uArm when it is fully pressed down and use that signal as an interrupt, however I cannot find what code will allow for this. Can someone direct me to either documentation or an example of how to access and use this signal?
if (digitalRead(STOPPER) == LOW) {
Serial.println("Stopper is pressed!");
}
A technique that I have found useful is to move the arm downwards a centimeter at a time (“AtOnce”) rather than slowly. It helps to keep the stopper pin from binding and failing to register at first.
I didn’t find explicit documentation for the library but look at the examples given with the help of uarm_library.h, you can understand how to use these functions.