I am working with 6 ds3218 digital servos which have rating of 4.8-6.8V and stall current at 5V is 1.5A and at 6V is 2.5A.
I am using external supply of 5V to power my servos, it is made sure that the supply provides enough current to make all the servo move together. The ground of the external power supply and Arduino Uno is made common.
I am using Servo.h library to write an angle to all the six motors, the issue I am facing is I am not getting the movement of all the six servos together, there is a time lag between the movement of the servos. The time lag is also inconsistent, it may happen to any servo or servos, following things are observed:
5 servos move together then the 6th servo move
3 together then three together
4 together 2 together
sometimes all 6 together
I am not able to find out why are not all my six servos moving together.
Do You think posting the code, formatted and i code tags, would help us? I think it would.
Have You measured the voltage near each motor when the problem is present?
2500 us corresponds to 180 degrees, I am manually adjusting the servo arms to 90 degrees before running the code and then as the code runs the servo arms move as commanded.
the problem is that all the six don't move simultaneously
as the servos are connected in parallel to the external power supply of 5V then the voltage across all the servos is 5V only, the connections have been done accurately
Did you run a program to set the servos to 500uS to see where 0 is? then set the servos to 1500uS to see where the 'middle' is then 2500uS to see where the end is?
Manually turning the servos does not work out well for alignments.
How serious are about the simultaneous movement? If that is the basis of your whole project, then you need to select servo devices that have the exact same response to your signal. And the selection must be with a whole bunch of servos, you cannot assume.