1、光电式速度里程表设计 I 光电式自行车速度里程表设计 摘要 随着科技的迅速发展,单片机的应用也越来越广泛,并带动传统控制检测技术不 断更新。现在的里程表大多是电子式的,用数码管或液晶显示器即时显示,显示更加 直观。电子式里程表采用接触车速传感器代替软轴传动,可使里程表的安装位置不受 距离限制,进一步有效地克服了机械式里程表中的诸多不足。 方案采用了一种以单片机 AT89C51 为主控机,使用光电传感器进行自行车里程、 速度测量的装置。 传感器将不同车速产生的不同频率的脉冲信号输入到单片机进行控 制与计算,再采用 LCD 液晶显示模块进行显示,使得自行车的速度与里程数据能直观 的显示给使用者。
2、本设计主要包括自行车轮脉冲采集、键盘输入和数据显示等部分, 主程序用 C 语 言编写,完成各项功能及数据的处理。本里程表的设计具有结构简单,成本低廉,显 示清晰,稳定可靠等优点。并且可以进行扩充,更方便于使用者。 关键词 光电传感器 单片机 液晶显示器 里程表 光电式速度里程表设计 II THE DESIGN OF PHOTOELECTRIC BICYCLE ODOMETER ABSTRACT With the rapid development of technology, more and more widespread application of microcomputer, prom
3、ote the traditional control detection technology constantly updated. Most of the current electronic odometer, and with the LED digital tube or LCD display real-time, display more intuitive. Electronic odometer flexible shaft using the contact speed sensor instead of driving, mileage tables can be in
4、stalled without distance limitations, and further to effectively overcome the mechanical disadvantages of mileage in the table. The plan adopts the system and configuration of combining the microcontroller AT89C51 as the main control computer ,using the photoelectric sensor bicycle odometer, speed m
5、easuring devices. when Different speed pulse signals of different frequencies produced by sensor are input into the microcontroller,after its calculation, liquid crystal will display the datas, making the bikes speed and distance data visually to the user. The design includes a bike wheel pulse acqu
6、isition, keyboard input and data display section, the main program using C language, This paper first needed to “milestones“ design of equipment in detail, on the problems existing in the design, explained And then to hardware and software design and implementation of the part made earnest analysis, Then presented system modeling process and the corresponding system based on this model, the control simulation, and the simulation results are compared. KEY WORDS odometer photoelectric sensor