cancel
Showing results for 
Search instead for 
Did you mean: 

LSM9DS1 Sensor Fusion.

bhavesh
Associate II
Posted on March 21, 2017 at 12:28

Hi,

Recently I worked on LSM9dS0, 

LSM9dS1 and LM303D sensor.

Now, I have LSM9dS1 raw data from Accelerometer, Gyroscope & Magnetometer. Project is based on car driving safety system. So I want to know how can I calculate the Acceleration from LSM9sS1 in terms of Km/hr.

Later, I want to detect some other things also like Accident detection, Rash Driving, Car tow, Harsh braking using sensor fusion application.

Please share your opinion. 

Thank you.

#lsm9ds1 #sensor-fusion
4 REPLIES 4
Miroslav BATEK
ST Employee
Posted on September 27, 2017 at 16:18

Accelerometer measures acceleration, so to get the information about the velocity you have to integrate the value.

ST provides sensor fusion library MotionFX in

https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software-expansion/x-cube-mems1.html

software package.
Miroslav BATEK
ST Employee
Posted on December 22, 2017 at 17:20

The sensor fusion library is not dependent on specific sensor. You can create your own project which will read accelerometer, gyroscope and magnetometer data from LSM9DS1 a pass them to the sensor fusion library which will calculate the outputs.

LSM9DS1 is not directly supported in X-CUBE-MEMS1 package, and won't be in the future, because it is quite old sensor. But you can use it as example or template and add LSM9DS1 by yourself.

For best results I would recommend you to use modern sensor like LSM6DSL + LIS2MDL.

Posted on December 22, 2017 at 17:10

I recently checked the X-CUBE-MEMS1 library, but it seems that LSM9DS1 is not one of the supported sensor. Is there an easy way to add support to this sensor? Or would the support be added officially in near future? I am a student very new in this aera.

Posted on December 23, 2017 at 21:41

Thank you.