Page 1 of 1

SensorTag speed up

Posted: 03:34, 09 Sep 2016
by Barrett
I made a bicycle speedometer, but the magnet passes the SensorTag too quickly. Some of the samplings are missed at 1/10 of a second sensor reads.
How can I change the samplings to 1/100 of a second?

The frequency of sampling Sensortag is in tisensortag-ble.js, line 767. It originally was 1 second:
new Uint8Array([periodValue / 10]),

I made it 1/10 of a second:
new Uint8Array([10]),

Where is the periodValue defined, anyway?