Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA7660FC MODSERIAL mbed
Homepage
I wrote a C# software that test the principal characteristics of this accelerometer MMA7660FC.
The software is here: 3D Accelerometer Tester v1.1
Is required Microsoft .NET Framework 3.5 or above.
This is the pins assignment:
MMA7660 pins | Mbed pins |
---|---|
1 - SCL | P10 - SCL |
2 - SDA | P9 - SDA |
3 - Vcc | Vout - 3.3V |
4 - GND | GND |
5 - INT | P6 |
NOTE: The I2C bus is already connected to pull-up resistor.
Some screens:
First you must set the Serial Port and press the button "Connect".
Then you can read the Sensor data (G acc and Orientation) manually pressing the button "Read DATA" or triggered by interrupt if you enabled in the second tab the checkbox "G Interrup Enable".
The red ball changes when the checkbox "SHAKE enable" is enabled.
In this screen you can set and read the registers manually or you can set easy the sample rate, the Shake Interrupt or the G Interrupt.
In this graph are plotted the G data read from the sensor.
For more infos visit this page.