摘要导航系统一直是汽车、航海、航空等领域必不可少的组成部分,而电子罗盘又是导航系统的重要组成部分。随着微型计算机的不断发展,基于微处理器的电子罗盘可以通过编写合适的校正算法,对电子罗盘的误差进行校正,成为智能传感器。本文正是在微处理器的基础上研制出具有倾角补偿的三维电子罗盘。82886
本文以三维磁阻式电子罗盘为研究对象,进行了以下的设计:在分析了三维电子罗盘的工作原理后,主要进行电子罗盘的硬件,简单进行了软件设计。其中三轴磁阻传感器选用Honeywell公司的HMC5883L,加速度计传感器选用Analog Devices公司的ADXL345,微控制器选用基于ARM Cortex-M0的LPC1114FBD48。在Altium Designer 09平台上进行硬件设计,在Keil软件中使用C语言编写驱动程序和应用程序并进行下载调试。最后对电子罗盘的误差进行分析,针对软磁干扰和硬磁干扰编写椭圆拟合算法,采集实验数据,分析实验结果验证了椭圆拟合算法。
毕业论文关键词三维电子罗盘 三轴磁阻传感器 三轴加速度计 LPC1114 椭圆拟合
毕业设计说明书外文摘要
Title Design and error analysis of three axis electronic compass based on ARM microcontroller
AbstractNavigation system has been the indispensable part of cars, navigation, aviation and other fields, and electronic compass navigation system is an important part of it。With the continuous development of microcomputer, the electronic compass based on microprocessor becomes a smart sensors by writing the appropriate correction algorithm to calibrate the error of electronic compass 。This article has developed triaxial electronic compass with Angle compensationis based on microprocessor。
Based on triaxial magnetic resistance type electronic compass as the research object, This article makes the design of the following:after the analysis of the working principle of three dimensional electronic compass, carries on the hardware and software design of the electronic compass。Three axis with Honeywell HMC5883L magnetic resistance sensor, accelerometer sensors use Analog Devices company ADXL345, micro controller is chosen based on ARM architecture -M0 LPC1114FBD48, design in Altium Designer 09 platform hardware,design in the Keil software using C language to write the driver and application and to download debugging。And analyzes the error of the electronic compass, in view of the soft magnetic interference and hard magnetic interference。 Write a ellipse fitting method, the experimental data, the analysis of the experimental results verify the ellipse fitting method。
KeywordsThree axis electronic compassThree-axis magnetic resistance sensor Three-axis accelerometerLPC1114 Ellipse fitting
目次
1引言 1
1。1设计背景 1
1。3论文的主要内容和组织结构 3
1。4本章小结 4
2三维电子罗盘的整体介绍 5
2。1三维电子罗盘的测量参数 5
2。2三维电子罗盘的测量原理 6
2。3 三维电子罗盘的组成 8
2。4RS232串口通信接口标准和I2C总线标准 8
2。5本章小结 9
3三维电子罗盘的硬件设计 10
3。1总述 10
3。2硬件开发工具