imxieyi / esp32-i2c-mpu6050

ESP32 I2C MPU6050 driver for esp-idf
31 stars 16 forks source link

Maximum data refresh rate is about 250Hz??? #4

Open rtek1000 opened 6 years ago

rtek1000 commented 6 years ago

Datasheet says (page 17):

Gyroscope Sample Rate, Fast: 8 kHz

Accelerometer Sample Rate: 1 kHz

What if we read only what matters?

For example, if we read all the data, it will take a longer time than reading only one axis!

imxieyi commented 6 years ago

Of course you can read only the data you need. According to datasheet, MPU60X0's maximum SCL clock is 400khz, although ESP32 supports maximum of 2mhz. In my practice when reading all the data the data rate is at most 250hz.

rtek1000 commented 6 years ago

Yes, but to say it in a few words may be enough for the unsuspecting to discard the use of this sensor, which is why I reported the case.