Using multiple roboclaws with an Arduino
Posted: Wed Jul 07, 2021 6:57 am
So for a project I am working on I am using two 2x7A motor controllers in conjunction with an Arduino Due. Each roboclaw has two motors on it and I have encoders attached for each motor. I've read the tutorial for the standard serial bus operation with arduino tutorial. With that tutorial, it shows how to just run the motors and I would also like to know the speeds. Is there a way for the roboclaw to send the speed information back to the arduino?
I've used the roboclaw library before in the arduino ide, so I know that there is the ReadSpeedM1 or M2 command. My only concern is that this uses the address of the roboclaw, and since both roboclaws are using the same address this command wouldn't work as intended.
I've used the roboclaw library before in the arduino ide, so I know that there is the ReadSpeedM1 or M2 command. My only concern is that this uses the address of the roboclaw, and since both roboclaws are using the same address this command wouldn't work as intended.