Help for ADXL345 accelerometer

Our weekly LIVE video chat. Every Wednesday at 8pm ET!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ashishtbm
 
Posts: 1
Joined: Sun Oct 26, 2014 5:30 am

Help for ADXL345 accelerometer

Post by ashishtbm »

I have interfaced this accelerometer to my atmega1280 board (not arduino) using I2C. Written program in atmel studio 6. I have configured it for 3200hz data output rate, fifo bypass mode, using full resolution and range is +-2g. I am getting values ranging from about -255 to +255 (only gravity acting, not any additional acceleration). Am I getting right value range? Or is there any way to get more resolution? And when static, data is fluctuating +-5. Is this normal?

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: Help for ADXL345 accelerometer

Post by adafruit_support_bill »

Fill resolution at 2G is 10 bit or +/- 512. http://www.analog.com/static/imported-f ... DXL345.pdf
With only gravity acting, that is +/- 1G on a scale of +/- 2G, so +/- 255 sounds right.

Locked
Please be positive and constructive with your questions and comments.

Return to “Ask an Engineer! VIDEO CHAT (closed)”