摘要:采集的数据行处理并且显示在LCD上,起到显示当前所指方向的作用。本设计附加实时时钟和温度显示功能,通过LCD显示时间、温度和方向,令电子罗盘功能更强大。这样的指南针在测量精度更高的同时也实现了更加多样的功能,让电子指南针的应用更加便捷、高效。
关键词 单片机 电子罗盘 温度 时间 传感器 LCD
毕业设计说明书外文摘要
Title Design of Electronic Compass Based on MCU
Abstract:Compass as one of the four major inventions in China, early compass is relatively simple, only through the combination of magnetic needle and compass to indicate the direction, however, this compass is not convenient and poor sensitivity, accuracy is also error. In this paper, the basic working principle of electronic compass is studied and analyzed, and the magnetic field intensity of a certain direction is collected by magnetoresistive sensor. The collected data is processed by a single chip and displayed on the LCD to display the current direction effect. This design adds real-time clock and temperature display, through the LCD display time, temperature and direction, so that the electronic compass function more powerful. This compass in the measurement of higher precision but also to achieve a more perse functions, so that the application of electronic compass more convenient and efficient.
Keywords MCU electronic compass temperature time sensor LCD
目 次
1 绪论 1
1.1设计背景及意义 1
1.3设计的任务及要求 2
2 系统总体方案设计 3
2.1 系统总体框图 3
2.2 测量原理简介 3
3 电子罗盘的硬件设计 5
3.1 MSP430单片机电路设计 5
3.2 HMC5883传感器模块和接口电路 8
3.3 实时时钟电路 10
3.4 温度采样电路 14
3.5 液晶显示电路 15
3.6 按键输入电路 19
4 电子罗盘的软件设计 21
4.1 软件设计任务 21
4.2 软件设计工具 21
4.3 主程序 22
4.4 电子罗盘程序 23
4.5 实时时钟程序 24
4.6 温度采样程序 25
4.7 液晶显示程序 26
4.8 按键输入程序 26
4.9 I2C程序 26
5 系统调试 27
5.1 硬件部分系统调试 27
5.2 软件部分系统调试 28
5.3 误差分析 MSP430单片机电子罗盘的设计+电路图:http://www.chuibin.com/zidonghua/lunwen_206402.html

