VescUart icon indicating copy to clipboard operation
VescUart copied to clipboard

problem sending with setRPM(float) repeatedly at a high rate over UART

Open comes04 opened this issue 1 year ago • 0 comments

Hi there!

I'm using an Arduino to send data over the Serial port to my Vesc (using de <VescUart.h> library and using the setRPM function)

All good with that, the problem comes when i make a script which sends repeatedly the RPM values over Serial to the Arduino and then the Arduino sends it to the Vesc with the VescUart library

This works well if i delay each message from the following one 1,25 seconds or more, less than that (1s for example) it stops spinning sometimes and if I put a delay like 0,5secs or less it just don't spin at all.

I thought that the problem could be the speed of the Arduino so I try first with Arduino MEGA (16Mhz) and then with Arduino DUE (84Mhz) but the results are the same.

Any idea how could i solve this? I would like to send messages every 0.1 or 0,2 secs

Thanks in advance

comes04 avatar Aug 25 '23 16:08 comes04