Go Down

Topic: interfacing LSM303DLH (Read 1 time) previous topic - next topic


I am a newbie, this is my first post. I am working on a Arduino Uno with a Pololu LSM303DLH 3D Compass and accelerometer; in order to read the sensor I use this library https://github.com/ryantm/LSM303DLH but it returns raw data.
How can I convert accelerometer raw data into mg (or g) ?



have you checked the datasheet - http://www.pololu.com/file/download/LSM303DLH.pdf?file_id=0J433 - ?

it states that depening on some flags the full scale is either 2,4 or 8 G. So you need to map the raw values 0..n  to 0..4 for example.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up