Topic: interfacing LSM303DLH
(Read 1 time)
Jul 12, 2011, 11:27 am
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) ?
In theory there is no difference between theory and practice, however in practice there are many...
Re: interfacing LSM303DLH
Jul 12, 2011, 12:24 pm
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.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)