- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Obtaining the on/off status of the Roboteq Controller programmatically
Obtaining the on/off status of the Roboteq Controller programmatically
7 years 9 months ago - 7 years 9 months 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
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.
7 years 9 months ago #29531060
by TechSupport
Replied by TechSupport on topic Obtaining the on/off status of the Roboteq Controller programmatically
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.
?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.
7 years 9 months ago #29531068
by Naman91
Replied by Naman91 on topic Obtaining the on/off status of the Roboteq Controller programmatically
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?
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.
7 years 9 months ago #29531069
by TechSupport
Replied by TechSupport on topic Obtaining the on/off status of the Roboteq Controller programmatically
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.
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.
7 years 9 months ago #29531070
by Naman91
Replied by Naman91 on topic Obtaining the on/off status of the Roboteq Controller programmatically
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 let me know.
Thanks
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29531071
by TechSupport
Replied by TechSupport on topic Obtaining the on/off status of the Roboteq Controller programmatically
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
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
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Obtaining the on/off status of the Roboteq Controller programmatically
Time to create page: 0.071 seconds