NXP FXAS21002 Element

The FXAS21002 element is used to measure the hardware’s orientation and angular velocity. This element is for using the NXP FXAS21002 three-axis digital gyroscope and angular sensor.

The FXAS21002 is a sensor element that can be imported into the Element Toolbox through the Add Element Add Element button located in the toolbox from the Embedded tab. Rapid IoT projects have this element imported by default.

Element Icon
FXAS21002 Element

Properties

The following properties can be changed for the FXAS21002 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:

  • 12.5 Hz (default)
  • 25 Hz
  • 50 Hz
  • 100 Hz
  • 200 Hz
  • 400 Hz
  • 800 Hz

Triggers

The following triggers are available to execute events from within the FXAS21002 element:

Triggered

Execute an event when the source element connected to the FXAS21002 triggers.

Sensor Data Read

Execute an event when the sensor’s data is read.

X Rotation Speed Read (DPS)

Execute an event when the sensor’s x-axis rotation speed (in DPS) is read.

Y Rotation Speed Read (DPS)

Execute an event when the sensor’s y-axis rotation speed is read.

Z Rotation Speed Read (DPS)

Execute an event when the sensor’s z-axis rotation speed is read.

Abilities

The following abilities are available for the FXAS21002 element when its source element triggers:

Trigger

Trigger the element(s) that follow the FXAS21002 element.

Enable

Enable the sensor.

Disable

Disable the sensor.

Set Enabled State

Set the state of the sensor: enabled or disabled.

Read Sensor Data

Read the sensor’s rotation data.

Read X Rotation Speed

Read the sensor’s x-axis rotation speed.

Read Y Rotation Speed

Read the sensor’s y-axis rotation speed.

Read Z Rotation Speed

Read the sensor’s z-axis rotation speed.