LSM6DSO IMU Sensor
R2026bMeasure linear acceleration, angular rate, and temperature from LSM6DSO sensor
Since R2025a
Libraries:
STM32 Microcontroller Blockset /
Sensors /
IMU Sensors
Description
The LSM6DSO IMU Sensor block measures linear acceleration and angular rate along the X-, Y-, and Z- axis using the LSM6DSO inertial measurement unit (IMU) sensor interfaced with an STM32 processor. This six degree of freedom (DoF) and IMU sensor comprises of an accelerometer and gyroscope that you can use to measure linear acceleration and angular rate, respectively. The block also measures the temperature from the embedded temperature sensor in the LSM6DSO sensor.
You can also use the composite filter option in the block for the accelerometer values, and use the highpass and lowpass filter options for the 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.
"stm32IMUsensorslib/LSM6DSO IMU Sensor"
Example: add_block("stm32IMUsensorslib/LSM6DSO IMU Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2025a
