# Issue with H3LIS331DL data rate

**URL:** <https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718>\
**Category:** IMU & Motion\
**Created:** [January 21, 2020, 7:09pm UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718 "2020-01-21T19:09:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amishah526](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@amishah526](https://community.sparkfun.com/u/amishah526)\
**Post date:** [January 21, 2020, 7:09pm UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718/1 "2020-01-21T19:09:57Z")

</div>

Hello,

I am working with H3LIS331DL (accelerometer sensor) with the raspberry pi. On the datasheet it states that the data rate is supposed to be up to 1000 Hz, but I am only getting 200Hz. The connections I have to the raspberry pi 0 are:

-SCL to GPIO3 (pin 5)

-SDA to GPIO2 (pin 3)

- 3.3V (pin 1)

-GND (pin 9)

Please let me know if you need any additional information.

Thank you

---

<div class="post-metadata">

**Author:** ![TS-Chris](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-chris/32/6057_2.png) [@TS-Chris](https://community.sparkfun.com/u/TS-Chris)\
**Post date:** [January 21, 2020, 8:30pm UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718/2 "2020-01-21T20:30:48Z")

</div>

The hardware is capable of 1000Hz, but you may need to do some work to get that,

You do have to configure the data rate by setting the ODR bit in order to get 1000Hz but I don’t have any information for you on how to do that on a Pi. (not sure what the default rate is) You might double check that you have the rate set correctly. Another thing that could be slowing you down is your code, or how fast the I2C bus is running.

---

<div class="post-metadata">

**Author:** ![Alex\_G](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Alex\_G](https://community.sparkfun.com/u/Alex_G)\
**Post date:** [March 12, 2020, 3:21am UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718/3 "2020-03-12T03:21:34Z")

</div>

Hello, I also have this problem.

I am running H3LIS331DL with the power mode set to normal and a data rate (ODR) of 1000Hz, through a Arduino Uno. However, on the serial monitor, the highest data rate I can see (using a baud of 2,000,000) is about 250Hz.

Any ideas how I can get the full data rate?

---

<div class="post-metadata">

**Author:** ![liquid.soulder](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/liquid.soulder/32/6069_2.png) [@liquid.soulder](https://community.sparkfun.com/u/liquid.soulder)\
**Post date:** [March 12, 2020, 2:14pm UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718/4 "2020-03-12T14:14:15Z")

</div>

Maybe the power mode needs to be set to ‘low power’ or something like that? I am not familiar with that sensor but this was the case for the LIS3DH

[https://forum.sparkfun.com/viewtopic.php?f=83&t=52403](https://forum.sparkfun.com/viewtopic.php?f=83&t=52403)

---

<div class="post-metadata">

**Author:** ![Alex\_G](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Alex\_G](https://community.sparkfun.com/u/Alex_G)\
**Post date:** [March 15, 2020, 2:53am UTC](https://community.sparkfun.com/t/issue-with-h3lis331dl-data-rate/38718/5 "2020-03-15T02:53:12Z")

</div>

Thanks for the help, I tried on all of the power settings and it always just outputs 250Hz on the serial monitor. Bizarrely this data rate is not one of the available ones for the sensor, only 50Hz, 100Hz, 400Hz and 1000Hz

Don’t suppose you have any other ideas?
