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
adxl 345
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Thu Jul 03, 2014 5:04 am
adxl 345
- Attachments
-
- adxl345 calibration.txt
- (642 Bytes) Downloaded 159 times
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: adxl 345
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
scaledValue = (rawVal - zeroVal )/oneGval; // in units of G
-
- Posts: 2
- Joined: Thu Jul 03, 2014 5:04 am
Re: adxl 345
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
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
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: adxl 345
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.
Please be positive and constructive with your questions and comments.