Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Bad lsm9ds1... are these values is this normal? #13

Open
stefanvladvoinea opened this issue Jun 5, 2019 · 0 comments
Open

Bad lsm9ds1... are these values is this normal? #13

stefanvladvoinea opened this issue Jun 5, 2019 · 0 comments

Comments

@stefanvladvoinea
Copy link

stefanvladvoinea commented Jun 5, 2019

First of all thanks for all the hard work and effort to provide all these drivers.
In in the following setup:

  • raspberry pi 3
  • android things
  • lsm9ds1

The accelerometer values in the device reference that I'm reading are -0.45, -0.02, 9.48 on the x, y, z axes. These look to be barely off.
However the magnetic field is way off. I'm getting 0.26, 0.19, -0.14 in the callback listener for Sensor.TYPE_MAGNETIC_FIELD. Inspecting the readRawMagnetometerData method shows in the result array 185, 1329, -994.
To make things even more confusing for me the Android documentation specifies that the values returned for the magnetic field are in uT https://developer.android.com/reference/android/hardware/SensorEvent.html#values

Did I end up with a bad LSM9D1 or I'm doing some wrong assumption on the expected values?

@stefanvladvoinea stefanvladvoinea changed the title Bad lsm9d1... are these values is this normal? Bad lsm9ds1... are these values is this normal? Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant