micropython-IMU / micropython-mpu9x50

Drivers for InvenSense inertial measurement units MPU9250, MPU9150, MPU6050
MIT License
259 stars 81 forks source link

How fast we can read data from the sensor #18

Closed nursanamar closed 4 years ago

nursanamar commented 4 years ago

A lot of example that i saw always using the sleep function on each reading, is it possible to not using the sleep function?, and if it is necessary to use, what is the shortest time to sleep?.

BTW, I am using mp6050 with class MPU6050 in imu.py file

peterhinch commented 4 years ago

The delays are largely to limit the rate at which data scrolls off the screen. The maximum rates that make sense depend on the low pass filter settings you choose. See the docs.

nursanamar commented 4 years ago

Thanks for the response!

So, by making the filter_range lower give me a lower delay but also increased the noise, right?

peterhinch commented 4 years ago

Yes. You may need to consider the effects of vibration which (depending on application) can be huge.

nursanamar commented 4 years ago

Thanks for your time I really appreciate it.

Closing the issue