Controlling 2 DC motors at once [For TV]

johnwasser:
Looks like your Sholder function never returns. :frowning:

What I would do:

Global variables for the desired position of each of the motors.

In loop(), check each of the motors to see if it need to move. For each that needs to move, set it going in the desired direction.

For best motion you should be using a PID control loop for each motor. This will run the motor fast if it is far from the desired position and slow if it is near the desired position.

I attached my final code. The movement and everything else is not an issue at all. All i need is to have the elbow go down as the shoulder rises. I was thinking about maybe having them move one at a time like how I have it but really fast so it looks fluid.