RoboteQ MDC2230 Commands

4 years 1 month ago #29532466 by JHolov295
We are trying to control the motor controller from a Raspberry PI. We currently have that connection working with communication from the Tx and Rx pins from the Pi to the RS232. We are currently though having issues with turning on both motors at the same time. Looking at the runtime commands it seems that they are all specific to one channel. Is there a way to control both channels with one command.

Thank You

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

4 years 1 month ago #29532468 by blake
Replied by blake on topic RoboteQ MDC2230 Commands
You will simply need to specify which motor channel you want to send the command to. The syntax for sending a runtime command (in open loop) is:

!G cc nn, where cc=motor channel and nn=command value.

For example:

!G 1 500 : In Open Loop Speed mode, applies 50% power to motor 1

!G 2 500 : In Open Loop Speed mode, applies 50% power to motor 2

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

Moderators: tonysantoni
Time to create page: 0.143 seconds