How to set the Accelerometer Sensor up to 8 g

  • Replies:0
TolgaT
  • Forum posts: 1

May 19, 2015, 8:23:36 PM via Website

The Accelerometer Sensor is set to a Range of 2 - 4 g on most devices. There is no option to turn it up to 8 or 16 G, which my sensor and most others are capable of. I found some Information but cant get any further how to achieve this.

I have the LIS3DSH Sensor in my Xiaomi Device.

There is a manual which states that in the configuration .hal file you can set /* ACCELEROMETER SENSOR */

define SENSOR_ACC_LABEL “LSM303DLHC 3-axis Accelerometer“

define SENSOR_ACC_INCLUDE_FILE_NAME “lsm303dlhc.h“

define SENSOR_DATANAME_ACCELEROMETER LSM303DLHC_ACC_DEV_NAME

define ACCEL_DELAY_FILE_NAME “pollrate_ms“

define ACCEL_ENABLE_FILE_NAME “enable_device”

define ACCEL_RANGE_FILE_NAME “range”

define ACCEL_MAX_RANGE 16*GRAVITY_EARTH

define ACCEL_MAX_ODR 400

define ACCEL_POWER_CONSUMPTION 0.033f

define ACCEL_DEFAULT_FULLSCALE 4

But i have no idea how to do this.

I can not Link to the manual since i am a new user but you can google for:

AN4156
Application note

I would be really glad if someone knows the way to go, or point me in the right direction for further research...

Reply