Beginner here, looking to implement UART communication with an stm32 microcontroller for a quadruped robot. I have a few questions:
What kind of control bandwidth could I reasonably attain through UART? My control rate on the stm is 1 kHz, would I be able to read the motor position and velocity and send a corresponding command in 1 ms, and if not might I be able to over USB?
Is there an existing workaround to using Arduino.h on non-Arduino microcontrollers? I’m guessing I just need to find an open source copy of the Arduino source code and include it somehow?