摘要指南针由古至今都是非常重要的,具有对方向定位进行指导的功能,指南针的出现对世界文明及科学的发展起到了不可估量的推进作用。在现今社会,不管是手机定位还是汽车导航都是在此基础上演化而来,因此本文尝试通过设计电子指南针来深入探究其工作原理。本次设计的基础建立在磁阻传感器对方向磁场强度的采集功能上,被采集到的信息经由单片机处理后形成方位与角度信息显示到LCD液晶屏上。本文还对电子指南针的误差进行了测算,与此同时对误差来源进行了一定的分析,在做到便携的前提下力求精度更高,最大化的满足对精确定向的要求。50689
该论文有图22幅,表1个,参考文献10篇。
毕业论文关键词:电子指南针 磁阻传感器 单片机 液晶屏
The Design of Electronic Compass Based on MCU
Abstract Compass is very important from the ancient to the present, it has the function of guiding the direction. The appearance of the compass plays an important role in promoting the development of the world civilization and science. In today's society, whether mobile phones or car navigation are all developed on the basis of compass, so this paper attempts to design an electronic compass to delve into how it works. The design is based on that the magnetic resistance sensor has the function of collecting the magnetic field strength, the collected information is processed by MCU, then form the position and angle information to display on the LCD screen. In this paper, the error of the electronic compass is calculated, at the same time, the error sources are analyzed. Under the premise of portable, make the compass more accurate, maximize the meet of the requirements for accurate targeting.
Key Words: Electronic compass Magneto resistive sensor MCU LCD screen
目录基于单片机的电子指南针设计
摘 要 I
Abstract II
目录 III
图清单 IV
表清单 IV
1 引言 1
2 框架设计 2
2.1 传感器方案选择与论证 2
2.2 单片机方案可行性论证 3
2.3 总体方案设计 4
3 硬件设计 6
3.1 单片机最小系统模块 6
3.2传感器模块 7
3.3显示模块 10
4 软件设计 13
4.1 HMC5883L与单片机通信软件设计 13
4.2 交互界面软件设计 14
4.3 系统总体软件设计 14
5 整体测试及误差分析 16
5.1 整体测试 16
5.2 误差分析 18
6 总结 20
参考文献 21
致谢 22
图清单
图序号 图名称 页码
图2-1 霍尼韦尔HMC5883L磁阻传感器 2
图2-2 霍尼韦尔HMC5883L引脚图