Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
comes04 opened this issue Aug 25, 2023 · 0 comments
Open

Comments

@comes04
Copy link

comes04 commented Aug 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant