Home
last modified time | relevance | path

Searched +full:accel +full:- +full:hz (Results 1 – 25 of 60) sorted by relevance

123

/Zephyr-latest/include/zephyr/dt-bindings/sensor/
Dlis2de12.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Accel rates */
16 #define LIS2DE12_DT_ODR_OFF 0x00 /* Power-Down */
17 #define LIS2DE12_DT_ODR_AT_1Hz 0x01 /* 1Hz (normal) */
18 #define LIS2DE12_DT_ODR_AT_10Hz 0x02 /* 10Hz (normal) */
19 #define LIS2DE12_DT_ODR_AT_25Hz 0x03 /* 25Hz (normal) */
20 #define LIS2DE12_DT_ODR_AT_50Hz 0x04 /* 50Hz (normal) */
21 #define LIS2DE12_DT_ODR_AT_100Hz 0x05 /* 100Hz (normal) */
22 #define LIS2DE12_DT_ODR_AT_200Hz 0x06 /* 200Hz (normal) */
[all …]
Dlis2du12.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Accel rates */
16 #define LIS2DU12_DT_ODR_OFF 0x00 /* Power-Down */
18 #define LIS2DU12_DT_ODR_AT_3Hz_ULP 0x02 /* 3Hz (ultra low power) */
19 #define LIS2DU12_DT_ODR_AT_6Hz_ULP 0x03 /* 6Hz (ultra low power) */
20 #define LIS2DU12_DT_ODR_AT_6Hz 0x04 /* 6Hz (normal) */
22 #define LIS2DU12_DT_ODR_AT_25Hz 0x06 /* 25Hz (normal) */
23 #define LIS2DU12_DT_ODR_AT_50Hz 0x07 /* 50Hz (normal) */
24 #define LIS2DU12_DT_ODR_AT_100Hz 0x08 /* 100Hz (normal) */
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dinvensense,icm42670.yaml4 # SPDX-License-Identifier: Apache-2.0
6 description: ICM-42670 motion tracking device
8 include: [sensor-device.yaml]
11 int-gpios:
12 type: phandle-array
14 The INT signal default configuration is active-high. The
18 accel-hz:
22 Default frequency of accelerometer. (Unit - Hz)
24 Power-on reset value is 800.
26 - 0
[all …]
Dinvensense,icm42605.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ICM-42605 motion tracking device
6 # ICM-42605 is SPI.
9 include: [sensor-device.yaml, spi-device.yaml]
12 int-gpios:
13 type: phandle-array
16 The INT signal default configuration is active-high. The
20 accel-hz:
24 Default frequency of accelerometer. (Unit - Hz)
27 - 1
[all …]
Dbosch,bmi08x-accel.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: BMI08X Accel inertial measurement unit
6 include: sensor-device.yaml
9 int-gpios:
10 type: phandle-array
16 int1-map-io:
19 Bit[0]: Map Interrupt A to INT1, Accel Data Ready
23 int2-map-io:
26 Bit[0]: Map Interrupt A to INT2, Accel Data Ready
30 int1-conf-io:
[all …]
Dinvensense,icm42688.yaml4 # SPDX-License-Identifier: Apache-2.0
7 ICM-42688 motion tracking device
8 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range,
9 gyro-odr properties in a .dts or .dtsi file you may include icm42688.h
13 #include <zephyr/dt-bindings/sensor/icm42688.h>
18 accel-pwr-mode = <ICM42688_ACCEL_LN>;
19 accel-fs = <ICM42688_ACCEL_FS_16G>;
20 accel-odr = <ICM42688_ACCEL_ODR_2000>;
21 gyro-pwr-mode= <ICM42688_GYRO_LN>;
22 gyro-fs = <ICM42688_GYRO_FS_2000>;
[all …]
Dst,lsm6dso-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range,
6 gyro-odr properties in a .dts or .dtsi file you may include lsm6dso.h
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
15 accel-pm = <LSM6DSO_DT_XL_ULP_MODE>;
16 accel-range = <LSM6DSO_DT_FS_8G>;
17 accel-odr = <LSM6DSO_DT_ODR_1Hz6>;
18 gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>;
19 gyro-range = <LSM6DSO_DT_FS_2000DPS>;
20 gyro-odr = <LSM6DSO_DT_ODR_6667Hz>;
[all …]
Dst,ism330dhcx-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-odr and gyro-odr properties in a .dts or .dtsi file you may include
9 #include <zephyr/dt-bindings/sensor/ism330dhcx.h>
14 accel-odr = <ISM330DHCX_DT_ODR_104Hz>;
15 gyro-odr = <ISM330DHCX_DT_ODR_104Hz>;
18 include: sensor-device.yaml
21 drdy-gpios:
22 type: phandle-array
30 int-pin:
43 configuration at power-up.
[all …]
Dst,lis2de12-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-range, accel-odr, properties in a .dts or .dtsi
9 #include <zephyr/dt-bindings/sensor/lis2de12.h>
14 accel-range = <LIS2DE12_DT_FS_16G>;
15 accel-odr = <LIS2DE12_DT_ODR_AT_100Hz>;
18 include: sensor-device.yaml
21 int1-gpios:
22 type: phandle-array
30 int2-gpios:
31 type: phandle-array
[all …]
Dst,lsm6dsv16x-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-range, accel-odr, gyro-range, gyro-odr properties in
10 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
15 accel-range = <LSM6DSV16X_DT_FS_8G>;
16 accel-odr = <LSM6DSV16X_DT_ODR_AT_60Hz>;
17 gyro-range = <LSM6DSV16X_DT_FS_4000DPS>;
18 gyro-odr = <LSM6DSV16X_DT_ODR_AT_60Hz>;
21 include: sensor-device.yaml
24 int1-gpios:
25 type: phandle-array
[all …]
Dst,lsm6dso16is-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the accel-range, accel-odr, gyro-range, gyro-odr properties in
10 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h>
15 accel-range = <LSM6DSO16IS_DT_FS_8G>;
16 accel-odr = <LSM6DSO16IS_DT_ODR_104Hz_LP>;
17 gyro-range = <LSM6DSO16IS_DT_FS_2000DPS>;
18 gyro-odr = <LSM6DSO16IS_DT_ODR_104Hz_LP>;
21 include: sensor-device.yaml
24 irq-gpios:
25 type: phandle-array
[all …]
/Zephyr-latest/samples/sensor/6dof_motion_drdy/boards/
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * Get a node identifier for 6-axis IMU sensor.
12 6dof-motion-drdy0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
22 * Configure 100Hz IMU data reporting
29 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
30 accel-hz = <100>;
31 gyro-hz = <100>;
32 accel-fs = <16>;
33 gyro-fs = <2000>;
[all …]
Dnrf52dk_nrf52832_spi.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * Get a node identifier for 6-axis IMU sensor.
12 6dof-motion-drdy0 = &icm42670p;
16 /* Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus.
18 * Configure 100Hz IMU data reporting
22 cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
26 spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
28 accel-hz = <100>;
29 gyro-hz = <100>;
[all …]
/Zephyr-latest/doc/hardware/peripherals/sensor/
Ddevice_tree.rst10 .. code-block:: dts
12 #include <zephyr/dt-bindings/icm42688.h>
20 … int-gpios = <&pioc 6 GPIO_ACTIVE_HIGH>; /* SoC specific pin to select for interrupt line */
21 spi-max-frequency = <DT_FREQ_M(24)>; /* Maximum SPI bus frequency */
22 accel-pwr-mode = <ICM42688_ACCEL_LN>; /* Low noise mode */
23 accel-odr = <ICM42688_ACCEL_ODR_2000>; /* 2000 Hz sampling */
24 accel-fs = <ICM42688_ACCEL_FS_16>; /* 16G scale */
25 gyro-pwr-mode = <ICM42688_GYRO_LN>; /* Low noise mode */
26 gyro-odr = <ICM42688_GYRO_ODR_2000>; /* 2000 Hz sampling */
27 gyro-fs = <ICM42688_GYRO_FS_16>; /* 16G scale */
/Zephyr-latest/samples/sensor/tdk_apex/boards/
Dnrf52dk_nrf52832_spi.overlay4 * SPDX-License-Identifier: Apache-2.0
12 tdk-apex-sensor0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus.
21 cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
25 spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
26 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
27 accel-hz = <50>;
28 gyro-hz = <50>;
29 accel-fs = <16>;
30 gyro-fs = <2000>;
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
12 tdk-apex-sensor0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
28 accel-hz = <50>;
29 gyro-hz = <50>;
30 accel-fs = <16>;
31 gyro-fs = <2000>;
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
72 /* set LIS2MDL sampling frequency to 100 Hz */ in lis2mdl_config()
99 printk("Cannot set mode for LSM6DSO16IS accel\n"); in lsm6dso16is_config()
103 /* set LSM6DSO16IS accel sampling frequency to 208 Hz */ in lsm6dso16is_config()
109 printk("Cannot set sampling frequency for LSM6DSO16IS accel\n"); in lsm6dso16is_config()
117 printk("Cannot set full scale for LSM6DSO16IS accel\n"); in lsm6dso16is_config()
121 /* set LSM6DSO16IS gyro sampling frequency to 208 Hz */ in lsm6dso16is_config()
156 printk("Cannot set mode for LSM6DSV16X accel\n"); in lsm6dsv16x_config()
160 /* set LSM6DSV16X accel sampling frequency to 208 Hz */ in lsm6dsv16x_config()
166 printk("Cannot set sampling frequency for LSM6DSV16X accel\n"); in lsm6dsv16x_config()
[all …]
/Zephyr-latest/samples/sensor/lis2dh/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
15 struct sensor_value accel[3]; in fetch_and_display() local
21 if (rc == -EBADMSG) { in fetch_and_display()
31 accel); in fetch_and_display()
38 sensor_value_to_double(&accel[0]), in fetch_and_display()
39 sensor_value_to_double(&accel[1]), in fetch_and_display()
40 sensor_value_to_double(&accel[2])); in fetch_and_display()
75 printf("Device %s is not ready\n", sensor->name); in main()
99 printf("Sampling at %u Hz\n", odr.val1); in main()
114 printf("Polling at 0.5 Hz\n"); in main()
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
55 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
61 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
86 /* set ISM330DHCX accel sampling frequency to 208 Hz */ in ism330dhcx_config()
92 printk("Cannot set sampling frequency for ISM330DHCX accel\n"); in ism330dhcx_config()
100 printk("Cannot set fs for ISM330DHCX accel\n"); in ism330dhcx_config()
104 /* set ISM330DHCX gyro sampling frequency to 208 Hz */ in ism330dhcx_config()
122 /* set ISM330DHCX external magn sampling frequency to 100 Hz */ in ism330dhcx_config()
164 printk("%s: device not ready.\n", iis2dlpc->name); in main()
168 printk("%s: device not ready.\n", ism330dhcx->name); in main()
[all …]
/Zephyr-latest/samples/sensor/icm42605/
DREADME.rst1 .. zephyr:code-sample:: icm42605
3 :relevant-api: sensor_interface
11 This sample application periodically (10 Hz) measures the sensor
29 .. zephyr-app-commands::
30 :zephyr-app: samples/sensor/icm42605
37 .. code-block:: console
39 *** Booting Zephyr OS build zephyr-v2.1.0-576-g4b38659b0661 ***
41 accel -5.882554 -6.485893 5.868188 m/s/s
42 gyro 0.014522 0.002264 -0.036905 rad/s
44 accel -5.841853 -6.435615 5.911283 m/s/s
[all …]
/Zephyr-latest/samples/sensor/mpu6050/
DREADME.rst1 .. zephyr:code-sample:: mpu6050
3 :relevant-api: sensor_interface
11 This sample application periodically (0.5 Hz) measures the sensor
31 .. zephyr-app-commands::
32 :zephyr-app: samples/sensor/mpu6050
39 .. code-block:: console
41 *** Booting Zephyr OS build zephyr-v2.1.0-576-g4b38659b0661 ***
43 accel -5.882554 -6.485893 5.868188 m/s/s
44 gyro 0.014522 0.002264 -0.036905 rad/s
46 accel -5.841853 -6.435615 5.911283 m/s/s
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
39 /* set LIS2DW12 accel/gyro sampling frequency to 100 Hz */ in lis2dw12_config()
45 printk("Cannot set sampling frequency for LIS2DW12 accel\n"); in lis2dw12_config()
70 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config()
76 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config()
84 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
88 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config()
106 /* set LSM6DSO external magn sampling frequency to 100 Hz */ in lsm6dso_config()
163 printk("%s: device not ready.\n", lis2dw12->name); in main()
167 printk("%s: device not ready.\n", lsm6dso->name); in main()
[all …]
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
84 /* set STTS22H sampling frequency to 100 Hz */ in stts22h_config()
107 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
113 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
121 printk("Cannot set full scale for IIS2DLPC accel\n"); in iis2dlpc_config()
138 /* set IIS2ICLX accel/gyro sampling frequency to 200 Hz */ in iis2iclx_config()
144 printk("Cannot set sampling frequency for IIS2ICLX accel\n"); in iis2iclx_config()
152 printk("Cannot set full scale for IIS2ICLX accel\n"); in iis2iclx_config()
169 /* set IIS2MDC sampling frequency to 100 Hz */ in iis2mdc_config()
192 /* set ISM330DHCX sampling frequency to 416 Hz */ in ism330dhcx_config()
[all …]
/Zephyr-latest/samples/sensor/6dof_motion_drdy/
DREADME.rst1 .. zephyr:code-sample:: 6dof_motion_drdy
3 :relevant-api: sensor_interface
5 Get 6-Axis accelerometer and gyroscope data from a sensor (data ready interrupt mode).
10 This sample application periodically (100 Hz) measures the 6-axis IMU sensor with
19 overlay must be provided to identify the 6-axis motion sensor, the SPI or I2C bus interface and the…
25 This sample supports up to 6-Axis IMU devices. Each device needs
26 to be aliased as ``6dof-motion-drdyN`` where ``N`` goes from ``0`` to ``9``. For example:
28 .. code-block:: devicetree
32 6dof-motion-drdy0 = &icm42670p;
38 .. zephyr-app-commands::
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
98 /* set LIS2MDL sampling frequency to 100 Hz */ in lis2mdl_config()
121 /* set LPS22HH sampling frequency to 100 Hz */ in lps22hh_config()
144 /* set STTS751 conversion rate to 16 Hz */ in stts751_config()
167 /* set LIS2DW12 accel/gyro sampling frequency to 100 Hz */ in lis2dw12_config()
173 printk("Cannot set sampling frequency for LIS2DW12 accel\n"); in lis2dw12_config()
198 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config()
204 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config()
212 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
216 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config()
[all …]

123