Community
cancel
Showing results for 
Search instead for 
Did you mean: 
재박2
Beginner
951 Views

Galileo Gen2 Dynamixel Control

Jump to solution

I'd like to control Robotis Corp's Dynamixel.

The Code ls

void setup(){

Serial.begin(1000000);

}

void loop()

{

//Packet_Baudrate(207);

Packet(0xFE, 600);

delay(1000);

Packet(0xFE, 400);

delay(1000);

}

void Packet( unsigned char ID, unsigned int Angle)

{

unsigned char Check_Sum, Header = 0xFF;

Serial.write(Header);

Serial.write(Header);

Serial.write(ID);

Serial.write(0x05); // length

Serial.write(0x03);// instruction

Serial.write(0x1E); // address

Serial.write(Angle);// value1

Serial.write(Angle>>8);//value2

Check_Sum = ~(ID + 0x05 + 0x03 + 0x1E + Angle + (Angle>>8));

Serial.write(Check_Sum);

}

This cord works really good at Arduino Uno, But It doesn't work at Galileo.

How can I Solve it?

1 Solution
Diego_V_Intel
Employee
69 Views

Hello ParkJaeHyun,

If you want to send serial data through pins 0 and 1, then you should set the serial object as Serial1 instead of Serial. Try changing the serial object Serial to Serial1, and test the code again.

Regards,

Diego.

View solution in original post

1 Reply
Diego_V_Intel
Employee
70 Views

Hello ParkJaeHyun,

If you want to send serial data through pins 0 and 1, then you should set the serial object as Serial1 instead of Serial. Try changing the serial object Serial to Serial1, and test the code again.

Regards,

Diego.

View solution in original post

Reply