1、 【摘【摘 要】要】本文介绍的速度与里程表设计以单片机最小系统和霍尔传感器为核心。 传感器将 不同车速转变成的不同频率的脉冲信号输入到单片机进行控制与计算, 再采用 LED 模块进行 显示,使得电动自行车的速度与里程数据能直观的显示给使用者。 本系统由霍尔传感器、RC 滤波电路、单片机 AT89S51、系统化 LED 显示模块、数据存储电路 和键盘控制组成。 其中霍尔传感器包含信号放大和波形整形。 对待测信号进行放大的目的是 降低对待测信号的幅度要求; 波形变换和波形整形电路则用来将放大的信号转换成可与单片 机相连的 TTL 信号; 通过单片机的设置可使内部定时器 T1 对脉冲输入引脚 T0
2、进行控制, 这 样能精确地算出加到 T0 引脚的单位时间内检测到的脉冲数; 设计中速度显示采用 LED 模块, 通过速度换算得来的里程数采用 I2C 总线并通过 E2PROM 来存储,既节省了所需单片机的口 线和外围器件,同时也简化了显示部分的软件编程 本文先对里程表设计当中所需设备作了详细介绍, 对设计中存在的问题进行了说明; 而 后对硬件和软件部分的设计和实现作了认真的分析; 然后给出了系统的建模过程及相应的系 统模型,在此基础上进行了控制仿真,并对仿真效果进行了比较。 本里程表的设计具有结构简单,成本低廉,显示清晰,稳定可靠等优点。并且可进行扩 充,加入时速表的功能,更加方便的了解你现在
3、所处的情况。 关键词关键词:单片机最小系统,单片机最小系统,LEDLED 数码管,霍尔传感器,数码管,霍尔传感器,RCRC 滤波器滤波器,EEPROM,EEPROM 存存储器储器 Bicycle Mileage Count Table Abstract: This paper describes the design speed and Odometer to SCM system and the smallest Hall sensor at the core. Different speed sensor into different frequency pulse signal inpu
4、t to the microprocessor control and calculation adopt LED modules, making the speed of electric bicycles and mileage data can be directly displayed to the user. The system consists of Hall sensor, RC filter circuit, SCM AT89S51, systematic LED display modules, data storage and keyboard control circu
5、it components. Hall sensor which contains signal amplification and waveform shaping. Deal signals measured amplification of the treatment is to reduce the rate of measured signals; Waveform transform and waveform shaping circuit will be used for amplification of the signal can be converted into SCM
6、connected with TTL signals; SCM through the setup will enable the internal timer T1 pulse input pin T0 control, This can be accurately calculated foisted T0 pin unit time detection of the pulse; Design LED display modules, through a conversion rate of mileage using I2C bus through E2PROM to storage, saved for SCM mouth lines and external devices, but also simplify the show part of the software program This article first right Odometer designs required equipment, details of the design issues of;