Overview

Driver for a Freescale MMA845xQ accelerometer.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

MMA8451Q
MMA8452Q
MMA8453Q

Datasheet

MMA8451Q
MMA8452Q
MMA8453Q

Test hardware

This code has been tested using a Freescale LFSTBEB3110 sensor daughterboard:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=LFSTBEB3110

The sensor was wired to a CoreProto and plugged into a SenseCore:

http://soldercore.com/products/sensecore/

And finally installed on a SolderCore:

http://soldercore.com/products/soldercore/

Specification
Parameter Supported settings
Bandwidth (Hz) 1.56, 6.25, 12.5, 50, 100, 200, 400, 800
Range (g) ±2, ±4, ±8
Communication up to 2.25 MHz (I2C)

API Summary

Macros
MMA8451Q_I2C_ADDR MMA845xQ 8-bit I2C address selected with SA0 signal
Functions
mma8451q_initialize_i2c Initialize sensor on I2C bus