cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH12 acc calibration how to enable

Victor3
Associate

Hi Everyone, excuse me

I have developed android 9 system using imx6 motherboard.

after finished HAL integrated due to calibration needed.

how can I enable LIS2DH12 acc calibration function

I can see the STMems_Android_Sensor_HAL_Input-STMems_Android_Sensor_HAL_Input\AccelSensor.h have define

below

#if (ACCEL_CALIBRATION_ENABLE == 1)

extern "C"

{

#include "STAccCalibration_API.h"

};

#endif

but I can not find any STAccCalibration_API.h file

Does anyone know it?

thx

2 REPLIES 2
Eleon BORLINI
ST Employee

Hi @Victor​ , the file called in that code is unfortunately not open source. Basically you have to install the calibration library for the accelerometer in the <HAL>/lib directory, and this .zip file is released by ST under LUA (License User Agreement) signature. You can contact an STMicroelectronics sales office and representatives for further information at this link. Regards

Hi. I am using this sensor to measure frequency of vibration and when testing with a 100Hz frequency, data from one sensor corresponds to exactly 100Hz while data from other sensors corresponds to 102Hz or even 108Hz. I believe this could be happening because zero-g offset level changes due to physical strain. Is there such a calibration library for the C driver so that consistent performance is achieved across different sensors?