1.. zephyr:code-sample:: bmi270 2 :name: BMI270 6-axis IMU sensor 3 :relevant-api: sensor_interface 4 5 Configure and read accelerometer and gyroscope data from a BMI270 sensor. 6 7Description 8*********** 9 10This sample application configures the accelerometer and gyroscope to 11measure data at 100Hz. The result is written to the console. 12 13References 14********** 15 16 - BMI270: https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi270.html 17 18Wiring 19******* 20 21This sample uses the BMI270 sensor controlled using the I2C interface. 22Connect Supply: **VDD**, **VDDIO**, **GND** and Interface: **SDA**, **SCL**. 23The supply voltage can be in the 1.8V to 3.6V range. 24Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up 25resistors. 26 27Building and Running 28******************** 29 30This project outputs sensor data to the console. It requires a BMI270 31sensor. It should work with any platform featuring a I2C peripheral interface. 32It does not work on QEMU. 33In this example below the :ref:`nrf52840dk_nrf52840` board is used. 34 35 36.. zephyr-app-commands:: 37 :zephyr-app: samples/sensor/bmi270 38 :board: nrf52840dk/nrf52840 39 :goals: build flash 40 41Sample Output 42============= 43 44.. code-block:: console 45 46 Device 0x200014cc name is BMI270 47 AX: 0.268150; AY: 0.076614; AZ: 9.730035; GX: 0.001065; GY: -0.005326; GZ: -0.004261; 48 AX: 0.229843; AY: 0.076614; AZ: 9.806650; GX: 0.000532; GY: -0.005592; GZ: -0.002929; 49 AX: 0.229843; AY: 0.076614; AZ: 9.806650; GX: 0.000266; GY: -0.006125; GZ: -0.002663; 50 AX: 0.306457; AY: 0.038307; AZ: 9.768342; GX: 0.001331; GY: -0.005326; GZ: -0.004793; 51 52 <repeats endlessly> 53