基于FPGA的高精度电子罗盘设计
基于FPGA的高精度电子罗盘设计(论文12000字)
摘要:本文设计了一种基于FPGA的高精度电子罗盘,该设计以FPGA为主控制芯片,由它以IIC协议从HMC5883L地磁传感器模块中采集相关的地磁数据,再通过地磁偏角算法得出方位角,随后传至显示屏,再由显示屏实时显示出来。该设计在无磁场干扰情况下能及时准确地显示方位,具有较好的实用性、及时性和有效性。测试表明,该电子罗盘能在水平方向上实时有效地显示出所指方位与方位角,方位角精度与智能手机内置罗盘相比在2°以内,并且功耗低,运行稳定,可用于普通导航领域。
关键词:FPGA; HMC5883L; IIC协议;电子罗盘
Design of high precision electronic compass based on FPGA
Abstract:This article designs an FPGA-based high-precision electronic compass. This design uses an FPGA as the main control chip. It collects relevant geomagnetic data from the HMC5883L geomagnetic sensor module with the IIC protocol,and then obtains the azimuth angle through the correlation algorithm,and then transmits it to the display screen,which is then displayed in real time by the display screen. The design can accurately and accurately display the orientation in the absence of magnetic field interference,and has good versatility,real-time performance and reliability. Tests show that the electronic compass can effectively display the indicated azimuth and azimuth angle in real time in the horizontal direction.The accuracy of the azimuth angle is within 2° compared with the smartphone built-in compass,and the power consumption is low and the operation is stable. It can be used in the general navigation field. [资料来源:www.doc163.com]
Key words: FPGA;HMC5883L;IIC protocol; electronic compass
[资料来源:https://www.doc163.com]
目录
1 绪论 1
1.1 课题研究背景及意义 1 [资料来源:www.doc163.com]
1.2 课题内容概述 1
2 电子罗盘设计原理与思路 2
2.1 电子罗盘的原理 2
2.2 电子罗盘设计思路 3
3 系统硬件选择与设计 4
3.1 FPGA芯片的选择 4
3.2 FPGA最小系统的设计 5
3.3 电源模块与稳压模块的设计 7
3.4 传感器模块的选择 7
3.5 动态存储器的设计 9
3.6 显示模块的设计 10
3.7 PCB布局与布线的设计 11
4 系统功能的软件设计 12
4.1 系统开发总体设计 12
4.2 系统软件环境设计 13
4.3 IIC通讯协议驱动设计 17 [资料来源:Doc163.com]
4.4 方位角度算法设计 19
4.5 显示驱动设计 21
5 系统调试 21
6 总结与展望 23
参考文献 24
致谢 25