单片机的自行车里程计的制作毕业论文

目录
摘 要 1
一、绪论 2
(一)研究目的 2
(二)课题任务 2
二、整体设计 2
(一)硬件方案设计 2
(二)整体设计框图 2
三、硬件设计 3
(一)单片机最小系统 3
(二)电源电路 3
(三)传感器电路 4
(四)显示电路 4
(五)报警电路 5
(六)驱动电路 5
四、软件设计 6
(一)概要 6
(二)主程序 6
(三)中断子程序 7
(四)显示子程序 7
五、调试 7
(一)软件调试 7
(二)硬件调试 8
六、总 结 9
致谢 11
参考文献 12
附录1 电路原理图 13
附录2 PCB图 14
附录3 源程序 15
摘 要
随着社会的发展,人们在工作之余,运动成了人们必须要做的一件事。骑行成了越来越多人的选择,而自行车速度里程计能让人们清楚的知道了自己骑行时的速度、里程等物理量,能让人们更好的锻炼。此篇论文论述了一种自行车速率里程计的设计。该速率里程计将测出单片机中脉冲信号的宽度,之后经过单片机算出速度和行程,最后将所得到的数据储存。经LCD显示屏显现出所测到的速度和行程。本文说明的是自行车速度/里程测试仪的软/硬件设计,电路部分用的是用霍尔元件,系统将信号做过处理后送到显示屏。软件部分采取模块化思想,用汇编语言进行汇编。此设计,硬件电路,完全符合设计要求简洁,多功能的子程序。
关键词:速度/里程;霍尔元件;单片机;LCD液晶显示
Abstract
With the development of society, people in the work of the surplus, sports has become one of the things that people have to do. Cycling has become more and more peo
 *好棒文|www.hbsrm.com +Q: %3^5`1^9`1^6^0`7^2# 
;单片机;LCD液晶显示
Abstract
With the development of society, people in the work of the surplus, sports has become one of the things that people have to do. Cycling has become more and more peoples choice, and bicycle speed mileage meter can let people know the speed, mileage and other physical quantity, can make people better exercise. This paper mainly describes a design of bicycle speed mileage meter based on Holzer element. The speed odometer sensor input to the width of the real-time pulse signal based on the measurement, and then through the single-chip microcomputer to calculate speed and distance, and then store the data from serial data memory. The LCD LCD display shows the measured speed and stroke. The bicycle speed / mileage tester hardware circuit and software design, part of the circuit to will bike every circle of the pulse number is input into the single chip computer system but with Hall element, SCM system will signal processing show the evacuation. The software part adopts the idea of modular design, using assembly language programming. In this design, the hardware circuit is simple, universal subroutine meets the design requirements
Key words: speed / mileage; Holzer components; MCU; LCD liquid crystal display
一、绪论
(一)研究目的
随着大规模及超大规模集成电路的发展,使得全数字测试仪越来越普及,在测量范围和测量精度方面都有很大提高,其转速测试仪也可以全数字化处理。因此,本次设计的目的是:在自行车上,用AT89C51单片机设计的全数字式车速表自行车里程,分析其产生误差的可能性,并从提高测量精度的角度出发,为今后的实际使用提供参考。本设计以单片机为中心,设计全数字化的自行车速度里程计这个测试仪采用全数字化结构,操作使用方便,的为用户提供速度和行程的更加精确地数值。
(二)课题任务
本设计以MCS-51为核心,先将A44E集成开关型霍尔型传感器作为测转速和里程的检测,然后经过单片机处理数据,用LCDEDM1190A显示部分显现出速度和里程。
软件设计包括:芯片的初始化程序、显示子模块等,软件设计的主要思想是由上至下,软件采用汇编语言编写,其余子模块一个个设计。
具体的硬件电路包括

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/1618.html

好棒文