Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerometer and gyroscope sensitivity #47

Open
ambiayhm opened this issue Apr 14, 2022 · 1 comment
Open

Accelerometer and gyroscope sensitivity #47

ambiayhm opened this issue Apr 14, 2022 · 1 comment

Comments

@ambiayhm
Copy link

ambiayhm commented Apr 14, 2022

Hello, I would like to know the default sensitivity for both the accelerometer and gyroscope in this library and if possible would want to change it. Thank you so much

(full scale ranges)
acceleration: ±2g ±4g ±8g ±16g
rotation: ±250°/s ±500°/s ±1000°/s ±2000°/s.

I'm thinking it might be ±2g and ±500°/s but I might be wrong.

@ASionville
Copy link

ASionville commented Apr 9, 2023

I am interested in having the ability to modify these too.
Actually I am looking for ±16g of range

I think it might have something to do with thoses lines at the beginning of MPU6050_tockn.cpp :

  writeMPU6050(MPU6050_SMPLRT_DIV, 0x00);
  writeMPU6050(MPU6050_CONFIG, 0x00);
  writeMPU6050(MPU6050_GYRO_CONFIG, 0x08);
  writeMPU6050(MPU6050_ACCEL_CONFIG, 0x00);
  writeMPU6050(MPU6050_PWR_MGMT_1, 0x01);

I tried changing the 0x00 of MPU6050_ACCEL_CONFIG to 0x03 as in the documentation ±16g is for AFS_SEL=3
(Page 13 of this document)
But it did nothing, the values are saturated when getting out of [-2,2]

If you have more information about it please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants