毕业论文基于STC12C5410AD单片机的倾角测试系统设计

2019-04-21 13:37

学士学位论文

题目:基于STC12C5410AD单片机的

倾角测试系统设计

2009年 月 日

山东大学学士学位论文

目 录

目 录..................................................................................................................... i 摘 要.................................................................................................................... I Abstract ................................................................................................................. II 第一章 绪论...................................................................................................... 1

1.1课题背景及意义...................................................................................... 1 1.2 本文主要工作及章节安排..................................................................... 1 第二章 角度测量系统硬件设计........................................................................ 2

2.1 硬件功能及总体结构............................................................................. 2 2.2 信号采集模块......................................................................................... 2

2.2.1 加速度传感器MMA7260Q简介 ............................................... 2 2.2.2结构与原理................................................................................... 3 2.2.3 倾角测试模块电路设计.............................................................. 5 2.3 LED显示模块 ......................................................................................... 6

2.3.1 SPI简介 ........................................................................................ 6 2.3.2显示功能设计............................................................................... 7 2.4单片机编程下载及串口通讯设计.......................................................... 8 2.5 DS1302简介 ........................................................................................... 9 2.6 微控制器模块....................................................................................... 10

2.6.1 STC12系列单片机简介 ............................................................ 10 2.6.2 单片机系统电路设计................................................................ 11 2.7 其他电路设计....................................................................................... 12

2.7.1.键盘电路设计.......................................................................... 12 2.7.2.声光报警电路设计.................................................................. 12

第三章 软件设计.............................................................................................. 14

3.1数据处理................................................................................................ 14

3.1.1 角度数据采集设计.................................................................. 14

i

山东大学学士学位论文

3.1.2 数字滤波及工程变换部分...................................................... 15 3.2数据存储部分........................................................................................ 16 3.3 DS1302软件设计 ................................................................................. 19 3.4键盘功能设置........................................................................................ 22 3.5 通信部分............................................................................................... 25 3.6 其他部分软件设计............................................................................... 27

3.6.1 报警部分软件设计:................................................................ 27 3.6.2 LED显示程序设计 .................................................................... 28

第四章 实验测试结果及倾角测试原理............................................................ 30

4.1实验测试结果........................................................................................ 30 4.2 倾角测试原理及角度计算方法........................................................... 30 总 结.................................................................................................................. 32 致 谢.................................................................................................................. 33 参考文献.............................................................................................................. 34 附录 部分程序代码............................................................................................ 35

ii

山东大学学士学位论文

摘 要

本文设计并实现一种基于STC12单片机为主控制器的倾角数据采集系统,采用三轴加速度传感器MMA7260Q进行倾角测量。论文介绍了总体方案设计、各个模块的硬件组成和软件设计。硬件方面主要介绍了MMA7260Q加速度传感器的原理,微控制器的选型,串行通信模块。 系统采用DS1302时钟芯片为角度采集时间标签,有键盘,显示人机接口部分,可以设置角度报警值和实时显示当前角度数据,并可以实现声光报警。软件设计部分主要介绍了DS1302的使用、角度数据的采集、存储及数据与上位机的通信,并给出了部分重要子程序。角度数据通过虚拟串口上传到上位机进行分析处理。最后给出了实际角度测试的方法与测试结果。

关键词:STC12单片机; 加速度传感器; 角度测量

I

山东大学学士学位论文

Abstract

An angle data acquisition system is designed and realized in this thesis, which based on single-chip of STC12 as the MCU. Use three axle acceleration instrument MMA7260Q to carry on the measurement of dip angle. The paper introduces the overall concept design, each module hardware composition and the software design。Introduces the hardware acceleration sensor MMA7260Q principle, the selection of micro-controller, serial communication module. The system uses the DS1302 clock chip for the angle acquisition time label, there is the keyboard, showing part of man-machine interface the system can set the alarm value perspective and the perspective of real-time, display the current data and achieve sound and light alarm. Software design introduces some of the major use of the DS1302, the perspective of data collection, storage and data communication with the host computer, and gives some important subroutine. Finally, the paper has given the actual method of angle test and result of the test.

Key words: STC12 MCU; Acceleration Sensor; Measurement of angle

II


毕业论文基于STC12C5410AD单片机的倾角测试系统设计.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:少教多学读书笔记

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: