zephyr/samples/sensor/lsm6dso/README.rst
Benjamin Cabé 14c92da96d doc: stm32: Update all st.com links to use HTTPS
While recent browsers seem to transparently try to use https for
http://www.st.com/... URLs, they are effectively not working anymore, so use
https://www.st.com/... URLs instead.

curl http://www.st.com/en/evaluation-tools/nucleo-g070rb.html -m 5 -v
*   Trying 104.89.117.48:80...
* Connected to www.st.com (104.89.117.48) port 80 (#0)
> GET /en/evaluation-tools/nucleo-g070rb.html HTTP/1.1
> Host: www.st.com
> User-Agent: curl/8.1.2
> Accept: */*
>
* Operation timed out after 5002 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 5002 milliseconds with 0 bytes
received

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-26 16:55:08 +02:00

55 lines
1.3 KiB
ReStructuredText

.. _lsm6dso:
LSM6DSO: IMU Sensor Monitor
###########################
Overview
********
This sample sets the date rate of LSM6DSO accelerometer and gyroscope to
12.5Hz and enables a trigger on data ready. It displays on the console
the values for accelerometer and gyroscope.
Requirements
************
This sample uses the LSM6DSO sensor controlled using the I2C interface.
It has been tested on the :ref:`stm32l562e_dk_board`.
References
**********
- LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html
Building and Running
********************
This project outputs sensor data to the console. It requires an LSM6DSO
sensor, which is present on the :ref:`stm32l562e_dk_board`.
Building on stm32l562e_dk board
===============================
.. zephyr-app-commands::
:zephyr-app: samples/sensor/lsm6dso
:host-os: unix
:board: stm32l562e_dk
:goals: build
:compact:
Sample Output
=============
.. code-block:: console
Testing LSM6DSO sensor in trigger mode.
accel x:-0.650847 ms/2 y:-5.300102 ms/2 z:-8.163114 ms/2
gyro x:-0.167835 dps y:-0.063377 dps z:0.002367 dps
trig_cnt:1
accel x:0.341575 ms/2 y:5.209773 ms/2 z:-7.938787 ms/2
gyro x:-0.034284 dps y:-0.004428 dps z:-0.003512 dps
trig_cnt:2
<repeats endlessly>