Replies: 2 comments 2 replies
-
Hey, can you attach the code running in the Arduino? thanks |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi Bruno, Thanks for the reply. I now changed how acquire the time, and indeed it makes more sense (more stable ~500Hz acquisition). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using the following script to communicate with Arduino (Mega 2560)
ArduinoExample.zip
Looking at the timestamps, there are two problems.
The first, it seems that the acquisition rate is not stable. That is, the difference between the timestamps fluctuates quite widely between 0.5 ms to 4 ms.
The fluctuation is surmountable. However, the mean difference between timestamps is roughly equivalent to 250 Hz.
Ideally I would want to acquire data at a faster rate (~1000 Hz would be ideal).
I believe the latency comes from Bonsai rather than from Arduino, since lowering the baudrate decreases the sampling rate, but no matter how high the baud rate is it does not go past 250 Hz.
Is there any way to configure the communication in Bonsai to make it more efficient?
Thanks
Liad
Beta Was this translation helpful? Give feedback.
All reactions