1、 1 毕业设计毕业设计 设计题目:设计题目:基于单片机的自行车里程速度计设计基于单片机的自行车里程速度计设计 学学 院:院: 专专 业:业: 班班 级:级: 姓姓 名:名: 指导教师:指导教师: 日日 期:期: 年年 月月 日日 2 摘摘 要要 目前自行车已成为人们娱乐、休闲、锻炼的首选,尤其是对于用来锻炼的人们, 自行车速度里程计让他们清楚地知道当前的速度、里程等物理量,更好的用于锻炼。 本论文主要阐述一种基于霍尔元件的自行车速度里程计设计。 以 AT89C51 单片机为 核心,A44E 霍尔传感器测转数,实现对自行车速度里程计测量统计。该速度里程计 将传感器输入到单片机的脉冲信号的宽度实时
2、地测量出来, 然后通过单片机计算出速 度和行程,再将所得的数据存储到串口数据存储器,采用 CAT24WC32 实现在系统 掉电的时候保存速度和行程信息,并由串口液晶显示模块实时显示出所测速度和行 程。本设计介绍了自行车速度/里程测试仪的硬件电路和软件设计。硬件部分利用霍 尔元件将自行车每转一圈的脉冲数传入单片机系统, 然后单片机系统将信号经过处理 送显示。 软件部分用汇编语言进行编程, 采用模块化设计思想。 该系统硬件电路简单, 子程序具有通用性,完全符合设计要求。 关键词:速度/里程;霍尔元件;单片机;LCD 液晶显示 3 AbstractAbstract Now the bicycle h
3、as become the first choice of entertainmenting and exercising. Especially for people to exercise,The bicycle speed/trip can fulfill the basic need of peoples life, so that they can learn the speed and the mileage of the bicycle. In these paper, the bicycle speed/trip design based on the Hall element
4、 is elaborated. By AT89C51 as kernel, using A44E Hall element to measure revolution, the measure and statistic are achieved. The range informations are saved by CAT24WC32 when the power is off, the bicycle speed can be displayed on LCD. In this article, the hardware circuit and software design of bi
5、cycle speed/trip 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, and meet the demand of design. Key words: speed/trip; Hall element; Single Chip Microcomputer; LCD 4 目录目录 一、概述 1、设计目的 1 2、课题简介 1 二、系统设计 1、总体设计方案 2 2、硬件部分简介 3 (1)AT89c51 芯片简介 3 (2)硬件设计