1、1 基于单片的电子式里程表的设计 学生: 指导教师: 内容摘要:从上世纪开始随着工业革命如火如荼的进行,也就意味着人类社会开始进 行着翻天覆地的变化,工业革命实质上就是科技的革命,在高科技不断发展的同时,许 多各式各样的里程表也广泛应用于各类的机车,里程表也随着电子技术的迅速发展而发 展,并且得到了广泛的应用。本设计将会介绍一种基于单片机的电子式里程表,该里程 表不仅能显示车辆行驶的总里程,而且还能显示车辆在一段时间的阶段里程,还可显示 车速,以及超速报警等功能。它的实现方式其实很简单,主要的流程是:将一个测量盘 安装在机车底盘的轴承上,通过传感器检测转速并抽样出转速的脉冲信息,而传感器将 会
2、采用光电式传感器,这样就可以将转速转换成光通量的变化,然后我们就可以将光通 量的变换转换成电量的变化,再通过频率计的测量将电路中的脉冲信息输入到单片机 中,然后再通过电量与转速之间的数学函数关系式之间的转换从而实现转速的测量,得 出我们所需要的相关数据信息。最后我们可以通过 LED 显示器来实现所得数据信息的显 示。 关键词:AT89S51 单片机 汽车里程表 LED 显示器 2 Design of electronic odometer based on monolithic Abstract:From the last century began with the industrial r
3、evolution of the like a raging fire, it means that human society began to turn the world upside down change, industrial revolution is the revolution of science and technology, in the high-tech development at the same time, a lot of every kind of odometer is widely used in various types of locomotive
4、s, odometer also develops along with the rapid development of electronic technology, and widely used. This design will introduce an electronic odometer based on single chip microcomputer, the odometer can not only show the total mileage of the vehicle, but also show the stage mileage vehicles in a p
5、eriod of time, can also display speed, and overspeed alarm function. The realization way of it is actually very simple, the main process is: a measuring wheel installed in the bearing of locomotive chassis, the sensor detects the speed and sampling information pulse speed, while the sensor will use
6、the photoelectric sensor, which can be converted into light speed changes of flux, then we can send light the amount of transformation to convert the changes of power consumption, measured through the frequency of the circuit of the pulse information input to the microcontroller, and then through the conversion between the mathematical function relationship between charge and speed type so as to realize the measurement speed, draw the relevant data and information we need. Finally, we can sh