Hi Everyone,

So I am trying to have an arduino mega send a serial packet to an arbotix-m that has the ArmLinkSerial sketch uploaded to it.

I am trying to make this as simple as possible for now so I am just wanting to send a premade packet from the examples on the website.

This is what I have so far:

Code:
void setup(){
  Serial.begin(9600);
  Serial1.begin(38400);
}

void loop() {
 
  if (Serial1.available()){
    Serial.print("Writing to Robot");
  
  
    Serial1.write(0xff);
    Serial1.write(0x0);
    Serial1.write(0x0);  
    Serial1.write(0x0);  
    Serial1.write(0x0);  
    Serial1.write(0x0);  
    Serial1.write(0x0);  
    Serial1.write(0x0);  
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x0);
    Serial1.write(0x30);
    Serial1.write(0xcf);
    
    delay(10000);
  }
 
}
The Mega is then attached to the arbotix like this:

http://imgur.com/a/Y38DS

I am really new to the arduino and robotics in general, any help would be really really appreciated.

Thanks!
-Kelly