Skip to content

[H3LIS331DL] Driver for the H3LIS331DL High-G accelerometer

Raul Radu requested to merge dev-sensor-h3lis331dl into main

Features and excluded features

Implementation of the H3LIS331DL driver. The driver supports:

  • Reading 3-axis data.
  • Setting the Output Data Rate of the sensor (beware that the ODR also sets PowerMode).
  • Setting the Block Data Update.
  • Setting the Full Scale Range of the sensor, thus the sensitivity.
  • Setting the PowerMode to low consumption/normal mode by setting ODR lower than/greater or equal to 50 Hz.

Features that were left out:

  • Interrupt 1 and 2, as both interrupts act like triggers that activate after a certain (customizable) threshold of acceleration is reached and they find no use in the application of the final product.
  • High Pass Filter as it founds no use in the final product.

Just some final notes.

  • The sensor is very noisy at high ODR.
  • The three axis are also offsetted by certain amounts that change based on the Full Scale Range ( see #103 (closed) ).
Edited by Alberto Nidasio

Merge request reports

Loading