This may be a simple problem, but I have limited programming experience so please keep responses kind.
I have some Dynamixels and up to this point I have been playing with them using a laptop running PUREBASIC connected via a U2D2. I have defined over 30 command strings that I now want to implement on the R4. The PUREBASIC program reads an array and writes the output to the serial port connected to the motors.
I am now trying to duplicate the functions using an UNO R4 WiFi and attached Dynamixel-shield. Some like:
LEDOn:
Data.a $FF, $FF, $05, $04, $03, $19, $01, $DD
PrintN ("LEDOn")
WriteSerialPortData(0, ?LEDOn, ?LEDOnEnd - ?LEDOn)
would be easy to duplicate using the shield libraries, However some like:
Swish1:
Data.a $FF, $FF, $FE, $22, $83, $1E, $04, $02, $31, $04, $50, $00, $03, $0C, $06, $50, $00, $04, $0C, $06, $50, $00, $0A, $0C, $0A, $50, $00, $0B, $0C, $06, $50, $00, $0C, $0C, $06, $50, $00, $9D
would be very time consuming to decode (I should have kept notes) and implement (I’m almost 70 and I don’t know if I would last that long) using the available libraries. I used the LEDOn, and similar LEDOff strings for testing and have tried as many things as I could find reference to, but none have worked.
I am using an MX-28, UNO R4 WiFi and Dynamixel shield.
Does anyone have a suggestion on how to send the command strings to the Dynamixels without using the libraries?
Thank you in advance for any assistance you can provide.