最终版跷跷板
代码说明:
本实验开机后,先初始化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).)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!