STMicroelectronics LIS2DW12 Element

The LIS2DW12 element is used to measure acceleration. This element is for using the STMicroelectronics LIS2DW12 accelerometer sensor, which is featured on the X-NUCLEO-IKS01A3 environmental sensor expansion board.

The LIS2DW12 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.

Properties

The following properties can be changed for the LIS2DW12 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. Verify which I2C address the sensor is using by checking its schematics.

Output Data Rate

The rate of output the accelerometer driver runs at in Hz. This element includes the following data rate options:

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

Full Scale

The accelerometer’s sensitivity to linear acceleration in gs. This element includes the following full scale options:

  • 2 g (default)
  • 4 g
  • 8 g
  • 16 g

Triggers

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

Triggered

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

X Acceleration Read

Execute an event when the accelerometer’s x-axis value is read.

Y Acceleration Read

Execute an event when the accelerometer’s y-axis value is read.

Z Acceleration Read

Execute an event when the accelerometer’s z-axis value is read.

Acceleration Read

Execute an event when the combined X, Y, and Z acceleration values are read.

Temperature Read

Execute an event when a temperature value is read.

Abilities

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

Trigger

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

Read X Acceleration

Read the accelerometer’s x-axis data as a floating point value in Gs.

Read Y Acceleration

Read the accelerometer’s y-axis data.

Read Z Acceleration

Read the accelerometer’s z-axis data.

Read Acceleration

Read the accelerometer’s x-, y-, and z-axis data.

Read Temperature (°C)

Read the temperature data in Celsius.