I am new to Arduino and I am trying out a robotic arm with 5 servos. The arm uses an Arduino board that supports both manual control of the servos by turning physical knobs on the board, and computer control by uploading sketches from the Arduino IDE to the board through a USB cable.
When I first got the arm assembled, and turned in on using batteries as a power source, the manual control mode came on by default, and I could use the knobs to manipulate the arm. Today I uploaded my first sketches. After I finished working with the Arduino IDE, I turned the arm off and disconnected the USB cable. Later when I tried to run it in manual mode again (without a USB cable attached) turning the knobs no longer worked to move the servos.
I can still upload sketches, and when I turn it on without it being connected to the computer it seems to execute the last sketch that was uploaded. But I can't get the knobs to work again.
That is exactly how the system works! There is ONLY ONE sketch in the Arduino, the last one to be uploaded. If you do not have the source document for the original sketch, it is gone forever. Sorry!
Assuming your robot arm is this one (and that's information that you really ought to have included in your post), have you tried uploading the Potentiometer_control sketch that's included in the tutorial download that's available on the page?
Do you want the code for the most recent sketch that I ran or for the potentiometer manual control mode that is no longer working? (I didn't write any code for the manual control mode, it just was in that mode by default when I started, so I would have to see if I can find it.)
Yes that is the board and robot arm I am using, and no I have not tried uploading the Potentiometer_control sketch. I will see if I can find it and try that.
A picture of a board is not schematics but You can drop that. Post #2 asked for code. Please read the entire reply.
Hope You will find the source code for the function/sketch You need.