Communication & Speed Mode
6 years 4 months ago #29532561
by giantpt
Communication & Speed Mode was created by giantpt
Hi,
I have a couple of doubts about the controllers.
1- I would like to use an arduino to control 2 robot's via RS232 like motor A and B separately, do I have to have 2 serial ports on the arduino, one to each of the controller or is there a way to have just one serial signal connected in series and control a specific controller using something like an ID?
If the way to achieve this is to use CAN I will prefer to use 2 independent serials because CAN is out of my knowledge.
2- I know that I can use serial to control the roboteq and also to get telemetry from it at the same time using request for specific parameters or readings, what I don't know if there is a flux limit to it, I mean, if I just can command and ask for a limited amount of telemetry parameters in order to guarantee that there are no losses or delays on the motor command.
3- These controllers will run 2 winches which have weight on the rope end, my question is... when the motors are stopped, does the controller gives tension to the motores in order to prevent them to "slide" with the static weight that is pulling the rope on the other end? Or do I have to think about using some kind of brake to do the job?
Well, that's all for now.
Thank you in advance
Kind regards
I have a couple of doubts about the controllers.
1- I would like to use an arduino to control 2 robot's via RS232 like motor A and B separately, do I have to have 2 serial ports on the arduino, one to each of the controller or is there a way to have just one serial signal connected in series and control a specific controller using something like an ID?
If the way to achieve this is to use CAN I will prefer to use 2 independent serials because CAN is out of my knowledge.
2- I know that I can use serial to control the roboteq and also to get telemetry from it at the same time using request for specific parameters or readings, what I don't know if there is a flux limit to it, I mean, if I just can command and ask for a limited amount of telemetry parameters in order to guarantee that there are no losses or delays on the motor command.
3- These controllers will run 2 winches which have weight on the rope end, my question is... when the motors are stopped, does the controller gives tension to the motores in order to prevent them to "slide" with the static weight that is pulling the rope on the other end? Or do I have to think about using some kind of brake to do the job?
Well, that's all for now.
Thank you in advance
Kind regards
Please Log in or Create an account to join the conversation.
6 years 4 months ago #29532562
by blake
Replied by blake on topic Communication & Speed Mode
1) Depending on the power specs of your motors, it may be possible to just use a dual channel controller. That way you would only need a single serial connection between your Arduino and the motor controller, and then both motors could be controlled independently of one another.
Otherwise, if you need to use more than one controller, you will need to either establish two serial connections (easily done with Arduino Mega which has multiple serial i/os) or by estabilshing a CAN network between the controllers. You could use our RoboCAN protocol which is very simple and doesn't require the same amount of knowledge as other CAN protocols.
2) View the Telemetry String specifics on page 284 of our user manual. You can have strings up to 48 characters
3) You can use a closed loop position mode to hold the motor at a specified position. This would require a sensor such as an encoder (brushed motor) or hall sensors (brushless motor). That being said, as with any application such as this a mechanical brake is still recommended for additional safety.
Otherwise, if you need to use more than one controller, you will need to either establish two serial connections (easily done with Arduino Mega which has multiple serial i/os) or by estabilshing a CAN network between the controllers. You could use our RoboCAN protocol which is very simple and doesn't require the same amount of knowledge as other CAN protocols.
2) View the Telemetry String specifics on page 284 of our user manual. You can have strings up to 48 characters
3) You can use a closed loop position mode to hold the motor at a specified position. This would require a sensor such as an encoder (brushed motor) or hall sensors (brushless motor). That being said, as with any application such as this a mechanical brake is still recommended for additional safety.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #29532563
by giantpt
Replied by giantpt on topic Communication & Speed Mode
Hi Blake, thank you for your support,
The motors need to be far away from each other, about a yard or so, so, I'll try to use the Mega to connect them.
For the motor brake, yes, I am using brushless sensored motors but I was thinking about it and I think the best way is to use worm gears, that way the reel will not tranfer the force into the motor and it will only spin if the motor spins.
I'll check the manual
Thank you for the tips
Cheers
The motors need to be far away from each other, about a yard or so, so, I'll try to use the Mega to connect them.
For the motor brake, yes, I am using brushless sensored motors but I was thinking about it and I think the best way is to use worm gears, that way the reel will not tranfer the force into the motor and it will only spin if the motor spins.
I'll check the manual
Thank you for the tips
Cheers
Please Log in or Create an account to join the conversation.
6 years 4 months ago #29532564
by blake
Replied by blake on topic Communication & Speed Mode
Be advised that our controllers use RS232 communication while Arduino uses TTL, in order for them to be able to communicate you'll likely need to use an
RS232 - TTL adapter.
Please Log in or Create an account to join the conversation.
6 years 4 months ago - 6 years 4 months ago #29532565
by giantpt
Replied by giantpt on topic Communication & Speed Mode
I do have plenty of those and I use Roboteq controllers with arduino since 2011 but now I am trying to go further with them, thats why I had those doubts.
Normally my setup is like this:
Arduino > TTL to Serial > Serial to fiber optics > Roboteq... in order to have the controller far away from me yet with a stable communication.
Here you can watch the most complex setup I did with RoboteQ controller and fiber optics
youtu.be/HwaPOpTYEq4
Thank you btw.
Cheers
Normally my setup is like this:
Arduino > TTL to Serial > Serial to fiber optics > Roboteq... in order to have the controller far away from me yet with a stable communication.
Here you can watch the most complex setup I did with RoboteQ controller and fiber optics
youtu.be/HwaPOpTYEq4
Thank you btw.
Cheers
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532573
by Erik
Replied by Erik on topic Communication & Speed Mode
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.066 seconds