Go Down

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

topfirst

how to calibrate tilt accelerometer mma7260q???  :)

Senso

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

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

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


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

Quote
and Y should read 1G

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.

Senso

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