登录
首页 » C/C++ » 最终版跷跷板

最终版跷跷板

于 2020-06-24 发布 文件大小:6735KB
0 85
下载积分: 1 下载次数: 0

代码说明:

  本实验开机后,先初始化MPU6050,然后利用DMP库,初始化MPU6050及使能DMP,最后,在死循环里面不停 读取:温度传感器、加速度传感器、陀螺仪、DMP姿态解算后的欧拉角等数据,通过串口上报给上位机(温 度不上报),利用上位机软件(ANO_Tech匿名四轴上位机_V2.6.exe),可以实时显示MPU6050的传感器状 态曲线,并显示3D姿态,可以通过KEY0按键开启/关闭数据上传功能。同时,在LCD模块上面显示温度和欧拉 角等信息。DS0来指示程序正在运行。另外,本例程也可以通过USMART调用MPU_Read_Byte/MPU_Write_Byte 等函数,来实现对MPU6050寄存器的读写操作(仅在UPLOAD OFF状态下).(This experiment starts with initializing MPU6050, then using DMP library, initializing MPU6050 and enabling DMP. Finally, it keeps on in the dead cycle. Read: temperature sensor, accelerometer, gyroscope, Euler angle after attitude calculation of DMP and other data, report to PC through serial port (temperature). The sensor of MPU6050 can be displayed in real time by using the upper computer software (ANO_Tech anonymous four-axis upper computer_V2.6.exe). The state curve and 3D posture can be displayed, and the data upload function can be turned on/off by KEY0 button. At the same time, temperature and Euler are displayed on the LCD module. Angle and other information. DS0 to indicate that the program is running. In addition, this routine can also call MPU_Read_Byte/MPU_Write_Byte through USMART Equivalent function to achieve the read-write operation of MPU6050 registers (only in UPLOAD OFF state).)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 31今日下载