LSM6DSL IMU Sensor
R2026bMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor
Since R2025a
Libraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
MBED Based Sensors
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32L475VG-Discovery (B-L475E-IOT01A)
STM32 Microcontroller Blockset /
Sensors /
IMU Sensors
Simulink Support Package for Arduino Hardware /
Sensors
Description
The LSM6DSL IMU Sensor block measures linear acceleration and angular rate along the X, Y, and Z axis using the LSM6DSL Inertial Measurement Unit (IMU) sensor interfaced with the STM32 Processors. This 6-Degree of Freedom (DoF) IMU sensor comprises of an accelerometer and gyroscope used to measure linear acceleration and angular rate, respectively. The block also measures the temperature from the embedded temperature sensor in LSM6DSL Sensor.
You can also use the composite filter option in the block for the accelerometer values, and use the high pass and low pass filter options for gyroscope values.
Examples
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stmnucleosensorslib/LSM6DSL IMU Sensor"
"stm32l475vglib/LSM6DSL IMU Sensor"
"stm32IMUsensorslib/LSM6DSL IMU Sensor"
"arduinosensorlib/LSM6DSL IMU Sensor"
Example: add_block("stmnucleosensorslib/LSM6DSL IMU Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2025a
