Need Help with Arduino code for gesture controlled robotic arm? Answered
Hello! I'm doing a project on gesture controlled robotic arm. I'm using MATLAB for gesture recognition, and have interfaced it with the arduino board.
When a gesture, say up, is recognised, a pin is made high. How do I go about programming the arduino to make the arm move up (i.e control the servo motor in one direction) as long as I show up, and make it move back down when I show the gesture for down (make the servo motor rotate in the opposite direction for as long as the gesture is shown)?
I only know how to do this for analog inputs, not digital ones.
I'm sorry if this is a silly question, I'm new to Arduino. Thank you for your time!