README.rst
1.. _adxl362:
2
3ADXL362: Three Axis Accelerometer
4#################################
5
6Overview
7********
8
9This sample application demonstrates how to use the ADXL362 with data ready and
10threshold triggers. The upper and lower threshold triggers are configured in
11link mode with referenced detection. See the `ADXL362 Datasheet`_ for additional
12details.
13
14Building and Running
15********************
16
17This sample requires an ADXL362 sensor. It should work with any platform
18featuring a I2C peripheral interface. It does not work on QEMU.
19
20.. zephyr-app-commands::
21 :zephyr-app: samples/sensor/adxl362
22 :board: <board to use>
23 :goals: build flash
24 :compact:
25
26Sample Output
27=============
28
29The application will print acceleration values to the console at the default
30sampling rate of 12.5 Hz. Shake the board continuously to trigger an upper
31threshold event. Stop shaking the board to trigger a lower threshold event. In
32both cases, ``Threshold trigger`` will be printed to the console.
33
34.. code-block:: console
35
36 x: -0.1, y: -0.0, z: 16.0 (m/s^2)
37 x: -1.0, y: 7.0, z: 21.0 (m/s^2)
38 Threshold trigger
39 x: -3.1, y: 4.0, z: 0.0 (m/s^2)
40 x: 1.1, y: 4.0, z: 15.1 (m/s^2)
41
42References
43**********
44
45ADXL362 Datasheet and Product Info:
46 https://www.analog.com/en/products/adxl362.html
47
48.. _ADXL362 Datasheet:
49 https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL362.pdf
50