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

How can i change output Data Rate of Razor imu Sen-10736 #63

Open
saeed10ev opened this issue Nov 9, 2017 · 1 comment
Open

How can i change output Data Rate of Razor imu Sen-10736 #63

saeed10ev opened this issue Nov 9, 2017 · 1 comment

Comments

@saeed10ev
Copy link

i want to use this board in my experiment but for the data analysis purpose i required to high the data rate. how can i do? can any one here to help me out?

@alrevuelta
Copy link

You can take a look at the datasheets of each device to check which registers are in charge of the sampling frequency. Note that these values are the upper bounds:

  • The accelerometer can go up to 3200 Hz.
  • The magnetometer up to 75 Hz.
  • The gyroscope maximum frequency is not that straight forward to calculate. According to the datasheet its calculated as Fs = Finternal/(divider + 1). Using the maximum Finternal value (8 kHz) and the smaller divider (0), so you should be able to sample up to 8 kHz.

Since it could be tricky to go down to bit/register level, I would recommend you to use a different library to read data from the sensors. You can find here the link. It is made specifically for this sensor and the functions are quite easy to use, so you can fix your problem using functions like:

sen10724.setAccDataRate(ADXL345_DATARATE_400HZ)
sen10724.setMagDataRate(HMC5883L_DATARATE_15HZ);

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