自行车里程表的设计

2019-04-09 20:19

学 号:1434060103

毕业设计说明书

GRADUATE DESIGN

设计题目:基于单片机的自行车里程速度表设计与实现

学生姓名:程晓锋

专业班级:2014自升本1班 学 院:继续教育学院 指导教师:邸志刚 副教授

2016年11月30日

摘要

摘 要

随着居民生活水平的不断提高,自行车不再仅仅是普通的运输、代步的工具,而是成为人们娱乐、休闲、锻炼的首选。自行车的速度里程表能够满足人们最基本的需求,让人们能清楚地知道当前的速度、里程等物理量。本论文主要阐述一种基于霍尔元件的自行车的速度里程表的设计。以 AT89C52 单片机为核心,霍尔传感器测转数,实现对自行车里程/速度的测量统计,采用 1302 实现在系统掉电的时候保存里程信息,并能将自行车的里程数及速度用LCD实时显示。文章详细介绍了自行车的速度里程表的硬件电路和软件设计。硬件部分利用霍尔元件将自行车每转一圈的脉冲数传入单片机系统,然后单片机系统将信号经过处理送显示。软件部分用C语言进行编程,采用模块化设计思想。该系统硬件电路简单,子程序具有通用性。

关键词:里程/速度;霍尔元件;单片机;LCD显示

I

Abstract

Abstract

With the developing of people’s life, the bicycle is not only the universal tool of transportation and substitute for walking, but becomes the first choice of entertainment and exercising. The bicycle mileage/speed can fulfill the basic need of people’s life, so that they can learn the speed and the mileage of the bicycle. In this paper, the bicycle mileage/speed design based on the Hall element is elaborated. By AT89C52 as kernel, using Hall element to measure revolution, the measure and statistic are achieved. The range information is saved by when the power is off, the bicycle speed can be displayed on LCD. In this article, the hardware circuit and software design of bicycle mileage/speed instrument are introduced in detail. About the hardware, the pulse number is transmitted of one cycle of the bicycle into Single Chip Microcomputer system. Then the signal processed by Single Chip Microcomputer system is sent to display scream. About the software, in assemble language; the program is designed in the mode of modules. The system has simple hardware, common sub-program.

KEY WORDS: Mileage / speed; Hall element; Single chip microcomputer; LCD display .

目录

前 言 .................................................................... 1 第1章 绪论 .............................................................. 2

1.1 课题背景 ......................................................... 2 1.2 设计的主要内容及技术指标 ......................................... 2 第2章 自行车里程表总体方案设计 .......................................... 3

2.1 任务分析与实现 ................................................... 3 2.2 自行车里程表硬件方案设计 ......................................... 3 2.3 自行车里程表软件方案设计 ......................................... 4 第3章 自行车里程表硬件模块设计 ........................................... 5

3.1 里程表的硬件设计 ................................................. 5

3.1.1 霍尔传感器电路模块设计 ...................................... 5 3.1.2 按键电路模块设计 ............................................ 6 3.1.3 电源电路模块设计 ............................................ 6 3.1.4 时钟电路模块设计 ............................................ 7 3.1.5 LCD显示模块电路模块设计 .................................... 7 3.1.6 串口下载电路模块设计 ........................................ 8 3.1.7 复位电路模块设计 ............................................ 9 3.1.8 晶振电路模块设计 ........................................... 10

第4章 软件的设计 ....................................................... 11

4.1 里程表的软件设计 ................................................ 11

4.1.1 里程速度功能模块实现 ....................................... 11 4.1.2 日历时钟模块功能 ........................................... 14 4.1.3 LCD1602液晶显示模块 ....................................... 17

第5章 软件调试 ......................................................... 21

5.1 程序的检测与调试 ................................................ 21

5.1.1 Keil软件简介 ............................................... 21 5.1.2 编制单片机应用程序的步骤和难点 ............................. 21 5.2 系统仿真调试 ..................................................... 24

5.2.1 程序的查错手段 .............................................. 25

第6章 结论 ............................................................. 27

目录 第7章 谢辞 ............................................................. 28 参考文献 ................................................................. 29 附录1 硬件设计原理图 .................................................... 30 附录2 硬件电路仿真图 .................................................... 31 附录3 软件程序 .......................................................... 32 译文 ..................................................................... 69 C语言 ................................................................... 69


自行车里程表的设计.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:用递归与非递归方式求Hermite多项式的值

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

马上注册会员

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