Skip to content

Conversation

@kamtar
Copy link

@kamtar kamtar commented Mar 16, 2019

Temp. Sensor sensitivity is 16 LSB/C we want to divide by 16 which means bitshift by 4 not 8.
Value is 11bit, padded to 16bit with a sign bit, so I guess this is what created the confusion.

@andreadevo
Copy link
Contributor

Thank you for the contribution! We have been having difficulty with the temperature readings on the LSM9DS1. The current code is broken as it outputs large negative values; however, I am still getting an output of -71 (at room temp) with your suggestion. Is this what you are getting?

@kamtar
Copy link
Author

kamtar commented Mar 19, 2019

I don't own the LSM9DS1 board. I was helping a friend with some diagnostics and I found this which I'm sure is wrong so I fixed it. I didn't saw any other obvious bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants