Page 1 of 1

Accelerometer data interval

Posted: Mon Feb 17, 2020 11:20 am
by hottwaj
Hi there, I would like to pull off samples from my accelerometer at a rate of 1 new sample every 1ms (i.e. 1000Hz).

From the documentation and API, this appears to be possible e.g. the API says that MinDataInterval is 1

However, the fastest that samples are ever delivered is 8 samples (in bulk) once every 8ms. I really want those samples as soon as they are available, once every 1ms, rather than having to wait for every 8ms for them to be delivered in bulk.

I have also tried a polling approach where I request the current accelerometer value every 1ms, but I find that the value only changes once every 8ms.

Am I doing something wrong, or is the hardware not actually capable of 1sample/1ms, or is there an issue with the phidget library?

I am using the PhidgetSpatial Precision 0/0/3 High Resolution 1043 accelerometer with Python under Linux. I have the latest Phidget library (Phidget22) installed.

Any help/tips appreciated & thanks for the great devices!

Re: Accelerometer data interval

Posted: Tue Feb 18, 2020 11:21 am
by Patrick
Data is delivered over USB every 8ms - there is no way to change this interval.

-Patrick

Re: Accelerometer data interval

Posted: Tue Feb 18, 2020 11:38 am
by hottwaj
Aha, thanks. That's a shame (at least for my intended application).

Appreciate the quick reply though, cheers.