Skip to content

Setting accel_range and gyro_scale #32

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

Open
nmaas87 opened this issue Nov 5, 2021 · 0 comments
Open

Setting accel_range and gyro_scale #32

nmaas87 opened this issue Nov 5, 2021 · 0 comments

Comments

@nmaas87
Copy link

nmaas87 commented Nov 5, 2021

Dear all,
I just got two short questions regarding accel_range and gyro_scale.
a) Is it correct to set the values like that initially, or do I need to reset the sensor afterwards in some fashion?

import board
import busio
import adafruit_lsm9ds1
lsm9ds1 = adafruit_lsm9ds1.LSM9DS1_I2C(i2c)
lsm9ds1.accel_range = adafruit_lsm9ds1.ACCELRANGE_16G
lsm9ds1.gyro_scale = adafruit_lsm9ds1.GYROSCALE_2000DPS

b) Can I, at any time, set the range/scale to a new value like this, or do I need to reset/give another command to the sensor?

lsm9ds1.accel_range = adafruit_lsm9ds1.ACCELRANGE_2G
lsm9ds1.gyro_scale = adafruit_lsm9ds1.GYROSCALE_245DPS

Thanks a lot for your help!

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

1 participant