"Real Time Control" with roboclaw 2x7
Posted: Mon Dec 03, 2018 2:22 am
Hello,
I would need to control several (12 at this moment) dc motors real-time with closed loop (I mean that I would need to sample the motors' encoders and update the commmands at least 1kHz )and I was wondering if roboclaw can make it, or at least i want to know what is the fastest method to control the roboclaw.
As far as I know in serial mode the highest communication speed is about 1ms so ideally i could send commands to roboclaw 1000 times a minute but this is very ideal case i think.(I think I could reach 500Hz but I would need 1khz)
Or RC mode?
I was thinking what if i would use analog mode just to send analog signal 0-2v or so to roboclaw.
My idea know is that i will buy some analog/digital DAQ board that has several analog outputs to send the computed voltages to roboclaw (or to several roboclaws) which will then move the motors according to that signal, then read the encoders on the DAQ board DI pins.
1. My question is that do you have any data that what is the transition time of the analog mode of the roboclaw, so what is the time it takes to see the changes on pwm output of the FET when analog input changes?
2. what is the fastest way/method I can use to control my dc motor in "real-time"?
Thank you!
I would need to control several (12 at this moment) dc motors real-time with closed loop (I mean that I would need to sample the motors' encoders and update the commmands at least 1kHz )and I was wondering if roboclaw can make it, or at least i want to know what is the fastest method to control the roboclaw.
As far as I know in serial mode the highest communication speed is about 1ms so ideally i could send commands to roboclaw 1000 times a minute but this is very ideal case i think.(I think I could reach 500Hz but I would need 1khz)
Or RC mode?
I was thinking what if i would use analog mode just to send analog signal 0-2v or so to roboclaw.
My idea know is that i will buy some analog/digital DAQ board that has several analog outputs to send the computed voltages to roboclaw (or to several roboclaws) which will then move the motors according to that signal, then read the encoders on the DAQ board DI pins.
1. My question is that do you have any data that what is the transition time of the analog mode of the roboclaw, so what is the time it takes to see the changes on pwm output of the FET when analog input changes?
2. what is the fastest way/method I can use to control my dc motor in "real-time"?
Thank you!