STMicroelectronics LIS3MDL Element
The LIS3MDL element is used to measure magnetic fields. This element is for using the STMicroelectronics LIS3MDL magnetometer sensor.
The LIS3MDL 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.
The following properties can be changed for the LIS3MDL element:
The name of the element.
I2C Driver Instance
The I2C bus used to communicate with the sensor.
The I2C address the element sends data to. Verify which I2C address the sensor is using by checking its schematics.
Full Scale Range
The full scale range of the magnetometer’s sensitivity.
Output Data Rate
The data rate for the magnetometer to sample readings.
Block Data Update Enabled
The state of the sensor’s block data update: disabled or enabled. If enabled, the output data rate is ignored and the device will make a reading during each magnetic field data request.
XY Operating Mode
The operating mode of the x- and y-axis on the magnetometer.
Z Operating Mode
The operating mode of the z-axis on the magnetometer.
System Operating Mode
The initial operating mode for the magnetometer.
The following triggers are available to execute events from within the LIS3MDL element:
Execute an event when the source element connected to the LIS3MDL triggers.
X Magnetic Field Read
Execute an event when the magnetometer’s x-axis value is read.
Y Magnetic Field Read
Execute an event when the magnetometer’s y-axis value is read.
Z Magnetic Field Read
Execute an event when the magnetometer’s z-axis value is read.
The following abilities are available for the LIS3MDL element when its source element triggers:
Trigger the element(s) that follow the LIS3MDL element.
Read X Magnetic Field
Read the magnetometer’s x-axis data.
Read Y Magnetic Field
Read the magnetometer’s y-axis data.
Read Z Magnetic Field
Read the magnetometer’s z-axis data.