by slomobile » 16 Mar 2024, 17:43
As someone that has personally built arduino based robots from power wheelchairs, using Rnet for a robotics platform is probably not a rabbit hole you want to go down without very good reason. Rnet is easy to control for people. It is not easy to control for microcontrollers.
It does not have closed loop control. Open loop only unless you find the rare Rnet Encoder module, and encoders, and can somehow figure out how to use it.
If you figure that one out, please let me know, I haven't.
Rnet does not really know how fast its motors are turning. It estimates, and the accuracy of those estimates vary a lot. It is very hard to program an accurate turn in varying terrain because the motors will wind up and run on longer in rough terrain. So you need to use a gyro to modify your inputs because you do not have direct access to the outputs. This makes for a slow response and overshoot. Closed loop control cannot reliably be added on top of Rnet because Rnet is not really deterministic.
If all you want to do is make a teleop (remotely drivable by a human observer) Rnet machine, that isn't too difficult. Avoid the dongle, use CAN2Rnet, or a few other ways I can show you if you are interested.
But if you plan to do anything that requires autonomous driving and Rnet dongle, there are motor controllers far better for closed loop robotics that are cheaper than the dongle and will interface easily over serial, or PWM, documented CAN, SMbus, etc...