IoT RedBoard ESP32 Development using uart2 / serial 2 to roboclaw

I’m trying to communicate with a roboclaw (RoboClaw 2x15A Motor Controller) motor controller using packet serial (their lib). Using pins 1 & 3 I can send control cmds, but no data back. I try to switch to uart2 (16 & 17) / serial 2 and i get no response at all. Any ideas?

UART2 not working is usually a coding error…make sure you changed all references to the correct bus name for the IoT

As for why you aren’t seeing RX info…it looks like it could be like 20 things after skimming the data sheet…baud rate, control mode, etc…I’d take a good half hour and ensure everything is in accord https://downloads.basicmicro.com/docs/roboclaw_user_manual.pdf

You might want to try 1x board with standard serial to begin with, or using a PC and their motion studio if that’s an option to get the different control modes confirmed to be working as expected

And just to be sure: you do have TX from the roboclaw board going to RX on the IoT?

Control works, tx from the roboclaw doesnt. The report from the read says not valid. Trying uart2 figuring that an unused serial channel may help. I’ve checked and reread the manual multiple times.

…does it work in the other modes? Via PC/motion studio?

Yeah I can get feedback in motion studio on encoder counts and speed… However rated no-load speed is suppose to be 6000 rpm, it reports 3000. btw https://www.gobilda.com/5203-series-yellow-jacket-planetary-gear-motor-19-2-1-ratio-24mm-length-8mm-rex-shaft-312-rpm-3-3-5v-encoder/

BTW, also did a loop back test last week on the pins between the two quarts.

Alrighty - I’d try testing some other device/sensor on the same pins you are attempting to use on the IoT to confirm you are getting data in/out (and help isolate the issue)

Do you have a different MCU laying around by chance?

Yep, 1&3 and 16&17. And a Red Board qwic, and probably a couple of several year old uno’s.