by JonHylands » Fri Nov 23, 2007 2:38 pm
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