I'm using an Arduino to send data over the Serial port to my Vesc (using de 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
Hi there!
I'm using an Arduino to send data over the Serial port to my Vesc (using de 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