电子式里程表的设计

 2023-02-21 08:02

论文总字数:28333字

摘 要

这些年来,由于科技的不断飞跃,带动了单片机方面的快速发展,也让单片机广泛被使用。事实上,由于单片机在体积上比较小,可以很容易放置在产品内部,不占空间,且可以替换老一代机械使用零件,在减小产品体积的同时,增强功能,节省材料费用,实现轻巧化、智能化。

现代测量速度、里程数的方法有许多种,有较为原始的,有较为简单方便的。但是在不同的环境以及产品使用中,对应的测量使用方法有自身的缺点和局限性。因此,这对我们研究、使用单片机来测量速度、里程有着非常大的意义和价值。本次设计是基于STC89C52的电子式里程表,主要利用霍尔元器件、蜂鸣器、LED显示等实现具有显示速度、总里程、时间以及报警功能。灵活的运用了霍尔元器件的原理,聪明、巧妙地结合了软、硬件之间的关系。本文对电子式里程表设计中所需的硬件以及原理作了详细介绍,并对一些存在的问题进行了探讨和说明。硬件和软件相关部分的设计和实现作了严谨的介绍和分析,符合电子式里程表的实现要求。

关键词:单片机;霍尔元件;蜂鸣器

Design of Intelligent Charger Software Based on MCU

Abstract

With the continuous development of science and technology, and improve the MCU in the field of various aspects have great use and promotion. In fact, due to the microcontroller on the volume is small, can be easily placed inside the product, does not occupy a space, and can be used to replace the old mechanical parts, at the same time of reducing product volume, enhancements, saves the material cost, realizing the light and intelligent.

There are many ways of modern measurement speed, mileage, have relatively primitive, have relatively simple and convenient. But in a different environment and product use, the corresponding measurement using method has its defects and limitations. Therefore, the research, we use single chip microcomputer to measure speed, mileage has great significance and value. This design with STC89C52 single-chip microcomputer as the core, the hall sensor revolution is complementary, so as to achieve more convenient and accurate measurement of speed, total mileage. The principle of pulse signal by using hall sensor, to display the number of turns per minute. To fully demonstrate the function of MCU, combined with the characteristics of the single chip microcomputer, flexible use. In this paper, the electronic odometer in the design of the hardware and the principle introduced in detail, and some existing problems were discussed and illustrated. The relevant part of the design and implementation of hardware and software made a careful analysis of the introduction and, as to meet the requirements of the implementation of electronic odometer.

Keywords: Microcontrollers;Hall Sensor;Buzzer

目 录

摘 要 I

Abstract II

第一章 绪 论 1

1.1 课题研究的背景及意义 1

1.1.1 课题背景 1

1.1.2 课题意义 1

1.2 本课题主要研究任务及内容 1

1.3 本章小结 1

第二章 电子式里程表设计任务 2

2.1设计要求 2

2.2 方案设计 2

2.3 本章小结 3

第三章 系统硬件平台的设计 4

3.1 总体设计方案说明 4

3.2 单片机最小系统 4

3.2.1 STC89C52单片机 4

3.2.2单片机的引脚功能介绍 5

3.2.3单片机中断系统介绍 6

3.2.4单片机定时/计数功能介绍 7

3.3传感器及其测量系统 7

3.3.1霍尔器件概述 7

3.3.2霍尔传感器的测量原理 8

3.3.3转速测量方法 8

3.4其他器件 9

3.4.1 蜂鸣器 9

3.5 本章小结 10

第四章 系统软件的设计与实现 11

4.1 概述 11

4.2 电子式里程表总体程序设计 11

4.3中断子程序的设计 12

4.4时钟电路的设计 13

4.5复位电路的设计 13

4.6显示电路的设计 14

4.7本章小结 15

第五章 调试及运行结果分析 11

5.1 系统仿真调试 16

5.2 调试故障及原因分析 16

5.3 本章小结 16

第六章 结束语 17

致 谢 18

参考文献(References) 19

附 录 20

第一章 绪 论

1.1 课题研究的背景及意义

1.1.1 课题背景

远古至今,自从人类的出现,文明和科技就不段地在发展。从马车、自行车、汽车的相继发明,使得人类对于科技技术的要求不断提高。如今,电动车、汽车的普及,使得人们对于汽车、电动车,甚至是自行车的功能也是越来越高,这是人类的需求不断在增加,科技不断再发展的局势。

驾驶车的人们不仅仅需要车本身速度以及安全性能的提升,更是需要直观的看到行驶中车的状态。那么,这个时候,车的当下行驶速度、里程、时间等,都需要精确的显示出来,这对于行车状态的人来说,除了主观的控制安全性能的提高,更是对车行驶状态的深入了解。电子式里程表作为不仅仅是车类的一大辅助工具,也可以作为机器运转速度的评判。甚至相应而生的还有人性化报警功能,极大地提高了行驶过程中的安全性能,这些功能的出现极大地满足了人们对于电子式里程表的需求。本设计采用了STC89C52单片机,它能智能地显示出当前行驶速度、总里程数以及时间,并且行驶速度超过设置预警速度,产生警报。

1.1.2 课题意义

近年来随着汽车不断的普及 、城市车辆集聚增多,人们对于不管是汽车还是电动车上的里程表的要求也逐步变高,从一开始的大概显示,到现在要求精确显示,并且显示总里程数等其他功能。而基于单片的电子式里程表体积小,造价低廉且功能多容易实现,计数相对精确,因此成为了现代汽车和电动车中里程表的首选。

剩余内容已隐藏,请支付后下载全文,论文总字数:28333字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;