Arduino UNO controlling 20 servos or 18 servos with serial commands.

Hi.

I made a sketch for Arduino UNO to control 20 servos. Or it can control 18 servos width serial commands.
A video demonstrating the sketch:

Serial command example:
#0 P1000 #1 P2000 T2000 - Move Servo 0 and servo at the samt time from current position to 1000us and 2000us in 2 seconds.

The code was too long to post here so I attached it as a file
More explained at my blog : Arduino UNO Controlling 20 Servos With 15 bit Precision And Low Jitter | Lamja.com

I hope this can be useful.

Regards
Arvid

UNO_20_Servos_Controller.ino (21.5 KB)

1 Like

This feat is often accomplished with external decade counters.

The command set appears to mimic the ssc-32 command set. If that is the case, previously developed code for the ssc-32 might be used with the arduino instead of the sc-32. There is probably a lot of ssc-32 hexapod code available.