angle determination using ADXL345

IMU - Inertial Measurement Unit.
Posts: 4
Joined: Fri Dec 30, 2011 6:51 am

angle determination using ADXL345

Postby ayush » Sat Aug 18, 2012 8:35 am


i am working on a project were i need to find the angle or tilt using the ADXL345 sensor.but i am facing problems in the calculation of it like how to calculate the angle when i am using different g's value. moreover, it's datasheet said that the output can be set to 10bit or 13bit but still i am getting 16 bit output.can u suggest some tips?
Posts: 94
Joined: Tue Oct 18, 2011 9:49 pm

Re: angle determination using ADXL345

Postby abhimanyu » Sat Aug 18, 2012 10:23 am

You will have to use the Cosine functions to get the output in Angles. (Direction Cosines)
You may read more about it here: Starlino - IMU Guide
(Just before Part 2. Gyroscope starts)

The datasheet of ADXL345 mentions changes in Output Resolution with Changes in g-force. Look at Page 4 -> Under Specifications -> Row 2 -> Output Resolution may go up to 13-bits at high g-forces (16 g's).

Also, on Page 27, FULL-RES bit is mentioned. Here is an excerpt:
When this bit is set to a value of 1, the device is in full resolution mode, where the output resolution increases with the g range set by the range bits to maintain a 4 mg/LSB scale factor. When the FULL_RES bit is set to 0, the device is in 10-bit mode, and the range bits determine the maximum g range and scale factor.

Return to “IMU”

Who is online

Users browsing this forum: No registered users and 1 guest