• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/04-Jan-2025-439340

CMakeLists.txtD04-Jan-2025382 1511

README.rstD04-Jan-20252.1 KiB7254

prj.confD04-Jan-2025404 1514

sample.yamlD04-Jan-2025370 1918

README.rst

1.. _x-nucleo-iks4a1-std-sample:
2
3X-NUCLEO-IKS4A1 shield Standard (Mode 1) sample
4###############################################
5
6Overview
7********
8This sample is provided as an example to test the X-NUCLEO-IKS4A1 shield
9configured in Standard mode (Mode 1).
10Please refer to :ref:`x-nucleo-iks4a1-mode-1` for more info on this configuration.
11
12This sample enables the following four sensors of a X-NUCLEO-IKS4A1 shield, and then
13periodically reads and displays data from the shield sensors:
14
15- LSM6DSV16X 6-Axis acceleration and angular velocity
16- LSM6DSO16IS 6-Axis acceleration and angular velocity
17- LPS22DF ambient temperature and atmospheric pressure
18- LIS2MDL 3-Axis magnetic field intensity
19- LIS2DUXS12 3-Axis acceleration
20
21Requirements
22************
23
24This sample communicates over I2C with the X-NUCLEO-IKS4A1 shield
25stacked on a board with an Arduino connector, e.g. the
26:zephyr:board:`nucleo_f411re` board.
27
28Building and Running
29********************
30
31This sample runs with X-NUCLEO-IKS4A1 stacked on any board with a matching
32Arduino connector. For this example, we use a :zephyr:board:`nucleo_f411re` board.
33
34.. zephyr-app-commands::
35   :zephyr-app: samples/shields/x_nucleo_iks4a1/standard/
36   :host-os: unix
37   :board: nucleo_f411re
38   :goals: build flash
39   :compact:
40
41Sample Output
42=============
43
44 .. code-block:: console
45
46    X-NUCLEO-IKS4A1 sensor dashboard
47
48    LIS2MDL: Magn (gauss): x: -0.364, y: -0.523, z: -0.399
49    LIS2MDL: Temperature: 22.4 C
50    LSM6DSO16IS: Accel (m.s-2): x: -0.167, y: -0.249, z: 9.954
51    LSM6DSO16IS: GYro (dps): x: 0.047, y: -0.052, z: -0.042
52    LSM6DSO16IS: Temperature: 25.8 C
53    LSM6DSV16X: Accel (m.s-2): x: 0.005, y: 0.053, z: 9.930
54    LSM6DSV16X: GYro (dps): x: -0.000, y: 0.000, z: 0.005
55    LPS22DF: Temperature: 25.2 C
56    LPS22DF: Pressure:98.121 kpa
57    LIS2DUXS12: Accel (m.s-2): x: 0.689, y: -0.306, z: 9.571
58    LIS2DUXS12: Temperature: 23.9 C
59
60    10:: lis2mdl trig 1839
61    10:: lsm6dso16is acc trig 3892
62    10:: lsm6dsv16x acc trig 4412
63    10:: lps22df trig 174
64    10:: lis2duxs12 acc trig 3681
65
66    <updated endlessly every 2 seconds>
67
68References
69**********
70
71:ref:`x-nucleo-iks4a1`
72