Triple_Axis_Accelerometer_MMA7260__SKU__DFR0068_-DFRobot

Introduction

Triple Axis Accelerometer MMA7260 (SKU: DFR0068)

The MMA7260Q from Freescale is a very nice sensor with easy analog interface. The MMA7260QT is a 3.3V part and outputs an analog voltage for each of the three outputs. This voltage is in ratio to the measured acceleration and to the supply voltage (ratiometric). It has selectable sensitivity by dip switch. You will need some extra hardware to convert this analog signal to a usable digital one. The Arduino is really good option for it. This break board is especially designed for Arduino which has 3 JST connector that can be easily plug into our IO/Sensor expansion board.

Specification

Wiring Diagram

MMA7260 Connection Diagram

The diagram consist of the following items:

Sample Code

For Arduino

//Arduino Sample Code
//Developed by DFRobot.com
//Last Modified 30/11/2011
//Version 1.0
void setup()
{
  Serial.begin(19200); // 19200 bps
}
void loop()
{
      int x,y,z;
      x=analogRead(0);
      y=analogRead(1);
      z=analogRead(2);
      Serial.print("x= ");
      Serial.print(x ,DEC);
      Serial.print(',');
      Serial.print("y= ");
      Serial.print(y ,DEC);
      Serial.print(',');
      Serial.print("z= ");
      Serial.println(z ,DEC);
      delay(100);
}

Reference

And we have collected some useful 3-axis data processing methods: How to Use a Three-Axis Accelerometer for Tilt Sensing.