牛卧堂MCU技术交流

标题: [Nano130] Control MPU9250 Sensor [打印本页]

作者: admin    时间: 2022-9-23 09:44
标题: [Nano130] Control MPU9250 Sensor

This example shows how to use Nano130 to communicate with motion sensor MPU9250 to obtain the motion track and direction of the device.

First, Nano130 initializes MPU9250 through I2C interface, setting the mode as measurement mode, sampling frequency as 125Hz, frequency width as 5Hz, acceleration measurement range ± 2G, angular velocity measurement range ± 2000 DPS.

Then, we can use I2C bus to send out instructions to obtain nine values measured by MPU9250. We can use these values to do some interesting applications. For example, use acceleration and angular velocity values to record the moving track, and use magnetic value to determine the moving direction.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 0213092436





欢迎光临 牛卧堂MCU技术交流 (http://www.nuvoton-mcu.com/) Powered by Discuz! X3.2