.SEEEDSTUDIO.COM
Tech Support: info@seeedi com
3. THREE-AXIS ACCELEROMETER
Motion Frame is equipped with Freescale MMA7660FC 3-Axis accelerometer
MMA7660FC uses a capacitive type MEMS sensor and provides an I²C output The
device is capable of detecting acceleration in X, Y and Z direction It also supports tilt
orientation detection and gesture detection like shake detection and tap detection The
direction of accelerometer is reverse mounted on Motion Frame
MMA7660FC's SCL, SDA are connected to Seeeduino Film's PC5 and PC4
respectively:
Fig: Accelerometer – Seeeduino Film Port connection
Chip Address:
•I²C Slave address of MMA7660FC is set to 0x4C
Application Programming Interface (API):
•The MMA7660FC library provides two high level interfaces init() and
accelarationRead()
•The result of the accelarationRead() is available in accelarationData[3] array
in X, Y and Z order
init()
•The init takes care of initialization of MMA7660FC chip
•It begins the I²C communication with 0x4C as slave address
•It sets the mode of MMA7660FC operation to Active mode
accelarationRead()
•X, Y and Z values from acceleration is read by this function
•The result of this operation is stored in accelarationData[] array
•X, Y and Z values are provided in 6 bit 2's compliment signed byte format in the
allowable range of +31 to -32
The following simple example demonstrates the use MMA7660FC library The access
of functions and data variable of the library should be made through pre-instantiated
object Mma7660fc.
10
Seeeduino Film Motion Frame
To Seeeduino Film