Hi,
I have been trying to program the LSS Smart servo motors directly from MATLAB and was successfully sending commands/ position/motion to the servo with the following code:
fprintf(s, sprintf(’#%d%s%d’, 1, ‘D’, 0)); %Position Motor1 to 0
fprintf(s, sprintf(’#%d%s%d’, 254, ‘LED’, 1)); % Turn LED to Red
fprintf(s, sprintf(’#%d%s%d’, 254, ‘CSD’, 30)); %Configure max speed to 30deg/sec
However, I have tried multiple attempts to request a query from the motor to check its Current but the error says format incorrect.
I have also tried the code provided in this thread
provided by khaled but still would not work.
Any help provided would be appreciated, this is a project for my final year dissertation. Thank you.