Go Down

### Topic: mma7260q? (Read 958 times)previous topic - next topic

#### topfirst

##### May 17, 2011, 02:58 pm
how to calibrate tilt accelerometer mma7260q???

#### Senso

#1
##### May 17, 2011, 08:04 pm
Another account?
Read it some 64 times, avaerage, X and Y should read 0, so calculate the offset, and Y should read 1G, consult the datasheet to see what value means 1g, then its done.

#### topfirst

#2
##### May 18, 2011, 05:36 am
i have read the code from this site
http://rubenlaguna.com/wp/2008/11/03/arduino-tilt-sensor-using-mma7260q/
but it just 90 degrees, can i measure the tilt until 360 degrees??
I use arduino mega 2560.

#### Senso

#3
##### May 18, 2011, 06:49 am
You cant, because when you tilt more than 90 degrees you are in fact inversing the chip, so your gravity values become negative, so it becomes the same tilt, but you just have the board/acc inverted.

#### topfirst

#4
##### May 18, 2011, 08:28 am

You cant, because when you tilt more than 90 degrees you are in fact inversing the chip, so your gravity values become negative, so it becomes the same tilt, but you just have the board/acc inverted.

so what can i do to measure it become 360 degrees?
is this accelerometer only measure 90 degrees?

#### AWOL

#5
##### May 18, 2011, 08:40 am
Quote

sp. "Z"
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### Senso

#6
##### May 19, 2011, 08:46 am
Yes Z, thanks for the correction.

The accel can read 360 for sure, but its a matter of checking if Z is +1g or -1g, the rest is just the typical trigonometry .

Go Up