1.. _lsm6dso: 2 3LSM6DSO: IMU Sensor Monitor 4########################### 5 6Overview 7******** 8This sample sets the date rate of LSM6DSO accelerometer and gyroscope to 912.5Hz and enables a trigger on data ready. It displays on the console 10the values for accelerometer and gyroscope. 11 12Requirements 13************ 14 15This sample uses the LSM6DSO sensor controlled using the I2C interface. 16It has been tested on the :ref:`stm32l562e_dk_board`. 17 18References 19********** 20 21- LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html 22 23Building and Running 24******************** 25 26 This project outputs sensor data to the console. It requires an LSM6DSO 27 sensor, which is present on the :ref:`stm32l562e_dk_board`. 28 29Building on stm32l562e_dk board 30=============================== 31 32.. zephyr-app-commands:: 33 :zephyr-app: samples/sensor/lsm6dso 34 :host-os: unix 35 :board: stm32l562e_dk 36 :goals: build 37 :compact: 38 39Sample Output 40============= 41 42.. code-block:: console 43 44 Testing LSM6DSO sensor in trigger mode. 45 46 accel x:-0.650847 ms/2 y:-5.300102 ms/2 z:-8.163114 ms/2 47 gyro x:-0.167835 dps y:-0.063377 dps z:0.002367 dps 48 trig_cnt:1 49 50 accel x:0.341575 ms/2 y:5.209773 ms/2 z:-7.938787 ms/2 51 gyro x:-0.034284 dps y:-0.004428 dps z:-0.003512 dps 52 trig_cnt:2 53 54 <repeats endlessly> 55