USB Controller For Multiple Servos

USB_controller_for_6_servos

[dunk] constructed an easy to use AVR-based USB controller with the ability to drive up to six R/C hobby servos at once.  While the USB-powered Atmega8 he used supplies the necessary PWM signaling for all of the servos, an external power supply rated up to 30v at 3A is necessary to provide the 5v of power each servo requires.  His project is an extension of the USB servo controller built by [Ronald Schaten] and includes several significant upgrades.  The addition of 5 more servos aside, [dunk] switched to AVRlib routines for multi-servo control and PWM management, as well as added the aforementioned power supply to prevent an excessive current draw on the USB port.  His tutorial includes a complete parts list, Eagle PCB schematic, the required USB servo source code, as well as a sampling of commands that can be issued to the servo controller.

12 thoughts on “USB Controller For Multiple Servos

  1. I presume it is PWM.
    30v is definitely overkill, but 3A is not. Those small servos use about 5 watts (5v @1A from my tests) but only support voltages up to 6 or so.
    He’s probably using a higher voltage supply to ensure that the current supply it up to spec.

  2. I was prototyping a Guitar Hero playing robot and was surprised at just how much current those micro-servos actually draw. I had six servos and needed a touch under 3A when then were all making short but rapid movements.

  3. I can’t let the confusion go on any more Hack-a-Day… When talking about power, voltage, and current you should use the proper terms. In this post, for example, you say “5v of power each servo requires.” Voltage is not a measure of power, it’s a measure of electromotive potential. I’ve seen this several times on the site and I don’t want the newbs to get confused by it.

  4. Nice, I made a servo controller like that a couple years ago for an art installation by a glass artist & a musician. Based on the same ATmega8 and everything, with a serial port for configuring the software. The board in the picture is a spare that I built out with just the servo PWM pins in place, and I wrote a Qt app to toggle and/or poll pins so it worked sort of like a slow, cheap logic analyzer.

    Good times!

  5. This sounds like a perfect Picaxe project. The basic like language and built in servo control make for quick and easy thought to product. The free IDE they offer is nice for the entry level person and beyond. Link below should anyone be interested in Picaxe simplicity and low cost. Oh, and your favorite Sparkfun place is where I get’em along with most everything else.

    You can get a Basic kit as low as $15 and thats pretty much all you need to get started (and a few LED’s maybe)
    http://www.sparkfun.com/categories/125

    The Rev-Ed.co.uk has a forum with a *Wealth* of hidden treasures to get you up to speed.

    I am not a Picaxe pitchman, but Picaxe got me started in Micro-controllers. I look at it as a gateway drug into Micro-controllers and what you can do and create with them.

    http://www.rev-ed.co.uk/picaxe/

    http://en.wikipedia.org/wiki/PICAXE

    http://www.sparkfun.com/categories/124

  6. hey Guys,
    i built this project years ago so i could play with the V-USB firmware.
    http://www.obdev.at/products/vusb/index.html
    so the interesting thing about this project is it bit-bangs the USB signals in firmware without the need for a 2nd USB to UART chip.

    @Markus, if you read the link you will see the board will accept any voltage between 7 and 30V.

    @andres, hobby servo PWM signaling. PPM is the multiplexed signals RC transmitters use. if this project used PPM signaling it wouldn’t be able to control individual servos.

    @AlanKilian, i actually made this project in 2007. since then things have got easier still.
    you can now buy microcontrollers with built in USB device ports so you don’t need to mess about doing this in firmware.
    time marches on….

    dunk.

Leave a Reply to LukeCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.