The MMA7660FC is a ±1.5 g 3-Axis Accelerometer with Digital Output (I2C). It can be found on Seeed’s Grove 3-Axis Digital Accelerometer. It is made by NXP Semiconductor.
For the development of this driver, I used the Grove 3-Axis Digital Accelerometer and tested on a Raspberry Pi 1 running latest version of Raspbian.
It is quite straightforward to use the driver. The documentation provides a comprehensive explanation with an example. Essentially:
Initialise the Linux I2C driver and then create an
Read the accelerometer values
This is a basic implementation of a driver for mma7660fc-based 3-Axis Digital Accelerometers. The driver does not implement all functionalities. Feedback, suggestions and PR are most welcome.
Resources and Links
The structure of this post is based on Danilo Bargen’s weekly driver posts.