Arduino library for MMA7260Q (Tilt Sensor)

In the past days I published a couple of arduino libraries. All coming from by XBee sensor development. I’m still waiting for the MAX756 to arrive from Futurlec, I need the MAX756 to power the xbee sensor with batteries and mount it in its final position. So in the meanwhile I’m cleaning a little bit the code, moving thing to libraries, etc. Now it’s the turn of the MMA7260Q, (see other posts about MMA7260q) . I created an Arduino library to use MMA7260Q as a Tilt Sensor that does autozero calibration. ...

March 21, 2009

Arduino tilt sensor using MMA7260Q accelerometer

I’ve playing with the MMA7260Q accelerometer. Following the indications in Measuring Tilt with Low-g accelerometers. Implementing Auto-zero calibration technique for accelerometers. AN3461 Tilt Sensing Using Linear Accelerometers. I connected X,Y and Z of the MMA7260Q breakout to A0, A1 and A2 of the Arduino. Then, GS1 and GS2 connected to ground to set the range to 1.5g. Ah, and of course, I connected ^SLEEP to VCC. I managed to put together this piece of code that ouputs the tilt angles ρ(rho) , φ(phi); and Θ(theta) in degrees. I does automatic autozero calibration so before getting sensible results you should tilt the sensor around +/-90 degrees in every axis. ...

November 3, 2008