- 311
- 0
- 约3.64万字
- 约 56页
- 2017-10-30 发布于河南
- 举报
基于51单片机的自行车测速系统设计
摘要:随着居民生活水平的不断提高,自行车不再仅仅是普通的运输、代步的工具,而是成为人们娱乐、休闲、锻炼的首选。因此,为了满足人们对自行车更强大功能的要求,给人们带来更多的方便,设计一种体积小、操作简单的便携式自行车里程速度器,它能自动地显示当前自行车行走的距离及运行的速度。本论文主要阐述一种基于霍尔元件的自行车里程速度器的设计。以 AT89C52 单片机为核心,A44E 霍尔传感器测转数,实现对自行车里程/速度的测量统计,采用 24C02 实现在系统掉电的时候保存里程信息,并能将自行车的里程数及速度用LED实时显示。
关键词:里程/速度,霍尔元件,AT89C52单片机,LED显示
Bicycle speed system design based on 51 single chip microcomputer
Abstract: With the continuous improvement of living standards, the bicycle is not only the common transport, transport tool, but become entertainment, leisure, exercise of choice. Therefore, in order to satisfy the people to the bicycle more powerful, brings more convenience to people, the portable bicycle mileage speed sensor design of a small volume, simple operation, it can automatically display the distance and the bicycle running speed. This paper mainly expounds a kind of design speed bicycle mileage is based on Holzer element. AT89C52 microcontroller as the core, measuring speed A44E Holzer sensor, measuring the speed of the bicycle mileage / statistics, using 24C02 to realize saving mileage information when the power is off, and the bicycle mileage and speed with the LED real time display.
Keywords: mileage / speed, Holzer element, AT89C52 microcontroller, LED
目 录
1前言 1
1.1课题产生的背景 1
2总体方案设计 3
2.1任务分析与实现 3
2.2 硬件方案设计 4
2.2.1里程/速度测量传感器的设计 4
2.2.2方案的确定 5
2.3软件方案设计 6
3系统硬件设计 7
3.1概述 7
3.2传感器及其测量系统 7
3.2.1霍尔传感器的测量原理 8
3.2.2集成开关型霍尔传感器 8
3.3单片机的选型 10
3.3.1单片机概述 10
3.3.2单片机中断系统 10
3.3.3单片机定时/计数功能 11
3.4其他器件的选型 12
3.4.1存储器 12
3.4.2 74LS74芯片 13
3.4.3 74LS244芯片的介绍 14
3.5电路设计 14
3.5.1时钟电路设计 14
3.5.2 复位电路的设计 15
3.5.3 显示电路的设计 16
3.5.4 报警电路的设计 18
4系统软件设计 19
4.1总体程序设计 19
4.2中断子程序的设计 21
4.3数据处理子程序的设计 22
4.3.1里程计算子程序 22
4.3.2速度计算子程序 23
4.4显示子程序设计 24
5系统调试与分析 26
5.1 系统调试 26
5.1.1 调试系统简介 26
5.1.2 系统仿真 26
5.2 调试故障及原因分析 27
总 结 29
参考文献 30
致 谢 32
附录1 电路原理图 33
附录2 程序清单 34
1前言
单片机自20世纪70年代问世以来,作为微计算机一个很重要的分支,应用广泛,发展迅速,已对人类社会产生了巨大的影响。目前,单片机的应用已经渗透到国民经济与人们生活中的各个领域。各类导弹的导航装置,飞机上各种仪表的控制,计算机的网络通讯与数据传输,工业自动化过程的实
原创力文档

文档评论(0)