Haobot
September 5, 2017, 5:23pm
35
Hey guys, I’m also trying to use OpenCM9.04 as a USB2Dynamixel. And here I found a solution from horchler/DynamixelQ and tested successfully with AX-12A servos!
/*
* smartTosser.ino
*
* Smart tosser. Read all available bytes from USB serial port and write them directly
* to Dynamixel serial bus. Read all available bytes from Dynamixel serial bus and write
* them directly to the USB serial port.
*
* Actuators must be MX Series actuators. Change the baud rate to DXL_BAUD_1000000 or
* less to handle AX Series actuators or mixed types.
*
* Author: Andrew D. Horchler, horchler @ gmail . com
* Created: 3-22-15, modified: 7-3-15
*/
#include "DynamixelQ.h"
#include "USBprint.h"
void setup()
{
// Start communicating with actuators at 3 Mbps
This file has been truncated. show original
1 Like