找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[Nano130] Control MPU9250 Sensor

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2023-4-25 09:53:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[size=1.1em]
  • Application: This sample code uses Nano130 to control sensor MPU9250.
  • BSP Version: Nano100B Series BSP CMSIS v3.03.000
  • Hardware: NuEdu-EVB-Nano130
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



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU