Obtaining the on/off status of the Roboteq Controller programmatically

5 years 1 month ago - 5 years 1 month ago #29531059 by Naman91
Hi,
I am using this roboteq controller and I have an Arduino Mega which sends the PWM values to the controller which sends it to the motors. I want to know if there is a way to find out the on/off status (if the roboteq is getting power or not) of the controller programmatically (or the emergency stop to which it is connected) so that I can use that information in the arduino?

Thanks in advance.
Naman

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

5 years 1 month ago #29531060 by TechSupport
You can query the battery status.

?V

Anytime you are connected via serial, you can send ?fid and it will report back the FID info. This will tell you whether or not it is seeing any type of serial data; also meaning controller is on. Battery wise, send ?V.

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

5 years 1 month ago #29531068 by Naman91
Thanks for the reply!
Just to be sure, If I send ?V serially to the roboteq controller what kind of information will I get back and can I just read that information serially?

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

5 years 1 month ago #29531069 by TechSupport
You read it back serially.

It should return 3 values. Controller volts, vmot battery volts, and 5V out; though not directly in that order as written here.

See user manual for more info.

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

5 years 1 month ago #29531070 by Naman91
Yes..Thanks! I am able to do that but I have one more problem. I am already sending the PWM values for the motors from the arduino to the Roboteq using the Serial connection. How can I send ?V and read battery status in parallel using the same serial setup? or How can I set up multiple serial communication between Arduino and Roboteq so that I can send PWM values for motors using one and send ?V and read battery status using the other?

Please let me know.
Thanks

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

5 years 1 month ago #29531071 by TechSupport
You use the _ function as it acts a carriage return.

So if you are asking for say ?V 1 and ?A1 then it is ?V 1_?A 1

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

Moderators: tonysantoni
Time to create page: 0.097 seconds