Increasing Polling Rate of Heartrate Sensor #6571
Replies: 1 comment
-
Posted at 2024-01-25 by @fanoush 10ms is a bit unrealistic, it is too slow for that. Maybe even if you would remove the
to enable JIT compiler, but still - printing (probably over bluetooth?) is slow Posted at 2024-01-25 by @fanoush Actually it is me being too pesimistic. Just tried and the function call takes about 1ms (when it prints it is about 2ms) and it prints quite infrequently so when I put it into setInterval(f,10) it seem to manage the printing even over bluetooth Posted at 2024-01-25 by @gfwilliams It seems to work reasonably here? I've seen it slow down a bit but moving it around seems to restart the readings. How long does it take for readings to stop? And you're sure it's not just stopping because it detected it's not being worn? I should also add that With |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-01-24 by bponce02
I've been wanting to increase the polling rate of the heart rate sensor but trying to increase the polling rate to 10ms results in the timing between the readings increasing and eventually the program will stop.
Here is the reference of the options to increase the polling rate and the code we are running.
http://www.espruino.com/ReferenceBANGLEJS2#l_Bangle_setOptions
Beta Was this translation helpful? Give feedback.
All reactions