/Zephyr-latest/samples/sensor/6dof_motion_drdy/boards/ |
D | nrf52dk_nrf52832_i2c.overlay | 4 * 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 …]
|
D | nrf52dk_nrf52832_spi.overlay | 4 * 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/dts/bindings/sensor/ |
D | invensense,icm42670.yaml | 4 # 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 …]
|
D | invensense,icm42688.yaml | 4 # 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 …]
|
D | invensense,icm42605.yaml | 2 # 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 …]
|
D | st,lsm6dso-common.yaml | 2 # 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 …]
|
D | bosch,bmi08x-gyro.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: BMI08X Gyro inertial measurement unit 6 include: sensor-device.yaml 9 int-gpios: 10 type: phandle-array 16 int3-4-map-io: 24 int3-4-conf-io: 28 Bit[1]: if set to 1, INT3 is open-drain, otherwise it's push-pull 30 Bit[3]: if set to 1, INT4 is open-drain, otherwise it's push-pull 32 gyro-hz: [all …]
|
D | st,ism330dhcx-common.yaml | 2 # 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 …]
|
D | st,lsm6dsv16x-common.yaml | 2 # 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 …]
|
D | st,lsm6dso16is-common.yaml | 2 # 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/doc/hardware/peripherals/sensor/ |
D | device_tree.rst | 10 .. 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/ |
D | nrf52dk_nrf52832_spi.overlay | 4 * 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>;
|
D | nrf52dk_nrf52832_i2c.overlay | 4 * 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_iks02a1/sensorhub/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 55 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config() 69 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config() 86 /* set ISM330DHCX accel sampling frequency to 208 Hz */ in ism330dhcx_config() 104 /* set ISM330DHCX gyro sampling frequency to 208 Hz */ in ism330dhcx_config() 110 printk("Cannot set sampling frequency for ISM330DHCX gyro\n"); in ism330dhcx_config() 118 printk("Cannot set fs for ISM330DHCX gyro\n"); in ism330dhcx_config() 122 /* set ISM330DHCX external magn sampling frequency to 100 Hz */ in ism330dhcx_config() 157 struct sensor_value gyro[3]; in main() local 164 printk("%s: device not ready.\n", iis2dlpc->name); in main() [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 58 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config() 72 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config() 89 /* set IIS2MDC sampling frequency to 100 Hz */ in iis2mdc_config() 112 /* set ISM330DHCX sampling frequency to 416 Hz */ in ism330dhcx_config() 130 /* set ISM330DHCX gyro sampling frequency to 208 Hz */ in ism330dhcx_config() 136 printk("Cannot set sampling frequency for ISM330DHCX gyro\n"); in ism330dhcx_config() 144 printk("Cannot set fs for ISM330DHCX gyro\n"); in ism330dhcx_config() 168 struct sensor_value gyro[3]; in main() local 176 printk("%s: device not ready.\n", iis2dlpc->name); in main() [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 39 /* set LIS2DW12 accel/gyro sampling frequency to 100 Hz */ in lis2dw12_config() 53 printk("Cannot set sampling frequency for LIS2DW12 gyro\n"); in lis2dw12_config() 70 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config() 88 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config() 94 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config() 102 printk("Cannot set fs for LSM6DSO gyro\n"); in lsm6dso_config() 106 /* set LSM6DSO external magn sampling frequency to 100 Hz */ in lsm6dso_config() 156 struct sensor_value gyro[3]; in main() local 163 printk("%s: device not ready.\n", lis2dw12->name); in main() [all …]
|
/Zephyr-latest/samples/sensor/i3g4250d/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 27 struct sensor_value gyro[3]; in fetch_and_display() local 32 printf("ERROR: Failed fetching gyro values: %d.\n", rc); in fetch_and_display() 38 gyro); in fetch_and_display() 41 printf("ERROR: Failed getting gyro values: %d\n", rc); in fetch_and_display() 47 sensor_value_to_double(&gyro[0]), in fetch_and_display() 48 sensor_value_to_double(&gyro[1]), in fetch_and_display() 49 sensor_value_to_double(&gyro[2])); in fetch_and_display() 58 printf("Sensor %s is not ready\n", sensor->name); in main() 62 printf("Set sensor sampling frequency to %f Hz.\n", sampling_frequency); in main()
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/ |
D | main.c | 4 * 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() 181 printk("Cannot set sampling frequency for LIS2DW12 gyro\n"); in lis2dw12_config() 198 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config() 216 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config() 222 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config() 230 printk("Cannot set fs for LSM6DSO gyro\n"); in lsm6dso_config() [all …]
|
/Zephyr-latest/samples/sensor/icm42605/ |
D | README.rst | 1 .. 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/ |
D | README.rst | 1 .. 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/sensor/6dof_motion_drdy/ |
D | README.rst | 1 .. 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_iks4a1/standard/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 72 /* set LIS2MDL sampling frequency to 100 Hz */ in lis2mdl_config() 103 /* set LSM6DSO16IS accel sampling frequency to 208 Hz */ in lsm6dso16is_config() 121 /* set LSM6DSO16IS gyro sampling frequency to 208 Hz */ in lsm6dso16is_config() 127 printk("Cannot set sampling frequency for LSM6DSO16IS gyro\n"); in lsm6dso16is_config() 135 printk("Cannot set full scale for LSM6DSO16IS gyro\n"); in lsm6dso16is_config() 160 /* set LSM6DSV16X accel sampling frequency to 208 Hz */ in lsm6dsv16x_config() 178 /* set LSM6DSV16X gyro sampling frequency to 208 Hz */ in lsm6dsv16x_config() 184 printk("Cannot set sampling frequency for LSM6DSV16X gyro\n"); in lsm6dsv16x_config() 192 printk("Cannot set full scale for LSM6DSV16X gyro\n"); in lsm6dsv16x_config() [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub1/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* set LSM6DSV16X accel sampling frequency to 208 Hz */ in lsm6dsv16x_config() 46 /* set LSM6DSV16X gyro sampling frequency to 208 Hz */ in lsm6dsv16x_config() 52 printk("Cannot set sampling frequency for LSM6DSV16X gyro\n"); in lsm6dsv16x_config() 60 printk("Cannot set full scale for LSM6DSV16X gyro\n"); in lsm6dsv16x_config() 64 /* set LSM6DSV16X external magn sampling frequency to 100 Hz */ in lsm6dsv16x_config() 116 printk("%s: device not ready.\n", lsm6dsv16x->name); in main() 150 printf("X-NUCLEO-IKS01A4 sensor dashboard\n\n"); in main() 152 printf("LSM6DSV16X: Accel (m.s-2): x: %.3f, y: %.3f, z: %.3f\n", in main() 157 printf("LSM6DSV16X: Gyro (dps): x: %.3f, y: %.3f, z: %.3f\n", in main()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub2/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* set LSM6DSO16IS accel sampling frequency to 208 Hz */ in lsm6dso16is_config() 46 /* set LSM6DSO16IS gyro sampling frequency to 208 Hz */ in lsm6dso16is_config() 52 printk("Cannot set sampling frequency for LSM6DSO16IS gyro\n"); in lsm6dso16is_config() 60 printk("Cannot set full scale for LSM6DSO16IS gyro\n"); in lsm6dso16is_config() 64 /* set LSM6DSO16IS external magn sampling frequency to 100 Hz */ in lsm6dso16is_config() 116 printk("%s: device not ready.\n", lsm6dso16is->name); in main() 150 printf("X-NUCLEO-IKS01A4 sensor dashboard\n\n"); in main() 152 printf("LSM6DSO16IS: Accel (m.s-2): x: %.3f, y: %.3f, z: %.3f\n", in main() 157 printf("LSM6DSO16IS: Gyro (dps): x: %.3f, y: %.3f, z: %.3f\n", in main()
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/sensorhub/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 36 struct sensor_value gyro[3]; in main() local 40 printk("%s: device not ready.\n", lsm6dsl->name); in main() 44 /* set LSM6DSL accel/gyro sampling frequency to 104 Hz */ in main() 58 printk("Cannot set sampling frequency for gyro.\n"); in main() 83 sensor_channel_get(lsm6dsl, SENSOR_CHAN_GYRO_XYZ, gyro); in main() 97 printf("X-NUCLEO-IKS01A2 sensor dashboard\n\n"); in main() 100 printf("LSM6DSL: Accel (m.s-2): x: %.1f, y: %.1f, z: %.1f\n", in main() 105 /* lsm6dsl gyro */ in main() 106 printf("LSM6DSL: Gyro (dps): x: %.3f, y: %.3f, z: %.3f\n", in main() [all …]
|