Hello,
I'm working with Dynamixel XL-320 servos, which are controlled with serial protocols. So, I wire my Arduino and the servo like this:
(The Arduino is powered using the jack connector at 7.5V)
and I send to the Arduino the following code:
#include "XL320.h"
#define SERVO_BAUD_RATE 9600
// --- Robot definition
XL320 robot;
char rgb[] = "rgbypcwo";
void setup() {
// --- I/O config
pinMode(13,OUTPUT);
// --- Begin serial communication
Serial.begin(SERVO_BAUD_RATE);
robot.begin(Serial);
delay(100);
}
void loop() {
digitalWrite(13,LOW);
// --- Turn on motor LED
robot.LED(0xFE, &rgb[random(0,7)]);
// --- Control
delay(500);
digitalWrite(13,HIGH);
delay(500);
}
The code uploads perfectly on the board and it starts working: the board's led blinks and the TX led also does.
I know that, if a want to communicate with the servo I'll have to use pin 1 and I won't be able to do it until the USB bootloader is disconnected....So, I unplug the usb, I connect my pin 1 to the servo, I press Reset and....nothing happens
The led of the board (the #13) blinks correctly, but the TX led remains off all the time...
Thank!!!
