Interface up to 12 servos using Arduino

[Brian] is using an Arduino to control multiple servo motors. This is nothing new and has been happening since the earliest days of Arduino. But rather than develop a project and share it, [Brian] did a fantastic job of making the code scalable, readable, and even explained how the different parts work.

His code listens for serial commands and manipulates the motors accordingly. He wrote a Python script using pyserial which talks to the Arduino. As an example, he uses a joystick to send data for X and Y axes as well as pitch and roll. Want to know how those serial communications work? He explains that in detail. He also outlines the process of scaling up from the 4 servo demo to 12 servos on a standard Arduino. Sounds like it might be time to build your own version of a mouse-controlled Lynxmotion arm using the tools [Brian] has put together.

Comments

  1. Hackius says:

    I hadn’t seen this before but it seems like this is from 2008!

  2. Navic says:

    This is a great project! I use this code for many of my robotics projects, very awesome work!

  3. Alex says:

    Wasn’t this already posted on here a while ago?

  4. Brian W. says:

    Yep, this code is originally from 2008 — I know because I wrote it!! (Although it has been updated several times.) It never ceases to amaze me how many hits this project gets, and how many people have used my code to jumpstart their own projects.

    Thanks to Hack a Day for (re)posting this, and thanks to everyone for their great comments and support. It’s nice to know your work can benefit others. OSS rules!

  5. This project has moved to http://teamprincipia.wordpress.com/2008/04/08/arduino-python-4-axis-servo-control/. Thanks for all your support!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 91,415 other followers