1、毕业设计(论文) I 基于单片机的自行车健身系统的设计基于单片机的自行车健身系统的设计 摘摘 要要 随着居民生活水平的不断提高,自行车不再仅仅是普通的运输、代步的工具,而 是成为人们娱乐、 休闲、 锻炼的首选。 自行车里程/速度计能够满足人们最基本的需求, 让人们能清楚地知道当前的速度、里程等物理量。本论文主要阐述一种基于霍尔元件 的自行车健身系统的设计。以 STC89C52 单片机为核心,A44E 霍尔传感器测转数, 实现对自行车里程/速度的测量统计,并通过公式计算出骑车者消耗的卡路里数,单位 采用 cal。采用 24C02 实现在系统掉电的时候保存里程信息,并能将自行车的里程数 及速度用
2、LCD 实时显示。文章详细介绍了自行车健身系统的硬件电路和软件设计。硬 件部分利用霍尔元件将自行车每转一圈的脉冲数传入单片机系统,然后单片机系统将 信号经过处理送显示。软件部分用 C 语言进行编程,采用模块化设计思想。该系统硬 件电路简单,子程序具有通用性,完全符合设计要求。 关键词:关键词:里程/速度 霍尔元件 单片机 LCD 显示 毕业设计(论文) II Design of Bicycle Fitness System Based on MCU Abstract With the developing of peoples life, the bicycle is not only the
3、 universal tool of transportation and substitute for walking, but becomes the first choice of entertainmenting and exercising. The bicycle mileage/speed 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 mileage/sp
4、eed design based on the Hall element is elaborated. By STC89C52 as kernel, using A44E Hall element to measure revolution, the measure and statistic are achieved. The range informations are saved by 24C02 when the power is off, the bicycle speed can be displayed on LCD. In this article, the hardware
5、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. Ab
6、out 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: Mileage / Speed Hall Element Single Chip Microcomputer LCD 毕业设计(论文) III 目目 录录 前前 言言 1 第第 1 1 章章 绪论绪论 1 第 1.1 节 选题背景. 2 第 1.2 节 研究目的与研究方法 . 2 第第 2 2 章章 系统方案设计系统方案设计. 4 第 2.1 节 总体方案. 4 第 2.2 节 方案的确定 . 6 第 2.3 节 自行车健身系统软件方案的设计 6 第第 3 3 章章 硬件电路的设计硬件电路的设计 . 8 第 3.1 节 概述 8 第 3.2 节 单片机与电路的设计 . 8 第 3.3 节 传感器及其