Let's Make Robots!

how to control 64 servos with arduino?

Hello everyone.

I am working on a project where I am planning to use 64 servos that track the motion of a mouse and they operate according to the x and y position. Until now I have made a sample with 8 servos in a row, and using Processing I am feeding with data my arduino uno. However, going to 64 servos looks scary to me. Do I have to use 2x arduino uno + 2x 32 servo shield or should I switch to arduino mega? Is there any other alternative?

Here is a 32 servo shield that I have found: http://www.ecrater.co.uk/p/15329910/arduino-sensor-shield-v50-expansion?gps=1

Thanks in advance!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

thank you guys for your very usefull responces! I bought this http://www.adafruit.com/products/815 shield and it works fine. Now I have to find a way to control it through Processing...!

It looks like I2C is supported in Firmata from 2.2 on.


You may want to look over the whole post as well.

Thanks Birdmun, this is what I was thinking of but was too tired to search for it again.

I think the IC TLC5940 is a good and cheap way. You'll need 4 of this chip and chain they together to controll 64 servos. It utilizes 5 pins from your board. One thing that should be considered is if you use all the servos of the same brand. Because every brand have different max and min pulse width, and with this IC would be a little hard to hit the position with different types of servo. Take a look on this walkthrough that I made for this IC http://letsmakerobots.com/node/35677 .

How about something like this? Servo Shield 2


The Arduino servo library can only drive up to 48 servos on an Arduino Mega 1280 or 2560. You will need something like an I2C servo driver.

Video doesn't work for me but I'm on an iPad right now so I don't know your real final needs but... Have you considered using an external serial servo controller like the pololu or others? http://www.pololu.com/catalog/product/1356 The CPU then just throws positions at the controller via serial and it does the work. Most have acceleration and speed control settings and scripting onboard as well. Just a possible option... Stephen

I think this is an option I should consider. However, it seems to be really expensive... almost 50$ per 24 servos...

Thank you anyway!