by sprince09 » Mon Jul 27, 2009 7:57 pm
by sprince09
Mon Jul 27, 2009 7:57 pm
Just to clarify, there are a few different ways to communicate with the AX-12's:
USB2Dynamixel:
This is just a usb-serial converter that allows you to connect directly from a PC to the
AX-12 network. This allows you to write programs on your PC (in any language) to
communicate with your AX-12's through the USB2Dynamixel module. This bypasses
the CM-5 entirely, but you'll need to find a battery or something to power your
AX-12's.
CM5:
The CM5 is a circuit board which uses an atmega128 microcontroller as it's brain. If
you want to program the CM5, what you really will be doing is programming the
atmega128 chip inside it. While it is possible to program these chips in a couple of
different languages, the vast majority of people use C because there is a free atmega
C compiler available. It is possible to break your CM5 by writing bad code, so if
you've never programmed a micro-controller before, go to Digikey and buy a $4.00
atmega8 to play with, and head over to
www.avrfreaks.net first. I recommend staying
far away from the example code provided by Robotis if you plan on programming the
CM5, because it contains a lot of typos and for me, won't even compile.
Motion Controller from Robotis:
If all you care to do is make your servos move, head over to the downloads section of
Robotis' website and download the Bioloid software package. This has a couple of
programs which allow you to do perform some basic functions on the AX-12's and
the CM-5. If you're running the default firmware on your CM5, you can use this
software package to load sequences of positions into the CM5's memory, which it will
then cycle through and move the corresponding servos appropriately.
I have some C code that I use to communicate from my PC (linux) through a USB2Dynamixel unit to some AX-12 servos. I don't see a way to attach it to my post here, but if you PM me, I'll gladly e-mail you a copy of it.
Just to clarify, there are a few different ways to communicate with the AX-12's:
USB2Dynamixel:
This is just a usb-serial converter that allows you to connect directly from a PC to the
AX-12 network. This allows you to write programs on your PC (in any language) to
communicate with your AX-12's through the USB2Dynamixel module. This bypasses
the CM-5 entirely, but you'll need to find a battery or something to power your
AX-12's.
CM5:
The CM5 is a circuit board which uses an atmega128 microcontroller as it's brain. If
you want to program the CM5, what you really will be doing is programming the
atmega128 chip inside it. While it is possible to program these chips in a couple of
different languages, the vast majority of people use C because there is a free atmega
C compiler available. It is possible to break your CM5 by writing bad code, so if
you've never programmed a micro-controller before, go to Digikey and buy a $4.00
atmega8 to play with, and head over to
www.avrfreaks.net first. I recommend staying
far away from the example code provided by Robotis if you plan on programming the
CM5, because it contains a lot of typos and for me, won't even compile.
Motion Controller from Robotis:
If all you care to do is make your servos move, head over to the downloads section of
Robotis' website and download the Bioloid software package. This has a couple of
programs which allow you to do perform some basic functions on the AX-12's and
the CM-5. If you're running the default firmware on your CM5, you can use this
software package to load sequences of positions into the CM5's memory, which it will
then cycle through and move the corresponding servos appropriately.
I have some C code that I use to communicate from my PC (linux) through a USB2Dynamixel unit to some AX-12 servos. I don't see a way to attach it to my post here, but if you PM me, I'll gladly e-mail you a copy of it.