Increase Sampling Frequency of Grove Sensors

Hi all,

I have three sensors attached to my GrovePi zero (a current sensor, an acceleration sensor & a loudness sensor). However, those sensors have an insufficient sampling frequency. I wrote a python script and they are all sampling in independent threads to speed up things. Is there a possibility to further increase sampling frequency?

Right now I get between 60 (analog) and 120 (I2C) data points per second when they are all sampling simultaneously.

I appreciate any help I can get on this topic :).

Hi @christoph-loy,

Unfortunately, the I2C bus is a bit limited.

I guess you could try increasing the I2C’s frequency from 100kHz to 400kHz, which would quadruple the speed. In order to do that, you have to do a couple of changes on your Pi. This is not related to the GrovePi hardware, as the master (the Raspberry Pi) is responsible for the clock rate of the signal.

Though I’m not sure if increasing the speed would create timing issues on a GrovePi. I think some tests are required.

Thank you!