Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

problem with an AX-12+

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
17 postsPage 2 of 21, 2
17 postsPage 2 of 21, 2

Post by JonHylands » Fri Nov 23, 2007 2:38 pm

Post by JonHylands
Fri Nov 23, 2007 2:38 pm

It would be possible, but you would have to be very careful to avoid writing to the bus while a device was responding.

If you wanted to ensure that no device responded, you could just send SYNC_WRITE commands.

Here are byte strings for three different SYNC_WRITE commands, which set the servo with ID=1 to position 0, 511, and 1023 respectively:

Code: Select all
0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0x00 0x00 0x52

0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0xFF 0x01 0x52

0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0xFF 0x03 0x50


- Jon
It would be possible, but you would have to be very careful to avoid writing to the bus while a device was responding.

If you wanted to ensure that no device responded, you could just send SYNC_WRITE commands.

Here are byte strings for three different SYNC_WRITE commands, which set the servo with ID=1 to position 0, 511, and 1023 respectively:

Code: Select all
0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0x00 0x00 0x52

0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0xFF 0x01 0x52

0xFF 0xFF 0xFE 0x09 0x83 0x1E 0x04 0x01 0xFF 0x03 0x50


- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by elvisss » Sun Nov 25, 2007 3:55 am

Post by elvisss
Sun Nov 25, 2007 3:55 am

Thank you very much for your help, i'm going to try it!
Thank you very much for your help, i'm going to try it!
elvisss
Robot Builder
Robot Builder
Posts: 9
Joined: Fri Nov 16, 2007 2:05 pm

Previous
17 postsPage 2 of 21, 2
17 postsPage 2 of 21, 2