[SDC2150] Help to understand commands to send

11 years 6 months ago #29526961 by marcusbarnet
I\'m trying to control my SDC2150 2x20A controller via USB under Ubuntu; i can successfully send commands to the controller but i\'m not able to understand what kind of string command i have to send in order to let motors move forward and to reverse their rotation direction.

At the moment, in the sample program, i\'ve seen that there is this command:
device.SetCommand(_GO, 1, 1))

However, when i use this, motors just move forward for few seconds and then stop.

Can you help me to understand what kind of commands i have to send, please?

Is there any documentation about the protocol to use?
I\'ve read the text file included in the libraries, but it wasn\'t very clear for me.

Thanks a lot!

Please Log in or Create an account to join the conversation.

11 years 6 months ago #29526965 by roboteq
This is because of the watchdog.

If no new command is received within 1000ms (factory default), the motors stop.

You can either change/disable the watchdog, or repeat your commands within the timeout delay

Please Log in or Create an account to join the conversation.

11 years 6 months ago #29526967 by marcusbarnet
Thanks for your reply!

I\'d like to disable to watchdog, what i should do to do this?

It\'s an operating system feature, or i have to disable it directly on the controller firmware?

Can i use a while loop and always send the same command?

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.073 seconds