基于89c52单片机陀螺仪mpu6050测试程序重点.doc

基于89c52单片机陀螺仪mpu6050测试程序重点.doc

君悦的三轴陀螺仪MPU6050测试程序。IIC接口,51单片机驱动,LCD1602同步显示。 硬件原理图 //**************************************** // MPU6050 IIC测试程序 // 使用单片机STC89C52 // 晶振:11.0592M // 显示:LCD1602 // 编译环境 Keil uVision2 // 参考宏晶网站24c04通信程序 // 功能: 显示加速度计和陀螺仪的10位原始数据 // 时间:2013年3月1日 //**************************************** #include REG52.H #include math.h //Keil library #include stdio.h //Keil library #include INTRINS.H typedef unsigned char uchar; typedef unsigned short ushort; typedef unsigned int uint; //**************************************** // 定义51单片机端口 //***************************

文档评论(0)

1亿VIP精品文档

相关文档