adxl 345

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
steza6624
 
Posts: 2
Joined: Thu Jul 03, 2014 5:04 am

adxl 345

Post by steza6624 »

hi
I have a adxl345 3 axis accelerometer, I have to calibrate it, I follow your guide and I have an output like that you show but how can I use it?

Thanks for help

Stefano
Attachments
adxl345 calibration.txt
(642 Bytes) Downloaded 159 times

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

Re: adxl 345

Post by adafruit_support_bill »

On each axis, the min and max readings will correspond to -1G and 1G. Midway between them is the value that represents 0G. The simplest scaling is:

scaledValue = (rawVal - zeroVal )/oneGval; // in units of G

steza6624
 
Posts: 2
Joined: Thu Jul 03, 2014 5:04 am

Re: adxl 345

Post by steza6624 »

Hi
Sorry but I don't understand, I have 12 values for each axis, 2 value for each (six) orientation.
For exemple: Z axis when I flip the wood block upside down, flip the Z axis upside down the Z value don't change, Why? Maybe I broken the sensor?

Regards
Stefano

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: adxl 345

Post by Franklin97355 »

Post clear pictures of the device and how it is connected. Then post the code you are running using the code button above the reply box.
Code Button.png
Code Button.png (6.65 KiB) Viewed 801 times

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

Return to “Other Products from Adafruit”