NXP MMA7660 Element
The MMA7660 element is used to measure XYZ acceleration. This element is for using the NXP MMA7660 three-axis digital output accelerometer.
The MMA7660 is a sensor element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
Properties
The following properties can be changed for the MMA7660 element:
Name
The name of the element.
I2C Driver Instance
The I2C bus used to communicate with the sensor.
I2C Address
The I2C address the element sends data to.
Sample Rate
The rate the sensor wakes up to sample data. The sampling rate options include:
- 120 Hz
- 64 Hz (default)
- 32 Hz
- 16 Hz
- 8 Hz
- 2 Hz
- 1 Hz
Triggers
The following triggers are available to execute events from within the MMA7660 element:
Triggered
Execute an event when the source element connected to the buzzer triggers.
Orientation Read
Execute an event when the accelerometer’s orientation direction is read.
Raw X Acceleration Read
Execute an event when the accelerometer’s raw x-axis value is read.
Raw Y Acceleration Read
Execute an event when the accelerometer’s raw y-axis value is read.
Raw Z Acceleration Read
Execute an event when the accelerometer’s raw z-axis value is read.
Abilities
The following abilities are available for the MMA7660 element when its source element triggers:
Trigger
Trigger the element(s) that follow the MMA7660 element.
Read Orientation
Read the accelerometer’s orientation direction.
Read Raw X Acceleration
Read the accelerometer’s raw x-axis data as a signed 16-bit integer (int16_t).
Read Raw Y Acceleration
Read the accelerometer’s raw y-axis data.
Read Raw Z Acceleration
Read the accelerometer’s raw z-axis data.