针对电子罗盘的定位导航应用,开发了一种基于现场可编程门阵列(FPGA)作为微控制器的数字磁罗盘,具有成本低、速度快、功耗小的优点。FPGA负责完成对数字磁阻传感器和数字加速度计的数据采集、方位角计算、LED显示以及串口输出等处理。对罗盘的误差来源进行了分析,重点对其中的硬干扰误差进行了补偿修正。为了验证设计效果,对数字磁罗盘实物进行了测试,测试结果表明:磁罗盘在进行误差补偿后,精度范围能够达到1°~2°左右,且长期运行时稳定,可适用于普通导航领域。
For the positioning and navigation application of electronic compass, a digital magnetic compass based on FPGA micro controller is developed, which has the advantages of low cost, high speed, low power consumption. FPGA is responsible for the processing work, data acquisition, azimuth calculation, LED display and serial output of the digital magnetoresistive sensor and digital accelerometer. After analyzing the compass error sources, compensation is emphasized on the hard interference error. In order to verify the design effect ,the magnetic digital compass material is tested, the test results show that the magnetic compass precision is in the range of 1°- 2 ° after error compensation, which can work stablely for a long time and can be used for general navigation area.