基于单片机的自行车里程表设计样本

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

摘要

随着居民生活水平不断提高,自行车不再仅仅是普通运送、代步工具,而是成为人们娱乐、休闲、锻炼首选。自行车里程表可以满足人们最基本需求,让人们能清晰地懂得当前速度、里程等物理量。重要阐述一种基于霍尔元件自行车里程表设计。以AT89C52 单片机为核心,A44E 霍尔传感器测转数,实现对自行车里程/速度测量记录,采用24C02 实当前系统掉电时候保存里程信息,并能将自行车里程数及速度用LED实时显示。文章详细简介了自行车里程表硬件电路和软件设计。硬件某些运用霍尔元件将自行车每转一圈脉冲数传入单片机系统,然后单片机系统将信号通过解决送显示。软件某些用汇编语言进行编程,采用模块化设计思想。该系统硬件电路简朴,子程序具备通用性,完全符合设计规定。

核心词:里程/速度;霍尔元件;单片机;LED显示

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 entertainmenting 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 these paper,the bicycle mileage/speed design based on the Hall element is elaborated. By AT89C52 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 LED. 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,and meet the demand of design.

Key words:Mileage / speed;Hall element;Single Chip Microcomputer;LED

目录

第1章绪论 ........................................... 错误!未定义书签。

1.1 课题产生背景 ................................ 错误!未定义书签。

1.2 课题重要任务及内容.......................... 错误!未定义书签。第2章自行车里程表总体方案设计........................ 错误!未定义书签。

2.1 任务分析与实现.............................. 错误!未定义书签。

2.2 自行车里程表硬件方案设计.................... 错误!未定义书签。

2.3 自行车里程表软件方案设计.................... 错误!未定义书签。第3章自行车里程表硬件电路设计........................ 错误!未定义书签。

3.1 概述 ........................................ 错误!未定义书签。

3.2 传感器及其测量系统.......................... 错误!未定义书签。

3.3 芯片简介 .................................... 错误!未定义书签。

3.4 单片机外围电路设计.......................... 错误!未定义书签。第4章自行车里程表软件程序设计........................ 错误!未定义书签。

4.1 概述 ........................................ 错误!未定义书签。

4.2 自行车里程表总体程序设计.................... 错误!未定义书签。

4.3 中断子程序设计.............................. 错误!未定义书签。

4.4 数据解决子程序设计.......................... 错误!未定义书签。

4.5 显示子程序设计.............................. 错误!未定义书签。第5章系统调试与分析 ................................. 错误!未定义书签。

5.1 自行车里程表系统调试........................ 错误!未定义书签。

5.2 调试故障及因素分析.......................... 错误!未定义书签。

相关文档
最新文档